Re: Python code is compiled before execution

2016-10-11 Thread BartC
On 11/10/2016 18:14, Steve D'Aprano wrote: On Wed, 12 Oct 2016 12:19 am, BartC wrote: Python is not really suited for AOT native-code compilation. You might be right, but the author of Nuitka disagrees. http://nuitka.net/ I tried the same thing with a dynamic language: translating byte-cod

Re: Python code is compiled before execution

2016-10-11 Thread Steve D'Aprano
On Wed, 12 Oct 2016 12:19 am, BartC wrote: > Python is not really suited for AOT native-code compilation. You might be right, but the author of Nuitka disagrees. http://nuitka.net/ Nice to see that there's a new release, only a week or so ago! -- Steve “Cheer up,” they said, “things could

Re: Python code is compiled before execution

2016-10-11 Thread Pierre-Alain Dorange
Grant Edwards wrote: > > For my part, i differenciate a strict compilation (ie. C) from a > > translation into byte-code (ie. Python). > > FWIW I've seen C compilers that produced byte-code. They allowed for > a highly interactive developemnt environment. I do not want to fight every word and

Re: Python code is compiled before execution

2016-10-11 Thread Grant Edwards
On 2016-10-11, Pierre-Alain Dorange wrote: > For my part, i differenciate a strict compilation (ie. C) from a > translation into byte-code (ie. Python). FWIW I've seen C compilers that produced byte-code. They allowed for a highly interactive developemnt environment. -- Grant Edwards

Re: Python code is compiled before execution

2016-10-11 Thread BartC
On 11/10/2016 13:35, Pierre-Alain Dorange wrote: Ben Finney wrote: The "small translation into byte-code" *is* compilation. Don't make the mistake that the only product of "compile" is some CPU code; that is a foolishly narrow definition. OK right. For my part, i differenciate a strict comp

Re: Python code is compiled before execution

2016-10-11 Thread Pierre-Alain Dorange
Ben Finney wrote: > The "small translation into byte-code" *is* compilation. > > Don't make the mistake that the only product of "compile" is some CPU > code; that is a foolishly narrow definition. OK right. For my part, i differenciate a strict compilation (ie. C) from a translation into byte-

Python code is compiled before execution (was: How to process syntax errors)

2016-10-11 Thread Ben Finney
pdora...@pas-de-pub-merci.mac.com (Pierre-Alain Dorange) writes: > Chris Angelico wrote: > > > https://docs.python.org/3/library/functions.html#compile > > > > [Python code is] compiled. > > Using this function, the code is "compiled". You have it backward: Python code is compiled. That's what