|
|
|
|
|
by AyanamiKaine
99 days ago
|
|
I really hate wasm, not because of the idea or concept but because it gets bloated. The first idea was computation heavy algorithms to be written in a language like C/C++/Rust and to be compiled to wasm. Now it gets marketed as something to write sandboxed code/compontents for every language to be consumed by a wasm runtime. Then there is the problem with the types of wasm. While it was seen to be something run on the web/browser. Its types are way more similar to rusts. For example strings in JS are fundamentally UTF-16 while wasm/rust is utf-8. We need to constantly convert between them. I always hoped that wasm would simply allow for faster code on the web not here is my program completly sandboxed from the outside world you cant interact with other programs on the same machine. |
|
I'd like a toolchain better targeted for the pure acceleration use case though. Emscripten adds a lot of bloat and edges just to serve out of the box posix compatibility. Which is nice for quick demos of "look I can run Doom in the browser"-kind. But less useful for advanced web app usage, where you anyways will want to keep control of such behavior and interact with the browser apis more directly.