6 ms·
I think the advantage is just that the same code runs on the server and in the browser, same as with a lot of code for Node.js. For example, I wrote an ssg in
by sureglymop 2y ago
I think the advantage is just that the same code runs on the server and in the browser, same as with a lot of code for Node.js.
For example, I wrote an ssg in rust but I was able to fully compile it to wasm and it works in the browser.
- kaba0 2y agoGoogle has been doing it 2 decades ago with Gmail and the like. They could compile java to js. More recently, clojure and c#'s blazor come to mind that have the same ability.
- treflop 2y agoWebAssembly adds a virtual machine so you run any high level language in the browser. C++, Java, Go, Erlang, Rust, PHP, JavaScript, C#, whatever