Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35580 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37285 invoked by uid 1010); 19 Feb 2008 06:42:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 37270 invoked from network); 19 Feb 2008 06:42:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2008 06:42:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:48131] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/28-23568-B5A7AB74 for ; Tue, 19 Feb 2008 01:42:36 -0500 Received: from [192.168.200.117] (c-24-6-219-206.hsd1.ca.comcast.net [24.6.219.206]) (authenticated bits=0) by mail.lerdorf.com (8.14.2/8.14.2/Debian-3) with ESMTP id m1J6gW6b005415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 18 Feb 2008 22:42:32 -0800 Message-ID: <47BA7A58.4090003@lerdorf.com> Date: Mon, 18 Feb 2008 22:42:32 -0800 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Sebastian Bergmann CC: internals@lists.php.net References: <001c01c87264$3c01b4e0$b4051ea0$@de> <58510.98.193.37.55.1203374232.squirrel@www.l-i-e.com> <200802181936.17739.larry@garfieldtech.com> <47BA34AB.6010408@lerdorf.com> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92.1/5882/Mon Feb 18 21:00:24 2008 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] RFC: Traits for PHP From: rasmus@lerdorf.com (Rasmus Lerdorf) Sebastian Bergmann wrote: > Rasmus Lerdorf schrieb: >> The idea here is that we want to be able to cache opcodes, classes and >> functions and optimize them out of the runtime context so the executor >> can skip creating classes and functions on every single request. > > Thanks to their Flattening Property, there should be no notion of traits > at runtime. So once the compiler has flattened a trait into a class it > is just normal oparrays APC needs to deal with. At least as far as I can > see. This was in response to the suggestion that it should be extended to do runtime conditional modification of the classes. -Rasmus