Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64122 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6536 invoked from network); 30 Nov 2012 15:04:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2012 15:04:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=xwisdom@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=xwisdom@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: xwisdom@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bk0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:46057] helo=mail-bk0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/E1-23831-EFAC8B05 for ; Fri, 30 Nov 2012 10:04:35 -0500 Received: by mail-bk0-f42.google.com with SMTP id ji2so266864bkc.29 for ; Fri, 30 Nov 2012 07:04:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Tajd/bcLBkeiVwkj3bcUU0m1zoJqAm0aXF1aAdE/rAY=; b=K2lKFjT6zjgxV9wb0D+Ul40eKDRTbk49EObye3f8c2dY6B+62ZVx7sLWhA/q5PFZL/ 9tGWGIOrWVShnpaS1s9ExBySZ5CirdFpEOn71ZS11exPNaeA8EEjoN/OMR3XViHPMUy4 xbkUqR1NFevnngKhHYsUprX03/L4I6uPHPjdJesHHXz0ow4Ab64EPxd0usn7Xd6vnbMx PrvE9w15piOHVstgXAECdlFmz6c6jbXEOsckhIYvG3NJq0Wt9X+rjts69VMKiZpoQHOI FCh2hJJ7drDzPhPVm+5HjgS25QvKRBQMFKmwNGqSwgIwO36K6x8bt7pfa88lpAD4jTlF VoZw== MIME-Version: 1.0 Received: by 10.204.147.207 with SMTP id m15mr442861bkv.54.1354287867268; Fri, 30 Nov 2012 07:04:27 -0800 (PST) Received: by 10.204.181.139 with HTTP; Fri, 30 Nov 2012 07:04:27 -0800 (PST) In-Reply-To: References: <50B41783.90104@lerdorf.com> <50B44AFE.5030307@lerdorf.com> Date: Fri, 30 Nov 2012 10:04:27 -0500 Message-ID: To: Sara Golemon Cc: Rasmus Lerdorf , PHP Internals Content-Type: multipart/alternative; boundary=0015174c1c00408cb704cfb7b712 Subject: Re: [PHP-DEV] HHVM and PHP From: xwisdom@gmail.com (Raymond Irving) --0015174c1c00408cb704cfb7b712 Content-Type: text/plain; charset=ISO-8859-1 Many thanks for the feedback. I would love see some JIT features added to the core as this would help to improve the overall performance. Sara, I like your extension idea as this would not require any changes to the core. Here's another idea: ----------------------------------- 1. Modify PHP core to cache opcodes on first request 2. Create external program (or library) that can be scheduled to compile cached opcodes to native code when necessary. This can be scheduled as a cron job 3. PHP will then run either the cached opcodes or the compiles codes when the page is request a second time. In this solution you get bets of both worlds. PHP can execute opcode cache or native code if it's available. There would be no need for the core to further compile or optimize the opcodes as the external program will perform these operations. The end result is that the application performance will improve with usage and time. What do you think? __ Raymond On Tue, Nov 27, 2012 at 2:37 AM, Sara Golemon wrote: > On Mon, Nov 26, 2012 at 9:09 PM, Rasmus Lerdorf > wrote: > > On 11/26/2012 09:03 PM, Sara Golemon wrote: > >> P.S. - I do disagree with Rasmus' statement about none of us looking > >> at fitting a JIT into PHP. ;) > > > > I think you misread my reply. I specifically said that a JIT is a > > possibility, just not the HH approach. > > > No no, I caught that. I was just being pedantic in that I *am* > looking at fitting a few JIT approaches into PHP (via extensions), > including one based on HipHop's approach. :p But if we're still being > pedantic, then I should admit to not working too hard on that front. > > -Sara > --0015174c1c00408cb704cfb7b712--