Domain: atdot.net
Stories and comments across the archive that link to atdot.net.
Comments · 9
-
Re:Um... hello... I know it sounds wierd, but go M
Even if we throw in a tag to make legacy javascript viable, every legacy page out there would have to be updated - meaning all of those abandoned or hardly maintained web sites with tons of useful information are going to be broken
<script type="text/javascript"> // "legacy" JavaScript code </script>
<script type="application/ecmascript; version=4"> // new shiny </script>
No need to change existing pages.How would you all be reacting if there was talk about re-implementing C
There are many implementations of Cor heaven forbid Ruby.
Oh look, Ruby as well. -
Re:Great NewsFrom the TODO-list:
Optimize
* JIT Compile (current: experimental)
* AOT Compile (current: experimental)
If you search the mailing lists you will find results of experiments by Sasada showing VERY fast execution on examples using code the JIT compiler supports so far. -
Re:Great News
The language itself isn't slow, the current interpreter is.
The solution is YARV (Yet Another Ruby VM) which will be the official Ruby VM in v2.0. Ruby 2.0 (thanks to YARV) will have JIT and a superfast optimizer. You can get a (very buggy) pre-beta version from SVN right now. Benchmarks show that it will be about as fast as Java and .NET in most situations. Slower in some situations, faster in some. -
Re:Ruby is slow
"Ruby is at least as slow as JavaScript, if not slower"
That's a meaningless statement; JavaScript has lots of different implimentations, ranging from the so-slow-you'll-want-to-gouge-your-eyes-out iCab to the pretty blazing VM-maybe-even-JITed Opera one that seems to just keep getting better." -- at least you can compile JavaScript into Java"
Uh huh. I'll be sure to keep that in mind when my JavaScript DOM manipulations are too slow."I guess what would make me happy is an insanely intelligent compiler for Ruby, that targeted the
.net environment. Performance comparable to C#, developer time comparable to normal Ruby, bytecode obfuscated enough to use in commercial products.
But that's depressing, too, because in the amount of time it would take me to learn enough about Ruby and .net to do that, not to mention the programming of that insane compiler, I could write hundreds of useful Ruby programs."
Microsoft are sponsoring development of a Ruby implimentation for CLR. Meanwhile YARV will be giving us a Ruby 2.0 that's rather a lot faster. Also, as for "porting to C", you do know that writing C extensions for Ruby is about as easy as it gets, right? Even without using RubyInline it's simple enough that you can replace a single small method in a single class with an extension and not end up writing 10x as much support code as actual useful C. If you're lucky you might even be able to automate the conversion. -
Re:Ruby Apps
There are tools for making Ruby into self-extracting executables --> http://www.erikveen.dds.nl/rubyscript2exe/index.h
t ml. But for a true compiled solution that will likely be bundled with Ruby 2.0. It should include a VM --> http://www.atdot.net/yarv/. As for GUI apps there are extension libraries for Tk, Qt, Fox, WxWindows, GTK, etc. -
Re:Rails, great for those fed up with J2EE.
It also needs YARV (which I believe will be the VM for Ruby 2.0) in order to be competitive. As it is, Ruby's speed (or the comparative lack thereof) is one of the biggest obstacles to corporate adoption. That and that it's hard to convince managers that the fact that only one person on their team knows Ruby isn't actually a problem.
-
Re:Do people still write new C++ code?
Psyco does convert Python to machine code. In a related vein, projects like are currenly attempting to make Ruby benchmark much better, in this case by using a JIT compiler. I repeat my main point: there is no reason why Ruby, Perl, Python, et. al MUST be interpreted.
-
Re:Why ruby won't displace python.
Let's wait for YARV to be merged with Ruby at the end of this year. Comparing current Ruby interpreter (which is AST-based) compared to Python compiler (VM/bytecode-based) is not exactly fair. Plus Python and Perl have been around longer and have undergone much more optimization tweaks.
-
Re:Ruby
also, the project for the bytecode ruby machine YARV is supported by IPA.