Re:Is WebAssembly faster than JavaScript?
by zaarn on Wednesday October 24, 2018 @04:12AM
(#18290532)
These things are on the roadmap atm.
Better WASM/JS interop is on the way, though atleast on Firefox nightly you can get this for fairly low cost for some functions.
GC is also on the todo list and IIRC might get an early preview in Firefox Nightly.
Once the GC is done, DOM integration will happen, people are eager for that and that would eliminate a lot of the necessary JS glue code.
Re:Is WebAssembly faster than JavaScript?
by TotempaaltJ on Wednesday October 24, 2018 @03:49AM
(#18290438)
A GC for wasm is planned, as is DOM/browser API interop.
Another reason is JS already has many high level features. Which might make it easier to implement similar ones in your language if you target JS directly.
The last reason I can think of is interop with existing JS code and the DOM.