5 ms·
If wasm worked is a pretty big caveat still. DOM APIs are still significantly slower in rust using wasm than pure js last I checked.
by drzaiusx11 6d ago
If wasm worked is a pretty big caveat still. DOM APIs are still significantly slower in rust using wasm than pure js last I checked.
- apatheticonion 6d agoYes, that contributes to the "if it actually worked" sentiment. It doesn't have to be slow, if the browser exposed C-like ABI for DOM access and web APIs like LocalStorage, the FileSystem API, ServiceWorker, etc - Rust bindings can be made and that boundary could be well optimised. All we need is; <script type="application/wasm" src="./main.wasm"></script> The rest is just browser optimisations.
- tcfhgj 5d agoStill, it's fast enough that Rust frameworks can compete with the fastest JS frameworks on UI benchmarks [1] Imo bundle size is a bigger issue. [1] https://youtube.com/watch?v=4KtotxNAwME https://youtube.com/watch?v=4KtotxNAwME