3 ms·
You can give WASM access to the DOM. What you describe is already possible, but most language runtimes are too big to be served for a website.
by gridlockd 6y ago
You can give WASM access to the DOM. What you describe is already possible, but most language runtimes are too big to be served for a website.
- rowanG077 6y agoAre there efforts to cache runtimes? I imagine most programs would be rather small if you don't have to ship the runtime.
- gridlockd 6y agoThere isn't really a good workflow regarding dynamic linking and libraries in WASM right now, but things are moving. Even then, what are the odds that your new user already has the particular version of your runtime cached already? If you really have a non-trivial application, then downloading the runtime isn't that big a deal I guess. If you just have a website, it wouldn't be warranted. Having said that, if you're careful, you can use Rust[1] or C/C++[2] with minimal overhead. I doubt that's going to become popular though. [1] https://www.hellorust.com/demos/add/index.html https://www.hellorust.com/demos/add/index.html [2] https://floooh.github.io/sokol-html5/index.html https://floooh.github.io/sokol-html5/index.html