Re:Lua vs Ruby benchmarks (similarly "high-level" languages,...
by jcapote on Friday January 30, 2009 @04:15PM
(#458702)
Of course; Get a native JIT'ed version of ruby going, then you can make a fair comparison.
[ Parent
| on HN ]
Re:Lua vs Ruby benchmarks (similarly "high-level" languages,...
by Zak on Friday January 30, 2009 @04:42PM
(#458750)
"Fair" comparisons of the sort you're talking about are not useful when choosing a language. If I'm choosing a language for an application, I don't care if it's unfair that one is much faster than the other because it has a JIT compiler instead of an interpreter - I only care which one is the most suitable.
Re:Lua vs Ruby benchmarks (similarly "high-level" languages,...
by jcl on Friday January 30, 2009 @04:23PM
(#458715)
For what it's worth, JRuby performs a tiny bit better.
I think Ruby in general is less amenable to analysis/compilation than Lua is, so even a JITed Ruby might not do as well as Lua.
Re:Lua vs Ruby benchmarks (similarly "high-level" languages,...
by vegai on Saturday January 31, 2009 @02:04AM
(#459316)
That's like saying "Of course, get a non-sucky version of ruby going, then you can make a fair comparison."
Re:Lua vs Ruby benchmarks (similarly "high-level" languages,...
by NyxWulf on Friday January 30, 2009 @04:19PM
(#458707)
Unlike say...JRuby?
Re:Lua vs Ruby benchmarks (similarly "high-level" languages,...
by jim-greer on Friday January 30, 2009 @04:36PM
(#458741)
JRuby is not a JIT for Ruby, and it doesn't compile Ruby to Java bytecode. It's a Ruby interpreter, written in Java.
Re:Lua vs Ruby benchmarks (similarly "high-level" languages,...
by cschneid on Friday January 30, 2009 @06:32PM
(#458915)
Recent work in JRuby does exactly that. It'll JIT your code, and you an even pre-compile if you want.
(AFAIK, just seen references to all this).