4 ms·
> I [..] could never get the performance or package size to a good place. Do you have any more details on that? I'm curious how close this got, and what were t
by azakai 5y ago
> I [..] could never get the performance or package size to a good place.
Do you have any more details on that? I'm curious how close this got, and what were the main issues (on both size and speed).
- the__alchemist 5y agoI don't have specific info, but generally: - VDOMs in general have poor performance; they perform unnecessary computations in the diffing algorithm, and even well-designed ones perform extra DOM manipulations, compared to deliberately-written code. - The Rust WASM files would come out pretty large; a few hundred KB for a minimal app. This is better than some packages using React + common JS dependencies like Lodash and Moment, but with much room for improvement - DOM manipulation calls made in Rust via WASM(currently!) don't have any performance benefit over the native JS API
- smt88 5y agoIt sounds like you made a Rust version of React. I think a Rust version of Svelte makes more sense in the long run.
- the__alchemist 5y agoAccurate, and I agree.
- worik 5y agoDo it
- khimaros 5y agothis may interest you: https://github.com/Pauan/rust-dominator https://github.com/Pauan/rust-dominator
- johnsoft 5y agoAt one point I prototyped a wasm framework inspired by Solid[1]. The results were very promising—an implementation of js-framework-benchmark was 41KB (18KB gzipped), and perforrmance was close to vanillajs. The developer ergonomics were definitely lacking, though. Benchmark results (look for "cope")[2][3] I definitely think whatever happens over the next few years, VDOMs are on their way out. [1]: https://github.com/whatisaphone/cope/blob/master/crates/js-framework-benchmark/ https://github.com/whatisaphone/cope/blob/master/crates/js-f... [2]: https://cdn.discordapp.com/attachments/751355413701591120/776076384430063616/unknown.png https://cdn.discordapp.com/attachments/751355413701591120/77... [3]: https://cdn.discordapp.com/attachments/751355413701591120/776065938818727936/unknown.png https://cdn.discordapp.com/attachments/751355413701591120/77...
- bschwindHN 5y agoSycamore looks interesting, though it needs some more ergonomic improvements before it becomes more widely usable. https://github.com/sycamore-rs/sycamore https://github.com/sycamore-rs/sycamore
- lukechu10 5y agoHi, author of Sycamore here. What kind of ergonomic improvements are you thinking about? If this is something actionable, it would be great if you could open a new issue on our repo.
- azakai 5y agoThanks!