Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58029 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45368 invoked from network); 24 Feb 2012 21:33:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2012 21:33:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain l-i-e.com designates 67.139.134.202 as permitted sender) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:3640] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/EB-17132-132084F4 for ; Fri, 24 Feb 2012 16:33:38 -0500 Received: (qmail 30953 invoked by uid 98); 24 Feb 2012 21:33:39 -0000 Received: from localhost by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.05 ( Clear:RC:1(127.0.0.1):. Processed in 0.051871 secs); 24 Feb 2012 21:33:39 -0000 Received: from localhost (HELO www.l-i-e.com) (127.0.0.1) by localhost with SMTP; 24 Feb 2012 21:33:39 -0000 Received: from webmail (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Fri, 24 Feb 2012 15:33:39 -0600 Message-ID: <6714480f274f8c7786ec69ad96a5de3a.squirrel@www.l-i-e.com> In-Reply-To: References: Date: Fri, 24 Feb 2012 15:33:39 -0600 To: internals@lists.php.net User-Agent: SquirrelMail/1.4.21 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] PHP Script Compile System From: ceo@l-i-e.com ("Richard Lynch") On Tue, February 21, 2012 11:49 pm, Deepak Balani wrote: > I am think(actually drafting) about the compilation system of PHP > scripts. > I want to make a native C extension which is able to compile the > scripts in > the Zend Engines opcodes and execute directly when called. > > The extension may have two functions. > > bool gpc_compile($source, $target): compile file to opcodes. > mixed gpc_import($target) Include file to current script. > > gpc_import function accepting path to the compiled file and execute > file > into the zend engine. I want to know perception of you all about this. It sounds intriguing to me, if it can work reliably... But what advantage is this over an opcode cache, really? Now, if you could compile it to binary with `make` that would be REALLY interesting :-) -- brain cancer update: http://richardlynch.blogspot.com/search/label/brain%20tumor Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE