3 ms·
Why is PyO3 so much nicer to use than wasm-bindgen? Is it because of WASM itself or just the tooling?
by suddenlybananas 8mo ago
Why is PyO3 so much nicer to use than wasm-bindgen? Is it because of WASM itself or just the tooling?
- nicoburns 8mo agoI think its a large part just the tooling. wasm-bindgen hasn't seen active development for several years at this point.
- comagoosie 8mo agoThe 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.
- Tpt 8mo agoI 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.