Re: [PHP-DEV] PHP Script Compile System

2012-02-24 Thread Richard Lynch
On Wed, February 22, 2012 3:45 am, Flavius Aspra wrote: > On 02/22/2012 07:29 AM, Rasmus Lerdorf wrote: >> complicated optimization passes or any of those things > > Would such things be welcome/needed in the engine or as an extension? Note that he said "complicated" :-) There are many trivial /

Re: [PHP-DEV] PHP Script Compile System

2012-02-24 Thread Richard Lynch
On Tue, February 21, 2012 11:49 pm, Deepak Balani wrote: > I am think(actually drafting) about the compilation system of PHP > scripts. > I want to make a native C extension which is able to compile the > scripts in > the Zend Engines opcodes and execute directly when called. > > The extension may

Re: [PHP-DEV] PHP Script Compile System

2012-02-22 Thread Flavius Aspra
On 02/22/2012 07:29 AM, Rasmus Lerdorf wrote: complicated optimization passes or any of those things Would such things be welcome/needed in the engine or as an extension? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP Script Compile System

2012-02-21 Thread Stas Malyshev
Hi! I am think(actually drafting) about the compilation system of PHP scripts. I want to make a native C extension which is able to compile the scripts in the Zend Engines opcodes and execute directly when called. The extension may have two functions. bool gpc_compile($source, $target): compil

Re: [PHP-DEV] PHP Script Compile System

2012-02-21 Thread Rasmus Lerdorf
On 02/21/2012 10:16 PM, John Crenshaw wrote: >> -Original Message- >> From: Deepak Balani [mailto:wgpdeepak1...@gmail.com] >> Sent: Wednesday, February 22, 2012 1:07 AM >> To: flav...@php.net >> Cc: internals@lists.php.net >> Subject: Re: [PHP-DEV]

RE: [PHP-DEV] PHP Script Compile System

2012-02-21 Thread John Crenshaw
> -Original Message- > From: Deepak Balani [mailto:wgpdeepak1...@gmail.com] > Sent: Wednesday, February 22, 2012 1:07 AM > To: flav...@php.net > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] PHP Script Compile System > > No I mean persistent compilat

Re: [PHP-DEV] PHP Script Compile System

2012-02-21 Thread Deepak Balani
No I mean persistent compilation system like Java HelloWorld.Java -> HelloWorld.class HelloWorld.php -> HelloWorld.gpc When you call gpc_import('HelloWorld.php'); then function first look for HelloWorld.gpc if found then include it and if not then look for HelloWorld.php or HelloWorld.inc (w

Re: [PHP-DEV] PHP Script Compile System

2012-02-21 Thread Flavius Aspra
On 02/22/2012 06:49 AM, Deepak Balani wrote: Hello all, I am think(actually drafting) about the compilation system of PHP scripts. I want to make a native C extension which is able to compile the scripts in the Zend Engines opcodes and execute directly when called. The extension may have two fu