lua-users home
lua-l archive

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


It was thus said that the Great William Ahern once stated:
> 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.
> 
> That said, you can of course compile the PUC Lua VM to WASM today, and
> people have. I don't see much value in it, but nothing is stopping you. Give
> it a try and many things will become clear in ways that would be difficult
> to communicate.

  And let us not forget that C should not be used.  As someone on this list
recently said:

> In summary, C is a malware to eradicate, unless it is implemented by
> replacing all undefined behaviors from the so called "standard" by defined
> behavior.
> 
> For now the C standard is not made for any one. Its goals are stupid. The
> whole team of this standard body (most of them from ANSI) should be fired
> (or another standard body should take ove the goal of redefining it).
> Everyone in the computing industry will be interested and now every one in
> the world uses computers and are interested: this goal is no longer
> technical, it has become a fundamental human right to absolutely preserve,
> but voluntarily ignored by the existing standard body which behaves like
> devil.

  So we should all forget about C entirely.

  -spc (Unfortunately, that means PUC Lua goes away as well ... )