3 ms·
>So, WebAssembly itself, the core, is completely independent of the web. The web is a particular environment that Wasm is embedded in, but not actually required
by coldtea 8y ago
>So, WebAssembly itself, the core, is completely independent of the web. The web is a particular environment that Wasm is embedded in, but not actually required to use wasm. Other embedding APIs can be created, with their own interfaces, to do various things.
Does that mean one could e.g. create Node.js modules in Wasm, like we also have the C++ modules? That could give a nice boost to certain kinds of code like text processing and math (e.g. a big integer or matrix algebra library).
(Perhaps this is already a thing).
- detaro 8y agoIt's already a thing. In node you by default have a WebAssembly object giving you access to the necessary features. Here's an example (untested, just found it via Google) https://gist.github.com/kanaka/3c9caf38bc4da2ecec38f41ba24b77df https://gist.github.com/kanaka/3c9caf38bc4da2ecec38f41ba24b7...