2 ms·
This is a very interesting concept, but what's the actual benefit? From what I've heard, the WASM <-> DOM interactions are quite slow. Rust is also not exactly
by jeroenhd 5y ago
This is a very interesting concept, but what's the actual benefit? From what I've heard, the WASM <-> DOM interactions are quite slow. Rust is also not exactly known for its tiny executables.
Is all the generated WASM worth it in terms of size and performance compared to using Typescript + a regular old front-end framework?
- zozbot234 5y agoWASM is not there for individual DOM ops, it's about fast string and data structure processing. That's where the potential improvement is.
- jeroenhd 5y agoI know, but this library compiles Rust to WASM. That suggests that the Rust code is somehow being turned into DOM operations and responses. It's possible that the compiler is turning all DOM operations into JS and the rest into WASM, but I don't think that's the case here.
- IshKebab 5y agoI use it because Rust is a nicer language than Typescript. Even though Typescript is pretty good the JS standard library is rubbish and value based languages are so much easier to use than reference based ones once you get above a certain size. I can't remember where I read it but someone said reference based languages are kind of like using global variables everywhere.