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
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
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
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
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
I began work on that project. It's called PASM
http://www.coggeshall.org/projects/
John
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/
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~
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/
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...
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