Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28298 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19039 invoked by uid 1010); 8 Mar 2007 18:59:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19024 invoked from network); 8 Mar 2007 18:59:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2007 18:59:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=nlopess@php.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=nlopess@php.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 212.55.154.23 cause and error) X-PHP-List-Original-Sender: nlopess@php.net X-Host-Fingerprint: 212.55.154.23 relay3.ptmail.sapo.pt Linux 2.4/2.6 Received: from [212.55.154.23] ([212.55.154.23:38532] helo=sapo.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/F5-64913-31D50F54 for ; Thu, 08 Mar 2007 13:59:33 -0500 Received: (qmail 28517 invoked from network); 8 Mar 2007 18:59:27 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.208) by relay3 with SMTP; 8 Mar 2007 18:59:27 -0000 Received: (qmail 19989 invoked from network); 8 Mar 2007 18:59:27 -0000 X-AntiVirus: PTMail-AV 0.3-0.90.0 X-Virus-Status: Clean (0.02708 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[82.155.79.54]) (envelope-sender ) by mta13 (qmail-ldap-1.03) with SMTP for ; 8 Mar 2007 18:59:27 -0000 Message-ID: <013301c761b3$e562dbd0$0100a8c0@pc07653> To: , "Jacob Santos" References: Date: Thu, 8 Mar 2007 18:59:27 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Subject: Re: [PHP-DEV] PHP Just-In-Time Compiler From: nlopess@php.net ("Nuno Lopes") > Has anyone tried this or know of anyone who is interested in implementing > this for the Zend Engine? actually yes. Gopal (gopalv@php) 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 would be interested in such project (as well as a better GC). > 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. Forget APC. You can hook directly in the engine and do the JITing from there. APC could later be extended to also cache the compiled code, but at first shot you don't need it. I don't think it is a difficult task to add JIT compilation to PHP, but we need someone that steps forward and do the first part and then convince the other developers that it is good. Ah please remember that PHP works in a huge number of platforms (from a toaster to a mainframe), so the library you choose must be really portable and support many archs. Nuno