Live data from Hacker News

"LuaJIT's interpreter () beats V8's JIT compiler" - Mike Pall

lambda-the-ultimate.org

1–10 of 19 posts

Re: "LuaJIT's interpreter () beats V8's JIT compiler" - Mike Pall

#3
post #2

This is not an apples to apples comparison, the implemented Languages are fundamentally different. I do think this is an inspiring factoid that shows what is possible with a well done JIT. Go Rubinius!

how are they very different? Syntax aside, Lua and Javascript are actually pretty similar. I would say they actually are close cousins.

Re: "LuaJIT's interpreter () beats V8's JIT compiler" - Mike Pall

#4
post #3
post #2

This is not an apples to apples comparison, the implemented Languages are fundamentally different. I do think this is an inspiring factoid that shows what is possible with a well done JIT. Go Rubinius!

how are they very different? Syntax aside, Lua and Javascript are actually pretty similar. I would say they actually are close cousins.

[deleted]

Re: "LuaJIT's interpreter () beats V8's JIT compiler" - Mike Pall

#5
post #3
post #2

This is not an apples to apples comparison, the implemented Languages are fundamentally different. I do think this is an inspiring factoid that shows what is possible with a well done JIT. Go Rubinius!

how are they very different? Syntax aside, Lua and Javascript are actually pretty similar. I would say they actually are close cousins.

Indeed, they are strikingly similar, one of the key differences being Lua's minimal/extensible dispatch. A function call, by default, involves no searching through superclasses/prototypes. This is likely a big advantage in benchmarks.

Re: "LuaJIT's interpreter () beats V8's JIT compiler" - Mike Pall

#6
post #3
post #2

This is not an apples to apples comparison, the implemented Languages are fundamentally different. I do think this is an inspiring factoid that shows what is possible with a well done JIT. Go Rubinius!

how are they very different? Syntax aside, Lua and Javascript are actually pretty similar. I would say they actually are close cousins.

They really are quite different. Here's one example: http://lambda-the-ultimate.org/node/3851#comment-57751

Re: "LuaJIT's interpreter () beats V8's JIT compiler" - Mike Pall

#7
post #3
post #2

This is not an apples to apples comparison, the implemented Languages are fundamentally different. I do think this is an inspiring factoid that shows what is possible with a well done JIT. Go Rubinius!

how are they very different? Syntax aside, Lua and Javascript are actually pretty similar. I would say they actually are close cousins.

JavaScript has multiple critical blunders in its specification that offer no advantage to the programmer, but are very difficult to optimize.

Re: "LuaJIT's interpreter () beats V8's JIT compiler" - Mike Pall

#8
post #3

Earlier quoted context omitted.

how are they very different? Syntax aside, Lua and Javascript are actually pretty similar. I would say they actually are close cousins.

Indeed, they are strikingly similar, one of the key differences being Lua's minimal/extensible dispatch. A function call, by default, involves no searching through superclasses/prototypes. This is likely a big advantage in benchmarks.

Which subclasses do you want to search through in JavaScript?

That said to me lua seems a little bit like JavaScript's sane cousin.

Re: "LuaJIT's interpreter () beats V8's JIT compiler" - Mike Pall

#9
post #6
post #3

Earlier quoted context omitted.

how are they very different? Syntax aside, Lua and Javascript are actually pretty similar. I would say they actually are close cousins.

They really are quite different. Here's one example: http://lambda-the-ultimate.org/node/3851#comment-57751

Define "quite different".

Re: "LuaJIT's interpreter () beats V8's JIT compiler" - Mike Pall

#10
One question i have regarding these is how fair are the tests, a very quick look at the tests shows for "pidigits" the lua code has the line:

require"c-gmp"(g, aux)

Implying that it is using the GNU Multiprecision Library for it's big integer support, whereas the JS code has:

load('/home/dunham/shootout/bench/Include/javascript/biginteger.js');

Which is apparently a big integer library implemented in javascript http://www-cs-students.stanford.edu/~tjw/jsbn/

In other words, in at least one of the tests a comparison is being made between javascript and C/C++, not javascript and Lua.

Post reply on HN