Re:Experimental support for WebAssembly in V8
by RussianCow on Tuesday March 15, 2016 @01:57PM
(#11291619)
But the point is, if you want to compile your JavaScript code ahead of time, you have to ship your own GC and JIT compiler, because you no longer get it "for free" from the browser's JS implementation. There's absolutely no benefit from doing this.
[ Parent
| on HN ]
Re:Experimental support for WebAssembly in V8
by geon on Tuesday March 15, 2016 @03:37PM
(#11292375)
That will soon not be true. Exposing the js gc is on the roadmap.
...which will also make it feasible to use other gc:ed languages without shipping an enormous runtime.
Re:Experimental support for WebAssembly in V8
by RussianCow on Tuesday March 15, 2016 @05:01PM
(#11292961)
Okay, but why would you compile JS down to wasm, only to have it then use the browser's built-in JS runtime? I see the use for compiling other dynamic languages, but compiling JS via wasm shouldn't be any different than running it via the normal JS engine, aside from potentially having a slightly smaller executable.