Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84277 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39407 invoked from network); 4 Mar 2015 08:03:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Mar 2015 08:03:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.215.44 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.215.44 mail-la0-f44.google.com Received: from [209.85.215.44] ([209.85.215.44:42679] helo=mail-la0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/22-22753-A6CB6F45 for ; Wed, 04 Mar 2015 03:03:56 -0500 Received: by lamq1 with SMTP id q1so19650722lam.9 for ; Wed, 04 Mar 2015 00:03:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=ODdPXIyelhHasPnZH6b2v8nO9DSs/0YnGPvIFxRiBKc=; b=YTt2dUQNRsFaGIoGUj6LrbP7kfmLqAxgFWrOxoUuxyHkke3byXwnCQJNdmapS7Z+gE eeqd4+Y3s407rfW8NhEWPcSm9w61qNyShYH+Py8bpVxXQWysshbWNJHSksWGWopPU7E0 nK3IfVvuJ/SNvXYzXzzsBCfwRCGk1HSdpn7Tv/UoDPJt3S249kJmkcvtvQGgxEyq4RYp KsYfhoccgq16tGsBzoQ3HS8B8zzfeuwkaqQ6XjZJ+Zwtg3Zn1T2mLv4hjhyfAbd32Jwi BCKzMZOsGl51MwFtsPnRRKx7AfgxJY9G1o2Q6YveUZCkyaitPQSPK+03BJMu2tD6FObB TjMA== X-Gm-Message-State: ALoCoQm1jplFW5aer2L+5En1K7yvrwweM4SJ9eCxCj8naqj/yZnQQI4ilEvjmgagTae0X3bPbeblWt8WtuonQPA3VfXkf234oFWNLK7pYylD0d2sycYb6L6eXM3bhhEBaP6Pq9ngcWiVX1EK1keaWZuSNQCA8qInrg== X-Received: by 10.112.219.135 with SMTP id po7mr2125708lbc.111.1425456231939; Wed, 04 Mar 2015 00:03:51 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPSA id w9sm613062lag.37.2015.03.04.00.03.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Mar 2015 00:03:50 -0800 (PST) Received: by lamq1 with SMTP id q1so19650514lam.9 for ; Wed, 04 Mar 2015 00:03:49 -0800 (PST) X-Received: by 10.152.198.203 with SMTP id je11mr2339072lac.48.1425456229544; Wed, 04 Mar 2015 00:03:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.82.99 with HTTP; Wed, 4 Mar 2015 00:03:29 -0800 (PST) In-Reply-To: References: <54F08FF3.3040404@seld.be> <63262a9c0edd51bbf38df2a00c87340e@mail.gmail.com> <9977a20c9d756489f41e666d23c89e3f@mail.gmail.com> <9656140ae786d42e7b0da11dbd416a61@mail.gmail.com> Date: Wed, 4 Mar 2015 16:03:29 +0800 Message-ID: To: Dmitry Stogov Cc: Anthony Ferrara , Zeev Suraski , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: Zend JIT Open Sourced From: laruence@php.net (Xinchen Hui) On Wed, Mar 4, 2015 at 3:44 PM, Dmitry Stogov wrote: > On Tue, Mar 3, 2015 at 10:55 PM, Anthony Ferrara > wrote: > >> Dmitry, >> >> >> So, let's put that to the test, shall we. I compiled and ran the "JIT" >> >> compiler (can we please stop calling it that, it's not). >> > >> > >> > This is JIT! >> >> My apologies. I interpreted your reply to an earlier email that you >> were doing all of the code generation at compile time, not at runtime. >> I should have dug into the code a bit more earlier, but what I looked >> at briefly before supported that interpretation. >> >> However after digging through zend_jit_llvm.cpp a bit more I can see >> what you're doing now. You're basically AOT compiling from PHP >> directly to LLVM bytecode (a file at a time), then using LLVM's VM and >> jit compile to compile to native at runtime. Is that the correct >> interpretation? >> > > More or less right, except that term AOT is not correct. > We compile PHP file when it's requested (just in time). > We compile one PHP file at once, similar to what AOT compiler would do, but > we compile directly to memory and then execute it, With the type inference result we get in runtime. thanks > > Thanks. Dmitry. > > > >> >> Thanks, >> >> Anthony >> -- Xinchen Hui @Laruence http://www.laruence.com/