Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40090 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72235 invoked from network); 26 Aug 2008 12:57:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Aug 2008 12:57:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=jbondc@openmv.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jbondc@openmv.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain openmv.com from 64.15.152.204 cause and error) X-PHP-List-Original-Sender: jbondc@openmv.com X-Host-Fingerprint: 64.15.152.204 mail.ca.gdesolutions.com Received: from [64.15.152.204] ([64.15.152.204:58582] helo=mail.ca.gdesolutions.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/91-03121-4CDF3B84 for ; Tue, 26 Aug 2008 08:57:41 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.ca.gdesolutions.com (Postfix) with ESMTP id B81A75CA6; Tue, 26 Aug 2008 08:57:37 -0400 (EDT) X-Virus-Scanned: amavisd-new at gdesolutions.com Received: from mail.ca.gdesolutions.com ([127.0.0.1]) by localhost (mail.ca.gdesolutions.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FotSrQMZynW8; Tue, 26 Aug 2008 08:57:32 -0400 (EDT) Received: from jbondc (modemcable158.97-203-24.mc.videotron.ca [24.203.97.158]) by mail.ca.gdesolutions.com (Postfix) with ESMTP id AED015CA5; Tue, 26 Aug 2008 08:57:32 -0400 (EDT) To: "'steve'" , "'Sebastian Bergmann'" Cc: References: <57792e850808251040y6672e1f1ha0036f0778b7a011@mail.gmail.com> <57792e850808251528u3ede0077rd6828ff066f5e4dd@mail.gmail.com> In-Reply-To: <57792e850808251528u3ede0077rd6828ff066f5e4dd@mail.gmail.com> Date: Tue, 26 Aug 2008 08:57:31 -0400 Message-ID: <002d01c9077b$4e0a9ce0$ea1fd6a0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 thread-index: AckHAgwIwnjF05IWRH+m/AGXolx3SwAdYQcw Content-Language: en-ca Subject: RE: [PHP-DEV] TracingPHP From: jbondc@openmv.com ("Jonathan Bond-Caron") On Mon Aug 25 06:28 PM, steve wrote: > Has anyone had success compiling PHP with LLVM? > I haven't tried it, here is a good summary: http://llvm.org/devmtg/2008-08/Lopes_PHP-JIT-InTwoDays.pdf In short, it is 'slower' but that seems to be without any caching of the "bytecode" Bytecode is not opcode: http://www.santosj.name/general/computers/byte-code-vs-op-code/ Right now, the most effective strategy to optimize php is executing opcodes using an "opcode" cache such as APC (facebook & others use this). That's from my research, maybe someone can correct me here. Isn't using something like Zend Guard (converts code into opcode) then caching the opcodes essentially JIT? Even if opcode is not binary, it's still a fast intermediate form that gets translated into machine binary, isn't that JIT?