Re:RustPython – A Python-3 (CPython >= 3.11.0) Interpreter w...
by gpm on Tuesday March 07, 2023 @11:40AM
(#35057418)
I'm curious what you've heard about them that suggests this?
[ Parent
| on HN ]
Re:RustPython – A Python-3 (CPython >= 3.11.0) Interpreter w...
by dathinab on Wednesday March 08, 2023 @07:43AM
(#35068306)
As far as I can tell the maintenance overhead to mapping all the available type from/to python as nicely usable python APIs is a major pain and not just because of cythons current implementation but of e.g. conceptually mismatch between "good" python and "good" C++/Rust/whatever implementations. I.e. you could say that you have a paradigm mismatch between the underlying implementation (of whatever you extend) ad the python API which makes the already hard problem of keeping an API stable even harder.
Furthermore tooling to work in such contexts (as a API consumer) often is very limited or does not exists, but the API producer seldomly has the time/money to produce such tooling either.
Lastly there is the remaining problem of Python by itself being really slow, for it's main use-cases this often doesn't matter as e.g. the scientific computations are run by native extensions python delegates the work, too. But this would mean that you have to also support native extensions support or hope that no extension needs to be really fast (not needing to be really fast is surprisingly often the case) or similar solutions. In turn choosing something which has a good JIT, AOT or similar compilation has benefits.