Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93894 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21849 invoked from network); 11 Jun 2016 01:46:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2016 01:46:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.193 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.193 mail-qt0-f193.google.com Received: from [209.85.216.193] ([209.85.216.193:36285] helo=mail-qt0-f193.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/62-04630-75D6B575 for ; Fri, 10 Jun 2016 21:45:59 -0400 Received: by mail-qt0-f193.google.com with SMTP id z36so3262044qtb.3 for ; Fri, 10 Jun 2016 18:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=1kG3PoVNunOPgjmejAOENoozUCCECig7kkEBZAdclI8=; b=s2en1ic1DXqbKUQossCavR8JwwzMkd+EgGz4xyC9ixnGDzmgRmunuu4I2iWNW9jwZE 7AT3vfsEbn40if5mnbdOxvreJZHmZPe9OOBWZu2AyyxmrcaN9ZkDb2QF//QExc9E+QGB VF6b7Xd+aJYYGfWIqM/uMsuEYdWyV41QRYXNOoazhwGHIc5P6MMsjd52FNNNccmxJ7Fg HWGk3RlGgcfvs/TYVAwROrByON9oBI1obALHJKEYa0biboAqklrYUmG7ZKoAMEmb3Nl5 7QNRlm8tSrne+R+psSAdSdSp1umqZZfd42IQYFrnyaXsdkYfPv6yMIfAqNWzRY2OoRds 55eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=1kG3PoVNunOPgjmejAOENoozUCCECig7kkEBZAdclI8=; b=E4o96r+PRletVIH9Osl8RPEqZ2z/Jp/Ka9HtPwCvNS3McIrdmOkL78lHlrwzKoLo8N mRktCm/1qeHCFmQtUEe5Tm2wvnw7SBrDveRdpx/5Ghr8/+YOXS+7VOl/bXQl6Tok0XBU OBT3lrAgHEAqyCgc7WkhUP5mihUufx7131i/ykG5+UVHCAEiY9KmUPjDqtmFMl9sJDoD umfb8I3htrU9s/GRro/zhbQlkZnzy/74UMwAlJuU8JZt5cTw5cyodlYz7MHRaiBGuAeK CMgj4oLHZmeIyFD777m+Y7YovGVo1NtapvMdi+nl0IzuqfgzAUPZjrthD+fdK6mCkqd2 D7bg== X-Gm-Message-State: ALyK8tIaZYi6wGcsUgR0SQ1PM0tjxWNKMd1kzQArSTIy2Sipy8cCGW1ZlJR1zVMUvAmab+agiW5lH6AJEW6TfA== X-Received: by 10.200.39.80 with SMTP id h16mr4701855qth.41.1465609556611; Fri, 10 Jun 2016 18:45:56 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.140.23.6 with HTTP; Fri, 10 Jun 2016 18:45:17 -0700 (PDT) In-Reply-To: References: Date: Sat, 11 Jun 2016 10:45:17 +0900 X-Google-Sender-Auth: B3ZIdTPwRxoCPGw9dlb7TQq0nEg Message-ID: To: Dmitry Stogov Cc: Joe Watkins , PHP internals , Phil Sturgeon Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Dmitry, On Fri, Jun 10, 2016 at 9:37 PM, Dmitry Stogov wrote: > I hardly worked on implementation of this patch for a week, but I still don't like it. > > It makes 15% slowdown on each property update in existing PHP code (without types), and I don't see a way to improve this. > > Update of typed properties is going to be even more expensive. > > Benchmark results are included into RFC (and not changed with the latest version of the patch). > > > -1. If we are concerned about performance, DbC would be the only solution for this kind of problem. i.e. Validate fully during development, do minimum validation on production. DbC helps type inference also. There may not be enough time for discussion, but do you think there is enough time for implementation? I suppose implementation is straightforward, so it might be OK to have RFC w/o implementation. We have 2 options anyway. It's waste of time for having 2 implementations. Would you like to proceed the RFC for 7.1? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net