News for hackers. Stuff that matters.
Re:Show HN: Python at the Speed of Rust by ratatoskrt on Saturday April 12, 2025 @09:55AM (#43664396)
> 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?

Re:Show HN: Python at the Speed of Rust by grandma_tea on Saturday April 12, 2025 @10:42AM (#43664794)
I'm with you. I thought this was going to be an article about Numba.
Re:Show HN: Python at the Speed of Rust by olokobayusuf on Sunday April 13, 2025 @12:33PM (#43673976)
I 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.

Re:Show HN: Python at the Speed of Rust by 6r17 on Saturday April 12, 2025 @10:02AM (#43664465)
This 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

Re:Show HN: Python at the Speed of Rust by olokobayusuf on Sunday April 13, 2025 @12:35PM (#43673987)
Spot 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).