Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45280 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6282 invoked from network); 16 Aug 2009 16:25:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Aug 2009 16:25:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.215 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: paul.biggar@gmail.com X-Host-Fingerprint: 209.85.220.215 mail-fx0-f215.google.com Received: from [209.85.220.215] ([209.85.220.215:52811] helo=mail-fx0-f215.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 64/5C-36373-BE2388A4 for ; Sun, 16 Aug 2009 12:25:16 -0400 Received: by fxm11 with SMTP id 11so2075928fxm.15 for ; Sun, 16 Aug 2009 09:25:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=hcOfNmtpCssJIi/3aV/6CJ4eSwP3oXR8uvcygobIwUA=; b=vJZrkZGMHMYTuSMWrSntwi1kOfCsh41OCi1FJysd4259VWYDFxkX4mybqdvK7YVVC+ THDdW07kannOSpv+V8xn6W4yB6zQL0FAiRFd7SbiSKKrC/1Y0JuaxWARGUsmsg+2AlJX qCvOqSOffnyN/iHpijNhcZUs9NM5yAfurXb8U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=vbnKj/CZZiO0TTbv1vPnjzxuKBhh129kz6n33zAN1VdTKcesHe5Z0VkyBEZl1KPwCa zMC99iw+b36sKTpldf0T/H1xquwI/HjjcTdskph3DfC5f4OQ+REQxIqm+TTmlsUNgCRT +AJSO7WtIQQD9bDsmNjELI9jpWwBBI9MWbfSs= MIME-Version: 1.0 Received: by 10.239.135.210 with SMTP id e18mr261351hbe.135.1250439913097; Sun, 16 Aug 2009 09:25:13 -0700 (PDT) In-Reply-To: <36262A27-538B-487C-9C36-10E18DDBED22@stefan-marr.de> References: <36262A27-538B-487C-9C36-10E18DDBED22@stefan-marr.de> Date: Sun, 16 Aug 2009 17:24:53 +0100 Message-ID: To: Stefan Marr Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Design of the Zend Engine's Instruction Set From: paul.biggar@gmail.com (Paul Biggar) Hi Stefan, On Sat, Aug 15, 2009 at 8:52 PM, Stefan Marr wrote: > Sometimes, it would be really interesting to know > where some of the used ideas are coming from > and what the reasoning was. I tend to think that its rather unlikely that > they > are pulled out of thin air. Some parts of the model remind me of CISC > instruction > sets... 3-address form, register-memory model... I think they are pulled out of thin air. More specifically, I think there are optimizations heaped upon optimizations heaped upon an initial implementation. It seems that each new release of PHP has a small speed improvement based on some optimization performed, but that there has been no major rearchitecture since the addition of a bytecode based interpreter in PHP 4. I do not know how that was designed though, maybe others do? One thing I do find interesting is that the register machine nature of PHP comes from an optimization called "compiled variables". CVs point to symbol-table entries, but without them, I'm not sure whether we would still call PHP a register machine. Any thoughts? Thanks, Paul -- Paul Biggar paul.biggar@gmail.com