Hacker News new | ask | show | jobs
by derefr 4816 days ago
> We don't have any real-world comparisons to other languages where an equal amount of brainpower was spent on optimization so that we could see how the language itself affects things.

Yes we do: Lua--optimized by lots of big brains for use in gaming. And it turns out that LuaJIT is much faster than any current Javascript JIT--with the reason frequently given that it is a much simpler language.

4 comments

By "lots of big brains," I think you mean Mike Pall :). But yeah, LuaJIT is really fast.

Julia (http://julialang.org/) is another dynamic language designed from the start for high performance, although the objectives are slightly different from those of Lua. While LuaJIT is fast at everything, Julia is really optimized so that running the same code many times is fast. Running a function the first time can be much slower than in other dynamic languages, I think because there is no baseline JIT or interpreter.

My impression would be that

* LuaJIT is comparable to the best javascript engines in performance

* LuaJIT is entirely the work of one person.

Lua is well designed and values simplicity, which has lent itself well to Pall's success.

And Mike Pall is a superhero when it comes to writing JIT compilers.
Also PyPy, which is generally about as fast as v8 on benchmarks.
And also because it isn't a shitty language, like js.