30 ms·
I would rather that Python catches up with Common Lisp tooling in JIT/AOT in the box, instead of compilation via C.
by pjmlp 2y ago
I would rather that Python catches up with Common Lisp tooling in JIT/AOT in the box, instead of compilation via C.
- heavyset_go 2y agoI'd kill for AOT compiled Python. 3.13 ships with a basic JIT compiler.
- pjmlp 2y agoIn 3.13 you need to compile Python yourself if you want to test the preview JIT.
- LoganDark 2y agomypyc can compile a strictly-typed subset of Python AOT to native code, and as a bonus it can still interop with native Python libraries whose code wasn't compiled. It's slightly difficult to set up but I've used it in the past and it is a decent speedup. (plus mypy's strict type checking is sooo good)
- zelphirkalt 2y agoWhy is it named after a type checking library?
- LoganDark 2y agoBecause it uses that library for type checking?
- heavyset_go 2y agoIt's part of the Mypy project: https://github.com/python/mypy/tree/master/mypyc https://github.com/python/mypy/tree/master/mypyc
- crabbone 2y ago[flagged]
- nequo 2y agoWhere have the masters gone from Python?
- crabbone 2y agoInto management? :) There is no career path for programmers. Once you are a programmer, that's the end of your career. You climb the ladder by starting to manage people. But you don't become a super-programmer.
- deleted 2y ago[deleted]
- trallnag 2y agoWhat about 10x programmers
- crabbone 2y agoHaha, good one. Well, I'm not saying there's no difference between programmers in terms of how well they can do their job. All I'm saying is the difference isn't reflected in the paycheck. If you are a good programmer (ok, a 10x one!), then, eventually, one of these will happen to you: * Despair. You come to despise the peers, the tools you have to work with, the market that will never acknowledge nor learn how to utilize your skills... and you become a vertical farmer, or an Irish pub owner, or a part-time elementary school PA teacher. (All of those I've witnessed firsthand.) * Like I mentioned before, you become a manager. Or maybe go back to academia and become a professor. You still program, sort of, but mostly on a whiteboard. * The technology you dedicated your life efforts to dies. And then you find yourself in an unfamiliar although related field where your past successes and fame aren't acknowledged. You feel too tired to prove yourself once again and succumb to a boring and meaningless desk job. Perhaps you become a better home cook, or a better parent. * Start your own company. Very few do this. Most of those who do fail, and then loop back to the of the first three. Otherwise, you are promoted into the owners class. I don't know what happens there, it's happening behind closed doors, at least I was never invited.
- kazinator 2y agoPython is designed from the ground up to be hostile to efficient compiling. It has really poorly designed internals, and proudly exposes them to application code, in a documented way and everything. Only a restricted subset of Python is efficiently compilable.