Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84278 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41917 invoked from network); 4 Mar 2015 08:21:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Mar 2015 08:21:33 -0000 Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.220.43 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.220.43 mail-pa0-f43.google.com Received: from [209.85.220.43] ([209.85.220.43:34200] helo=mail-pa0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/82-22753-B80C6F45 for ; Wed, 04 Mar 2015 03:21:32 -0500 Received: by paceu11 with SMTP id eu11so17639561pac.1 for ; Wed, 04 Mar 2015 00:21:29 -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:date :message-id:subject:from:to:cc:content-type; bh=eMVuRAQ0hiRo/4uth+byN51KkzR1KEdkHnrFr95r8pQ=; b=bO8PuCXQFJxexeHP746KHl6FOljGxEsrRhaoMV3cJXdf/3NqqwLKHC5plBM8d0JW+k 7ygCCm8P7MT2G8nGucecsJOWkhO50tI64cR4vSTvYowkJujp0eTMw85WDnW48gybPtY8 dFZoWe4ijKBXRLV7ziVvHjYICtMABao/NWq9FDcCRUp40OIRshhO7y3GFtBOi015CxYu mWsKX6EeKE5RhH+jRed6u7A3FCzt0Zare9oC+/ZZIAAmY+Axn1ZP16sc8M8NbB9v31tp QhyvFS9FzjWi+p2IkjUkmS7U4xw293LlWj98wSEQ5QvDldKjB65ArI7igZuoAFyvnLhP 75Og== X-Gm-Message-State: ALoCoQkCCPRmqPqrP1WWGb27E5qrnYqWAvWdZNfKp2/ziLZj3qaf6m6kSf0Pv3BNa1rhlsXPGucz MIME-Version: 1.0 X-Received: by 10.70.44.36 with SMTP id b4mr4933136pdm.134.1425457289016; Wed, 04 Mar 2015 00:21:29 -0800 (PST) Received: by 10.70.35.129 with HTTP; Wed, 4 Mar 2015 00:21:28 -0800 (PST) X-Originating-IP: [86.130.70.39] 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 08:21:28 +0000 Message-ID: To: Xinchen Hui Cc: Dmitry Stogov , Anthony Ferrara , Zeev Suraski , PHP Internals Content-Type: multipart/alternative; boundary=047d7bfea3325adee1051072232a Subject: Re: [PHP-DEV] Re: Zend JIT Open Sourced From: pthreads@pthreads.org (Joe Watkins) --047d7bfea3325adee1051072232a Content-Type: text/plain; charset=UTF-8 Just-In-Time-At-Once JITAO It is a bit different to the thing we think of as JIT ... new names are good if old names don't fit ... Cheers Joe On Wed, Mar 4, 2015 at 8:03 AM, Xinchen Hui wrote: > 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/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --047d7bfea3325adee1051072232a--