News for hackers. Stuff that matters.
Re:Notes on Writing WASM by suddenlybananas on Sunday March 08, 2026 @07:43AM (#47296557)
Why is PyO3 so much nicer to use than wasm-bindgen? Is it because of WASM itself or just the tooling?
Re:Notes on Writing WASM by nicoburns on Sunday March 08, 2026 @07:54AM (#47296609)
I think its a large part just the tooling. wasm-bindgen hasn't seen active development for several years at this point.
Re:Notes on Writing WASM by comagoosie on Sunday March 08, 2026 @09:30AM (#47297178)
The good news is that since August 2025 there's been quite the uptick in development, in large part thanks to folks working over at Cloudflare.
Re:Notes on Writing WASM by Tpt on Sunday March 08, 2026 @01:38PM (#47299233)
I guess it's mostly because cpython has a fairly good C API allowing PyO3 to just write "safe" wrappers on top of cpython APIs and provide macros to generate boilerplate whereas wasm-bindgen has to generate both Rust and JS sides and deal with the painful linear memory intermediate.