The idea is cool, but why wasn't it implemented w/ wasm?
The idea is cool, but why wasn't it implemented w/ wasm?
What a low-effort takedown. Why don't you at least explain why it's such a sad idea?
> The idea is cool, but why wasn't it implemented w/ wasm?
How are you planning to interact with the DOM with WASM?
Sounds like you know enough to criticize yet don't understand your proposed alternative enough to know why it wouldn't work.
I bet DOM access in WASM is totally doable, just gonna be a lot harder than how this project implemented it.
Quoted from: https://developer.mozilla.org/en-US/docs/WebAssembly/Concept...
Especially when the hosted scripting language can take advantage of the garbage collection and the incredible amount of optimizations that have been put into the hosting scripting language.
You know there's a reason people have put so much time and effort into optimizing JavaScript. Is there a reason it's sad to take advantage of that?
Or would it make you happier if everyone wrote their own garbage collectors and optimizing JIT compilers and portable operating system independent runtimes from scratch every time?
If fengari is that, then I think it predates wasm.
Edit: it is not, since my memory is from 2014. However, the git history says fengari was started 5 years ago and wikipedia says wasm came out 4 years ago.
True you could take an existing lua implementation and compile to WASM but then as the other comment explained interacting with the DOM would need to be implemented.