lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sun, Feb 24, 2013 at 12:35 AM, Peter Kuemmel <syntheticpp@gmx.net> wrote:
> http://asmjs.org/
>
> asm.js is "an extraordinarily optimizable, low-level subset of JavaScript".
>
> "Preliminary benchmarks of C programs compiled to asm.js are usually within
> a factor of 2 slowdown over native compilation with GCC."
>
> I wonder what would be possible with something like asm.lua.
>
> Peter

Well, LuaJIT is a thing, and if you tune your code to the appropriate
subset of LuaJIT functionality, you get performance pretty competitive
with native compilation, if not potentially faster.

/s/ Adam