lua-users home
lua-l archive

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


On Tue, May 14, 2019 at 12:12:03PM -0700, William Ahern wrote:
> On Tue, May 14, 2019 at 07:09:46PM +0200, Philippe Verdy wrote:
> > Isn't it possible to just compile Lua with a C compiler targetting
> > WebAssembly <https://webassembly.org/>?
> 
> FWIW, WebAssembly is hostile to coroutines and stackful coroutines in
> particular. It does not make a good target for Lua, Go, or similar languages
> that reify the logical execution stack. They require an entire extra layer
> of indirection which will always make them second-class citizens in WASM.

For reference:

 http://troubles.md/posts/why-do-we-need-the-relooper-algorithm-again/
 https://github.com/WebAssembly/design/issues/796#issuecomment-401310366