3 ms·
As someone who adores Rust, built a similar Rust WASM library (Seed), and uses the language regularly for embedded... Rust is the wrong tool for the job. You'll
by the__alchemist 5y ago
As someone who adores Rust, built a similar Rust WASM library (Seed), and uses the language regularly for embedded... Rust is the wrong tool for the job. You'll get a cleaner build process, much better performance, and much smaller download by using HTML, CSS, and targeted JS. If doing something heavy, add React etc with a minimal webpack setup.
- zozbot234 5y agoSvelte is probably a better choice than React nowadays. But these SPA approaches start to become inefficient when a single change to the page involves a massive amount of individual DOM operations (whether derived from a VDOM or not) slowing down rerendering of the page. A WASM-driven approach of just rewriting the HTML for a big chunk of the page in one go and letting the optimized browser code deal with rerendering will likely become optimal for some things.
- antifa 5y agoSvelte was interesting but lacked basic error handling for years so I quit using it. I'm more excited about Vue 3's composition API.