LuaJIT on Emscripten?

598 views
Skip to first unread message

Elliott Slaughter

unread,
Nov 15, 2015, 5:23:11 PM11/15/15
to emscripte...@googlegroups.com
Hi,

Has anyone here tried LuaJIT on Emscripten? Any idea how difficult it would be?

I've got a little language I was hoping to build an online demo for, and it needs LuaJIT to run. (And yes, it has to be LuaJIT, not Lua.) I could always set up a sandbox on a server somewhere, but it would be so much cooler if it ran on Emscripten...

Thanks in advance.

--
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay

Alon Zakai

unread,
Nov 15, 2015, 6:06:41 PM11/15/15
to emscripten-discuss
LuaJIT is not portable C code - the interpreter is handwritten x86/ARM/other assembly, and the JIT emits x86/ARM/other assembly as well. So an interpreter would need to be written that can run on the web, in C or asm.js, as well as a JIT backend.

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages