4 ms·
WebAssembly can't do anything without Javascript. You're still using the same annoying Web APIs with another layer of indirection between. Plus, now you're usin
by incrudible 2y ago
WebAssembly can't do anything without Javascript. You're still using the same annoying Web APIs with another layer of indirection between. Plus, now you're using the slow Rust compiler so your iteration times are going to suffer. We already have type-safety in Typescript. We don't have to care about lifetimes, either.
- palmfacehn 2y agoAgree that WASM cannot yet directly manipulate the DOM. But are build times in JS/TS framework world any slower than Rust compile times? I'm not convinced on this point. As a disclaimer, I still prefer vanilla JS and progressive enhancement.
- incrudible 2y agoTS is very fast with esbuild and the likes, it's basically just stripping off the type annotations. Your setup may vary, of course. The other point isn't so much that there's a wrapper around the DOM, but that the DOM API itself is bad and slow. There's only so much pain a better language can take away here, and Rust isn't even a better language for that domain.
- peutetre 2y ago> WebAssembly can't do anything without Javascript. But it's JavaScript glue code generated by Rust's wasm-bindgen that you don't need to care about. And eventually the glue code will be unnecessary with wasm component model DOM access.