6 ms·
There's rust-cpython that works like this: https://github.com/dgrunwald/rust-cpython/ https://github.com/dgrunwald/rust-cpython/
by pcwalton 10y ago
There's rust-cpython that works like this: https://github.com/dgrunwald/rust-cpython/ https://github.com/dgrunwald/rust-cpython/
- the_mitsuhiko 10y agoI'm really not anfan of linking libpython if I can avoid it. More wheels to build and then its limited to cpython. Cffi is plenty fast.
- fizzbatter 10y agoWhich method do you find easiest (read: least developer time) for using large rust codebases from Python?
- the_mitsuhiko 10y agoCFFI works quite well. I will probably make a post on my blog later with some ideas on how to do it.
- sitkack 10y agoNot only does it work well, it is portable across nearly all Pythons you would want to use, CPython and PyPy.
- lqdc13 10y agoCan you import that as a lib in Python to work in reverse? It seems to be a different use-case otherwise - using a Python library from Rust vs optimizing a hotspot within Python.
- pcwalton 10y agoThis page claims you can: http://ehiggs.github.io/2015/07/Python-Modules-In-Rust/ http://ehiggs.github.io/2015/07/Python-Modules-In-Rust/