3 ms·
Since it's v8, does this mean someday certain Node.js modules could be written in wasm, but still be callable from JS?
by _greim_ 11y ago
Since it's v8, does this mean someday certain Node.js modules could be written in wasm, but still be callable from JS?
- maga 11y agoYes, and it would be interesting to compare WASM with the native Node plugins performance-wise. Especially looking at how it handles the interaction between JS and plugins/wasm. AFAIK, right now there are penalties associated with moving values in and out of V8 when using native plugins. If WASM can avoid that, native plugins may switch to it.
- z1mm32m4n 11y agoThis whole conversation just makes me smile at how much truth and more is coming out of Gary Bernhardt's The Birth and Death of JavaScript[1]. https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript https://www.destroyallsoftware.com/talks/the-birth-and-death...