Re: LuaJIT and WebAssembly

  • From: Coda Highland <chighland@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 17 Apr 2017 08:43:17 -0700

On Sat, Apr 15, 2017 at 9:43 AM, Paul Kaletta <pk@xxxxxxxxxxxxxxx> wrote:

Hi everybody,

I recently learned about WebAssembly/WASM, a bytecode format for web
browsers.

https://en.wikipedia.org/wiki/WebAssembly
http://webassembly.org/

The format is suitable as a compilation target for C/C++ compilers, and so
the original Lua already runs in a WASM environment.

https://github.com/vvanders/wasm_lua

Are there any plans add a WebAssembly target to LuaJIT?  I realize that
porting LuaJIT to a new target architecture is quite an undertaking, but I
wanted to inquire whether there is any hope.

Best regards,
Paul


I'm not sure I understand the impetus. WebAssembly is already
JIT-compiled, and you wouldn't have access to the FFI, so what benefit
would LuaJIT derive from such a port?

/s/ Adam

Other related posts: