4 ms·
> But what if we could compile Python into raw native code? Am I missing something or has that been possible for at least 20 years?
by ratatoskrt 2y ago
> But what if we could compile Python into raw native code?
Am I missing something or has that been possible for at least 20 years?
- 6r17 2y agoThis is akin to re-implementing the complete language. Writing programming languages before AI was bit of a daunting task ; now it's way easier to grasp a first good principles and dive trough ; would still take time to get something production ready ; but that's definitely something that could happen
- olokobayusuf 2y agoSpot on! The majority of the innovation here is in building enough rails (specifically around lowering Python's language features to native code) so that LLM codegen can help you transform any Python code into equivalent native code (C++ and Rust in our case).
- grandma_tea 2y agoI'm with you. I thought this was going to be an article about Numba.
- olokobayusuf 2y agoI think a more pedantic way to describe what I mean is: "What if we could compile Python into raw native code *without having a Python interpreter*?" The key distinguishing feature of this compiler is being able to make standalone, cross-platform native binaries from Python code. Numba will fallback to using the Python interpreter for code that it can't jit.