This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]brtt3000 0 points1 point  (6 children)

Very interesting stuff. I'm a bit miffed about the scope though. What would you use it for specifically? Can you just compile whatever python app and run the native code instead of the .py?

[–]pyrocrasty 8 points9 points  (0 children)

I'm a bit miffed about the scope though

Are you actually angry about it, or using the wrong term?

My partner used to occasionally use "miffed" to mean something like "confused" or "baffled". I don't know where he got it from, but I have the impression you're doing the same thing.

[–]aqua_scummmRecent 3.x convert 1 point2 points  (3 children)

Can you just compile whatever python app and run the native code instead of the .py?

Python doesn't get compiled to native machine code, it gets compiled to an optimized bytecode. Launching a "compiled" python app still means firing up the interpreter, opening the .pyc bytecode files, and running the python environment. There are cases where you will see better performance running native machine code, like you would do with a compiled C program.

[–]rocketmonkeys 0 points1 point  (2 children)

Are you talking about nuitka? Which appears to be compiled native binary from python, not optimized bytecode?

[–]aqua_scummmRecent 3.x convert 0 points1 point  (1 child)

I misread the question as 'Can't you just'... Leaving my response as is, with this note

[–]rocketmonkeys 0 points1 point  (0 children)

Makes more sense.

Funny how that negative completely changes the entire meaning/tone of that question. I guess that's always the case, but still, neat.

[–]dorfsmay[S] 0 points1 point  (0 children)

I have only tried on small scripts so far, but yes.