← Back to context

Comment by jszymborski

6 hours ago

While obviously this would need CPython to SPy `import` support for it to displace CPython for me, it seems like you can `import` SPy to CPython, which makes it an attractive solution for implementing fast libraries where Rust is perhaps too heavy duty.

Seems correct. See point.spy in the playground here: https://spylang.github.io/spy/

# - the unsafe module allows C-level direct memory access to pointers and unsafe arrays

# - @struct maps directly to C structs

# - most users will never have to deal with this directly: using the unsafe` module is the equivalent of writing C extensions or using Cython