Re: PHP compiler

From: Nikola Skoric (nick-news_at_net4u.hr)
Date: 03/09/04


Date: Tue, 9 Mar 2004 10:15:31 +0000 (UTC)

Dana Mon, 08 Mar 2004 19:51:53 +0000,
J Taylor <jt@imen.org.uk> kaze:
> Nikola Skoric wrote:
>> That question is of no importance to me at this point. Now my main
>> concern is to get as much points for my crew and me, so we could get
>> better grades. *BUT* as I have great intrest in optimizing algorithms,
>> and I'm still 2 years away from my University diploma, there is a great
>> probability that I might be doing some optimizing to... and after I'm
>> finished with the project it would be a realy nice start for a PHP
>> compiler... if my University alowes me to publish it under GPL.
>
> mmm you might then be interested in compiling to some other bytecode -

Yes, I'm thinking about compiling to MSIL (.NET Framework language) because
of all the built in methods that would minimize the effort of writing the
built in functions. But, anyway, my compiler doesn't have to have more than
15 built in functions, my aim is to show to my teacher that I understand the
way compilers are dedigned, no to build a full scale compiler able to whash
the dishes...

> you could compile to native but you might also want to try compiling a
> set of functions (remembering that the entire php compiler spaning all
> function calls would take a long time (years)).

That's the reason I don't have to be able to compile all ot PHP functions.

> You might also want to look at the fact that PHP itself uses library
> calls so most of the function code will be allready written for you - in
> this case you might be faster generating C code and compiling that.

Hmmm... no, to complicated. Our course is about converting higher languages
to assembly languages, crosscompilation is not an option.

> Are
> there any PHP developers on the list?

Which list? :-)

><recall title="top ten flame wars of the past">Indeed, Tanenbaum

Is that the MINIX guy?

-- 
Pozdrav/Regards, Nikola [Nick] Skoric.
"...Usne, tice-rugalice - a u oku tajac
Da sam kaput sa dva lica, da sam Gospo'n Propalica..."
http://newusers.cjb.net/ - site o Usenetu na hrvatskom!


Relevant Pages

  • Re: Delphi has ruined me. Ruined, I tell you, ruined.
    ... With no compiler, its the gateway drug to bad programming. ... I guess I should start going around to websites and hacking ... type PHP habitual programming for constructive purposes. ... But this does go beyond just compiler type checking. ...
    (borland.public.delphi.non-technical)
  • Re: PHP compiler
    ... >> finished with the project it would be a realy nice start for a PHP ... built in functions. ... But, anyway, my compiler doesn't have to have more than ... to assembly languages, ...
    (comp.lang.php)
  • Re: [SOLVED] php5-mysql? (with added bonus for snort)
    ... make install of php5 and of mysql but no luck so far. ... Configured with: FreeBSD/i386 system compiler ... configure:2823: checking build system type ... configure:2974: checking for PHP includes ...
    (freebsd-questions)
  • Re: Compiled PHP Questions
    ... > eyes so that I can deploy custom web-applications on a customer's ... That is the problem with PHP. ... PHP was developed as an open-source ... compiler produces is identical to the one cached PHP code has. ...
    (alt.php)
  • Re: PHP compiler
    ... Anybody can develop a compiler that ... i did this with a lisp interpreter in my ... but using PHP in a compiler course. ... interpreted by the Zend engine, that is also a compiler tool to me. ...
    (comp.lang.php)