PHP compiler

php.internals

Jeremy S. Johnstone

23 years ago
After seeing the conversation on the PHP archive idea (having a PHP equivalent of a jar file), it reminded me of an idea I had a long time ago. Has anyone ever thought of writing a PHP compiler which would compile a PHP script into native machine code? If you have thought of it, what stopped you from building it? I would be highly interested in joining a team which wanted to push the limits of PHP by doing something like this. I think this is the next logical step in the "PHP for anything and everything" goal. Jeremy

Per Lundberg

23 years ago
On Wed, 2003-08-06 at 15:50, Jeremy S. Johnstone wrote:
> After seeing the conversation on the PHP archive idea (having a PHP > equivalent of a jar file), it reminded me of an idea I had a long time > ago. Has anyone ever thought of writing a PHP compiler which would > compile a PHP script into native machine code?
Not to discourage you or anything, but I doubt that would be a very good idea. Because of the nature of PHP (being loosely typed and highly dynamic), I think you would be disappointed with the speed result -- it wouldn't be very much faster than the current PHP interpreter. But then again, for distributing binary-only applications it would perhaps be a good idea.
-- Best regards, Per Lundberg / Capio ApS Phone: +46-18-4186040 Fax: +46-18-4186049 Web: http://www.nobolt.com

Simeon Koptelov

23 years ago
Hello Jeremy, Wednesday, August 6, 2003, 7:50:57 PM, you wrote: JSJ> After seeing the conversation on the PHP archive idea (having a PHP JSJ> equivalent of a jar file), it reminded me of an idea I had a long time JSJ> ago. Has anyone ever thought of writing a PHP compiler which would JSJ> compile a PHP script into native machine code? If you have thought of JSJ> it, what stopped you from building it? I would be highly interested in JSJ> joining a team which wanted to push the limits of PHP by doing something JSJ> like this. I think this is the next logical step in the "PHP for JSJ> anything and everything" goal. There are pruducts such as Zend Accelerator or Turck MMCache. Did you mean that type of compiling?
-- Best regards, Simeon mailto:xi@newmail.ru

Andrey Hristov

23 years ago
Even there is "bcompiler" in PEAR. Andrey ----- Original Message ----- From: "Simeon Koptelov" <xi@newmail.ru> To: <internals@lists.php.net> Sent: Wednesday, August 06, 2003 6:07 PM Subject: Re: [PHP-DEV] PHP compiler
> Hello Jeremy, > > Wednesday, August 6, 2003, 7:50:57 PM, you wrote: > > JSJ> After seeing the conversation on the PHP archive idea (having a PHP > JSJ> equivalent of a jar file), it reminded me of an idea I had a long
time
> JSJ> ago. Has anyone ever thought of writing a PHP compiler which would > JSJ> compile a PHP script into native machine code? If you have thought of > JSJ> it, what stopped you from building it? I would be highly interested
in
> JSJ> joining a team which wanted to push the limits of PHP by doing
something

John Coggeshall

23 years ago
I began work on that project. It's called PASM http://www.coggeshall.org/projects/ John On Wed, 2003-08-06 at 09:50, Jeremy S. Johnstone wrote:
> After seeing the conversation on the PHP archive idea (having a PHP > equivalent of a jar file), it reminded me of an idea I had a long time > ago. Has anyone ever thought of writing a PHP compiler which would > compile a PHP script into native machine code? If you have thought of > it, what stopped you from building it? I would be highly interested in > joining a team which wanted to push the limits of PHP by doing something > like this. I think this is the next logical step in the "PHP for > anything and everything" goal. > > Jeremy
-- -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- John Coggeshall http://www.coggeshall.org/ john at coggeshall dot org The PHP Developer's Handbook The definitive PHP5 developer's guide http://www.php-handbook.com/ -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-

Sebastian Bergmann

23 years ago
John Coggeshall wrote:
> I began work on that project. It's called PASM
You might want to call it differently as PASM is very confusing.
-- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/

DvDmanDT

23 years ago
Checkout binaryphp at sourceforge... It's quite cool really...
-- // DvDmanDT MSN: dvdmandt@hotmail.com Mail: dvdmandt@telia.com "Jeremy S. Johnstone" <jsjohnst@rocketservers.net> skrev i meddelandet news:00ae01c35c21$c66af3c0$6521a8c0@RESIDENT...