Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45281 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10491 invoked from network); 16 Aug 2009 16:33:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Aug 2009 16:33:55 -0000 Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.159 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: 72.14.220.159 fg-out-1718.google.com Received: from [72.14.220.159] ([72.14.220.159:39478] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/4D-36373-0F4388A4 for ; Sun, 16 Aug 2009 12:33:53 -0400 Received: by fg-out-1718.google.com with SMTP id 13so294546fge.0 for ; Sun, 16 Aug 2009 09:33:50 -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=KKE/Xlo/onj03Nkz1uJI+VgwBdCZbyLSw41azZVs3qc=; b=vbYbVKP6yDhyJ0JD919qn9P6W+zUw5Q5WdpHk+vwiLJEogq83avSfrMEgOgqXx4cVC UYnX6aiiBHOqWHDWpLCKCeLSPFDpH8I+4vgNPM/TFqG7z/Xg05BY5oDdgm3OgxxBqy+x 6yFr4RYLzgKPrT1B135YsiO1b9NxO1sU8TWYI= 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=WzdGJwVfJzn88Vy35s+G5CY/h9zu6N5B2CjQwxdMiP/9UZ2Jok14gM1mZn+DKF+mve TI3jx9tiE3BRNSK5ncNCaaslMpTM8wifC1HGaxeggtj8ADOZvLSGCqhhjiOTqyPpLzM+ Mi96ywm1dUQUSEqWFhklty6q7QuiFnMuxIEZc= MIME-Version: 1.0 Received: by 10.239.145.29 with SMTP id q29mr246630hba.127.1250440430099; Sun, 16 Aug 2009 09:33:50 -0700 (PDT) In-Reply-To: <1035866081.20090816155804@scriptolutions.com> References: <465610226.20090816150239@scriptolutions.com> <1035866081.20090816155804@scriptolutions.com> Date: Sun, 16 Aug 2009 17:33:30 +0100 Message-ID: To: Lothar Scholz Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: Re[3]: [PHP-DEV] Design of the Zend Engine's Instruction Set From: paul.biggar@gmail.com (Paul Biggar) On Sun, Aug 16, 2009 at 9:58 AM, Lothar Scholz wrote: > >>>> where the instruction encoding >>>> is much more complex then for instance for the >>>> JVM, Python, or Smalltalk. > > PB>> Yes, definitely. > > And again we see that complexity is just that complex but not > necessarily good. As all others outperform PHP in all basic > operations. Yes, by many times. Part of that might be the expense of PHP's weak typing and references. They cause most operations to be more expensive, even if they are not used in that particular operation. I did a performance analysis of PHP in a paper I have in submission. You might find it interesting (comment welcome): https://www.cs.tcd.ie/~pbiggar/wip-sac-journal.pdf. There was a POPL paper this year on Copy-on-write in PHP, which might be interesting to you. There was also a PLDI paper on the performance effects of PHP's memory allocator, which might also interest you. Thanks, Paul -- Paul Biggar paul.biggar@gmail.com