4 ms·
I'm building WebAssembly bindings to existing Rust libraries [0] and lower-dependency geospatial tools [1]. Rust makes it very easy to bind rust code to both We
by kylebarron 4y ago
I'm building WebAssembly bindings to existing Rust libraries [0] and lower-dependency geospatial tools [1]. Rust makes it very easy to bind rust code to both WebAssembly and Python. And by avoiding some large C geospatial dependencies we can get reliable performance in both wasm and Python using the exact same codebase.
[0]: https://github.com/kylebarron/parquet-wasm https://github.com/kylebarron/parquet-wasm
[1]: https://github.com/kylebarron/geopolars https://github.com/kylebarron/geopolars
- theptip 4y agoOh, that’s really cool. Rust noob here, and I hadn't seen the tooling for building Python bindings. That looks like it could be a very powerful way to speed up your Python programs (much easier than the “just replace the slow bits in C” advice that was standard.) The mappings in https://github.com/kylebarron/geopolars/blob/master/py-geopolars/src/geoseries.rs https://github.com/kylebarron/geopolars/blob/master/py-geopo... for example look very easy to follow.