Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92724 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24462 invoked from network); 25 Apr 2016 11:30:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2016 11:30:19 -0000 Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.161.169 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.161.169 mail-yw0-f169.google.com Received: from [209.85.161.169] ([209.85.161.169:35970] helo=mail-yw0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/94-00233-0CFFD175 for ; Mon, 25 Apr 2016 07:30:10 -0400 Received: by mail-yw0-f169.google.com with SMTP id o66so203138498ywc.3 for ; Mon, 25 Apr 2016 04:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pthreads-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=p8CL483k6w2992W8IlNhqIOmnVv19vpBqQ+ydZ3vxTk=; b=KI0RPocuh1hbWhjDdJhDwb12H2HTUV3CBuZtc98CFbdx9ICJEoI6HVMg2zZ6CdNcZA /9/NyLGUOytDrAuaPGlhvFU1bLee/EEmZ6ewtM+aPY8gBFg9SMS6RVRHPCcIVGkuThT2 2gIvNpmGB8ywYGU5PZSp8qv6S5m50MoUOVi4xexRWflRwZu3dWBnDYiX10FFJJncOOlj pCmETK/hgDdUNWUOGJBNxrlpMLx2MxP2a6XF/PHr1wTTpokBw3Y69KLkGjb6qPFhGlv6 iUyB87C6r+72OS8X1wFbOKrEQCqxl8LYnolBC9oDZfMthguZ3wnfWt0UBhDYuPPEkSym tN7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=p8CL483k6w2992W8IlNhqIOmnVv19vpBqQ+ydZ3vxTk=; b=m6Y7GinHSPAobzT+RT5nwsAieyTI3OV3svHsi1ipiDjz5YFVQQ9XzXjJPsXQfhDvpq 4BBzjyHUSsx61tHMi1vKMuBiuubYLUM8NSwdJnln1b++WCUGJ1DYcPtgjIo9wP/AJkno 1Df93gnW45xN7s7qSnqG3bl6Cv565cXfTg9KAekyVeAOKWxEjZKqQ6peqhVTFsk/jV9K dfJ8qgRIWMGU2zodQYCw7ErA8qI+EByJSDu6lQeH7Si+1SYTaE2qIjbasd+HZS1ehKvV iqg+aJlx9VPT6w15sOW/kM3djpnX4ci1DQgX5oF16n3Qe4HaVZtf9zGfV598XtwDJbBW t0Og== X-Gm-Message-State: AOPr4FWnr2UXoedgifyPYkt12nkTWTHR7zkvMG3j5pNcSV0y2sgqF8ii4B1NXkKU/Xu4F6lb/DKElZeluuYgWg== MIME-Version: 1.0 X-Received: by 10.129.122.207 with SMTP id v198mr20596789ywc.82.1461583803064; Mon, 25 Apr 2016 04:30:03 -0700 (PDT) Received: by 10.129.109.67 with HTTP; Mon, 25 Apr 2016 04:30:02 -0700 (PDT) X-Originating-IP: [109.159.6.57] In-Reply-To: References: <571BA0F0.2030400@fleshgrinder.com> <571C82A7.2060706@fleshgrinder.com> <571CB44C.1000704@fleshgrinder.com> <571CBD1E.7020103@fleshgrinder.com> <571DD2A3.2020106@zend.com> <571DEC9E.80407@zend.com> Date: Mon, 25 Apr 2016 12:30:02 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=94eb2c0b176a6459b605314d7fc9 Subject: Fwd: [PHP-DEV] [RFC] PHP Attributes From: pthreads@pthreads.org (Joe Watkins) --94eb2c0b176a6459b605314d7fc9 Content-Type: text/plain; charset=UTF-8 Forwarded, sorry for top post :( ---------- Forwarded message ---------- From: Joe Watkins Date: Mon, Apr 25, 2016 at 12:28 PM Subject: Re: [PHP-DEV] [RFC] PHP Attributes To: Dmitry Stogov Cc: Pierre Joye , PHP internals < internals@lists.php.net>, Benjamin Eberlei , Sara Golemon Morning internals, This morning I attempted to prototype a dbc extension. In my opinion, the patch, or internals, are not fit for the intended purpose. At the moment, the *only* way to perform meta programming is going to be in userland. This is going to make it prohibitively slow, and rather pointless. None of the compiler API is exported: This means that AST is almost useless to internals unless it's a constant expression. There is a problem with zend extensions and fcall handlers, which we are not sure how to fix. Working with AST is easy, working with opcodes directly is not. Before we can have this, we must work on the AST API and allow extensions to transform AST with much better hooks than we have at the moment. I was excited to start working with this .. at the moment, I'm -1. Cheers Joe PS. If anyone is interested http://github.com/krakjoe/dbc was my first attempt at interacting with the patch. On Mon, Apr 25, 2016 at 11:08 AM, Dmitry Stogov wrote: > > > On 04/25/2016 12:44 PM, Pierre Joye wrote: > >> hi Dmitry, >> >> Awesome work! Thanks. >> >> I do like you keep what was discussed last time. Make the basics >> available and leave the rest to the applications (doctrine or other). >> >> I feel too that how the apps will interact with may need some more >> discussions but other commented on it so I won't interfer here :). >> > I've collected the most interesting feedback at > https://wiki.php.net/rfc/attributes#open_issues > And I'm going to correct RFC and implementation rethinking these questions. > > Thanks. Dmitry. > > >> >> On Mon, Apr 25, 2016 at 3:17 PM, Dmitry Stogov wrote: >> >>> The proposed by you "@..." syntax just won't fit into PHP grammar, >>> because @ >>> used as silence operator. >>> >>> Attribute, syntax is taken from HHVM. I don't see a big reason to >>> introduce >>> more fragmentation into PHP world. >>> >> Also see https://docs.hhvm.com/hack/attributes/syntax and I fully >> agree with Dmitry here. It makes no sense now to go with our own >> syntax. >> >> If any of the hhvm developers are around, we may get some feedbacks >> about their current APIs (using getAttributes) and if they would like >> to change one thing or another. That could (or must) part of the PHP >> specifications. >> >> Cheers, >> > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --94eb2c0b176a6459b605314d7fc9--