Re: [PHP-DEV] PHP Just-In-Time Compiler

2007-03-14 Thread Richard Lynch
Given the discussion this has provoked, it seems to this naive reader like it might be a good candidate for SoC. Just an idea... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

Re: [PHP-DEV] PHP Just-In-Time Compiler

2007-03-08 Thread steve
Has anyone tried this or know of anyone who is interested in implementing this for the Zend Engine? http://www.php-mag.net/magphpde/magphpde_article/psecom,id,729,nodeid,21.html I'd settle for faster method dispatching, but JIT would be great. Can always use the speed. :) The idea behind PHP

Re: [PHP-DEV] PHP Just-In-Time Compiler

2007-03-08 Thread Nuno Lopes
Has anyone tried this or know of anyone who is interested in implementing this for the Zend Engine? actually yes. Gopal ([EMAIL PROTECTED]) made a non-public (but working) prototype of a JIT PHP version. It was based on libjit (used by dotgnu). I also have a good background in compilers and I w

Re: [PHP-DEV] PHP Just-In-Time Compiler

2007-03-08 Thread Patrick Mueller
Rasmus Lerdorf wrote: This comes up once or twice a year. The machine code you compile to is going to end up looking a lot like the current executor since you don't have strong types to help you optimize anything. You'd still need to pass the unions around and do runtime type juggling and all t

Re: [PHP-DEV] PHP Just-In-Time Compiler

2007-03-08 Thread Jacob Santos
> The idea behind PHP from day one was that it was an environment for > wrapping compiled code. Things that are performance critical is written > in C/C++ and things that aren't are left in the PHP templates. Whether > you issue an SQL query from PHP or from a compiled C program doesn't > affect

Re: [PHP-DEV] PHP Just-In-Time Compiler

2007-03-07 Thread Alain Williams
On Wed, Mar 07, 2007 at 04:19:45PM -0600, Jacob Santos wrote: > I believe it is possible currently using the Zend Engine and working it > either on top of APC or in place of APC. It would quite possibly help if > I ventured further into the Zend Engine and looked at APC source. > > Researching

Re: [PHP-DEV] PHP Just-In-Time Compiler

2007-03-07 Thread Rasmus Lerdorf
This comes up once or twice a year. The machine code you compile to is going to end up looking a lot like the current executor since you don't have strong types to help you optimize anything. You'd still need to pass the unions around and do runtime type juggling and all the overhead that comes a

[PHP-DEV] PHP Just-In-Time Compiler

2007-03-07 Thread Jacob Santos
Has anyone tried this or know of anyone who is interested in implementing this for the Zend Engine? I tried searching the archives and didn't find anything on this topic. (Would Google help? No, only turns up some commercial PHP compiler for PHP 4.x. I believe it is possible currently using th