by polyrand · 5y ago · 0 comments
I guess that because Python is extremely dynamic, we may never have a full everything-works compiler, but I’m excited about the possibility of this becoming some kind of intermediate step where different parts of the program get compiled when possible.
[0] https://github.com/APrioriInvestments/typed_python [1] https://github.com/Nuitka/Nuitka
typed_python is new to me. I'll check it out. I'm too am keeping an eye on this space. I think that compiling or transpiling python may be the solution to both the major problems I have with python: performance and distribution. Exciting times.
Edit: apparently GraalPython is a thing.
D compiles quickly and has much nicer syntax than C or C++.
[0]: https://forum.dlang.org/post/xbejngbluilrulstmmhu@forum.dlan...
"D, the Best Programming Language, for Former Python Developers: (Learn D Programming for Python Developers)"
https://www.amazon.com/Programming-Language-Former-Python-De...
It generally feels pretty pythonic (At least as much as anything typed can), and it certainly scratches the "compiles to efficient machine code with no dependencies" itch.
Who would have guessed....
[1] https://blog.jetbrains.com/kotlin/2020/07/kotlin-native-memo...
I compared it to cython, numba and Julia for DSO, which I wrote about here: https://jochenschroeder.com/blog/articles/DSP_with_Python2/
There isn't any Python dynamic feature that those languages lack, yet they solved out the problem a couple of decades ago, and SELF JIT is the genesis of HotSpot.
What Python lacks is JIT love and being too much attached to CPython.