Re:RustPython – A Python-3 (CPython >= 3.11.0) Interpreter w...
by wyldfire on Tuesday March 07, 2023 @11:59AM
(#35057721)
Python is the most incredible language because everything's dynamic. But it comes at an enormous cost - you can't make many assumptions or optimizations easily. It has tremendous utility for many applications. It's this utility and the wide body of existing software packages which makes it so tempting to use as a scripting engine. But it would be a bad move for any scripting that's in some critical region.
[ Parent
| on HN ]
Re:RustPython – A Python-3 (CPython >= 3.11.0) Interpreter w...
by brucethemoose2 on Tuesday March 07, 2023 @03:02PM
(#35060402)
It would be nice to have an official, more performant statically typed/less dynamic subset of Python.
Yeah we have mypy, but its not official and not integrated. And subsets that do have a performance benefit (like TorchScript) are niche and/or not sustainably supported.
Re:RustPython – A Python-3 (CPython >= 3.11.0) Interpreter w...
by wyldfire on Tuesday March 07, 2023 @04:37PM
(#35061600)
Well -- other languages have shown up to try and fill this niche.
Re:RustPython – A Python-3 (CPython >= 3.11.0) Interpreter w...
by ben-schaaf on Tuesday March 07, 2023 @11:26PM
(#35065248)
Not statically typed, but rpython is a statically analyzable subset of python that is used to write pypy: https://rpython.readthedocs.io/en/latest/rpython.html
Re:RustPython – A Python-3 (CPython >= 3.11.0) Interpreter w...
by brucethemoose2 on Tuesday March 07, 2023 @11:42PM
(#35065342)
That looks very reasonable. Converting a Python codebase would be much easier than porting to a new language.
Now all your imports, on the other hand...