News for hackers. Stuff that matters.
Re:LPython: Novel, Fast, Retargetable Python Compiler by nurettin on Saturday July 29, 2023 @05:44AM (#36918526)
Just to be clear, the reason I didn't (and won't) accept nuitka as a compiler is that it doesn't do what actual compilers do, it just plays around with bytecode. I experienced no speed difference when running large programs, but the startup is considerably slower. To me, it is just a docker replacement that is 1/10th as portable.
Re:LPython: Novel, Fast, Retargetable Python Compiler by mid-kid on Saturday July 29, 2023 @07:17AM (#36919086)
"plays around with bytecode"? Even if that is so, it translates the whole program to c++, which is then compiled. It relies on libpython to implement a lot of the core language types and such, so if your program isn't very computationally intensive or makes heavy use of core data types, you might not notice much, but it's definitely a compiler.
Re:LPython: Novel, Fast, Retargetable Python Compiler by certik on Saturday July 29, 2023 @09:51AM (#36920314)
A compiler doesn't need to optimize. I think if it takes Python code, and translates it to something else, it's a compiler. An optimizing compiler is the one that will give you speedups.
Re:LPython: Novel, Fast, Retargetable Python Compiler by ptx on Saturday July 29, 2023 @11:27AM (#36921184)
Re:LPython: Novel, Fast, Retargetable Python Compiler by certik on Saturday July 29, 2023 @11:45AM (#36921365)
Then it's an optimizing compiler for sure.