I'm confused...
I'm confused...
Posted Oct 1, 2018 5:40 UTC (Mon) by pr1268 (guest, #24648)Parent article: Nuitka 0.60 released
From the article:
Nuitka is a Python compiler. [...] You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.
And later (on the same page):
It translates the Python into a C program [...]
So which is it? A native code compiler or a C-language translator?
And assuming the latter, then why not go straight from Python to assembly?
A compiler that translated code straight from any of the contemporarily-popular languages to arch-specific native assembly would really be nice. Just my $0.02.
Posted Oct 1, 2018 7:11 UTC (Mon)
by jtaylor (subscriber, #91739)
[Link] (2 responses)
Posted Oct 1, 2018 14:39 UTC (Mon)
by jamesh (guest, #1159)
[Link] (1 responses)
I guess the main opportunities for optimisation would come from identifying occasions when it is safe _not_ to use the libpython API. For example, if you know the two values you are adding are integers then generate code that adds two ints rather than calling PyNumber_Add() on two PyObjects.
Posted Oct 1, 2018 15:10 UTC (Mon)
by kayhayen (guest, #127589)
[Link]
I call it graceful degradation. Code that can be fast should be. And if you go all in on special Python features it will become less optimized, but still faster.
Obviously a very hard project that I am in there, but from now on I am hoping to improve performance with every release for the 0.6.x series, whereas 0.5.x had 33 teleases preparing that in the background mostly.
Yours,
Posted Oct 1, 2018 10:19 UTC (Mon)
by wazoox (subscriber, #69624)
[Link] (4 responses)
Posted Oct 1, 2018 15:13 UTC (Mon)
by kayhayen (guest, #127589)
[Link] (3 responses)
Yours,
Posted Oct 1, 2018 23:17 UTC (Mon)
by atai (subscriber, #10977)
[Link] (2 responses)
Posted Oct 1, 2018 23:42 UTC (Mon)
by k8to (guest, #15413)
[Link]
Posted Oct 2, 2018 13:21 UTC (Tue)
by kayhayen (guest, #127589)
[Link]
I'm confused...
I'm confused...
I'm confused...
Kay (Author of Nuitka)
I'm confused...
It generates C11 code with a fall-back on C++03 for the cases where a good C11 compiler isn't available (Windows).
I'm confused...
Kay
I'm confused...
I'm confused...
I'm confused...
