News for hackers. Stuff that matters.
Re:Using WebAssembly to turn Rust crates into fast TypeScrip... by davidatbu on Sunday July 02, 2023 @02:04AM (#36558700)
I'd love to hear more about your experience, because it contradicts what the JS Framework Benchmarks[0] suggests.

Leptos and Dioxus, Rust/WASM frameworks, are competitive with SolidJS, and right out destroy React, when it comes to manipulating the DOM!

So I'd love to hear, if possible, about when was it that you evaluated your WASM based solution, what language and framework you used, etc.

[0] https://krausest.github.io/js-framework-benchmark/2023/table...

Re:Using WebAssembly to turn Rust crates into fast TypeScrip... by throwme_123 on Sunday July 02, 2023 @10:33PM (#36568034)
We built a prototype using wasm-bindgen where we computed data values (displayed in a large table). Benchmarks were slower than native js.

This was last year though, maybe things got better now, so thanks for the pointers, will do another attempt!

Re:Using WebAssembly to turn Rust crates into fast TypeScrip... by davidatbu on Monday July 03, 2023 @04:37AM (#36570330)
Thanks for providing your data point!

If you're having another go, I'd recommend checking out sledge-hammer[0], a wasm-bindgen alternative that the folks behind Dioxus have been working on. It's a faster, but more limited version. Best of luck!

[0] https://github.com/Demonthos/sledgehammer_bindgen

Re:Using WebAssembly to turn Rust crates into fast TypeScrip... by throwme_123 on Tuesday July 11, 2023 @10:54AM (#36681890)
Thanks!

Indeed, string decoding may have been our bottleneck as explained in [0].

Will definitely have a look.

PS: Evan from https://github.com/Demonthos, if you ever stumble upon this there is typo in the Dioxus link from your bio :)