3 ms·
> so could it therefor be compiled to C This is not the case in general for Python. If you want to run python from Rust or C you effectively link the CPython
by wyldfire 11y ago
> so could it therefor be compiled to C
This is not the case in general for Python. If you want to run python from Rust or C you effectively link the CPython interpreter into your program and start executing the Python source code as an embedded string.
IIRC some of spaCy is implemented in cython which I think generates C for a CPython extension. This is typically for lower-layer stuff and doesn't provide any real utility for linkage with C/Rust.
"Python is so limiting" is an odd way to you express your problem IMO. It is limiting in that you can't just use a foreign-function interface to simply call into it without the baggage of a big runtime/interpreter. But in general it's a super-high level language that I wouldn't describe as "limiting."
EDIT: I stand corrected, syllogism's comment indicates that the cython layer might be useful on its own.
- fizzbatter 11y ago> "Python is so limiting" is an odd way to you express your problem IMO. You are correct, i'll edit that to better reflect my intent. I worded it poorly, and meant no disrespect to Python :), it just doesn't fit my needs in this case. Appreciate the info!