News for hackers. Stuff that matters.
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 :)