Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92723 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22874 invoked from network); 25 Apr 2016 11:29:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2016 11:29:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.161.172 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.161.172 mail-yw0-f172.google.com Received: from [209.85.161.172] ([209.85.161.172:36006] helo=mail-yw0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/34-00233-B7FFD175 for ; Mon, 25 Apr 2016 07:29:00 -0400 Received: by mail-yw0-f172.google.com with SMTP id o66so203089562ywc.3 for ; Mon, 25 Apr 2016 04:28:59 -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 :cc; bh=q5OEGuRKMG49PJjY6sxKZPeT9OWE18r4sgd0LVckQZU=; b=j4JX+jNKOWiAC8Lx6vplqPai71MggwrvSaddHBiL7RRwdOTlxlX+xh1GeQ4QM/kZdj 6UwLacit+rbzm5CNtOFhk+biSug82d528A65XCv8JVpKMenFRXYosZTZBSYpXqb+dxKM ofjhzZOaLu6aIFNrE73GsuMqZXoFo5K4ZqpP54HsnmQ1wPZpWzYCsoif5HVfQSi0HzgI nflGLhT59eiNy379eMTe8g4ceSkMNgOFRkYHEVDYVyHXPoZpMdPJPnzug5KAL4iCm21r jaSiPsSMxyYeTHIlg/7RJtyDjjkm9LMU0f+VkR26aFqL6Ki2ybVJhKtR8sxjC6xjqpgb lWlQ== 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:cc; bh=q5OEGuRKMG49PJjY6sxKZPeT9OWE18r4sgd0LVckQZU=; b=V418uinmJXk4rbVxZmi+rkMCJjinYFaGJRABHAHbCQHgkMtDqE3lON86qZ6aKX+9lX 29522aUeYZ64dna9MrNHgAvUwyEesN+7HE0EmrSFl1Psm3LkRlRt2VXC2VNArMwkfL5b chXev5lMg0bdaUUrnu8On6T52qK8/5kNh3eyF49Tqe9OoDBW83QhhQix+g1tAJe/PxzS XEVDDtQ/ILD2Y74z8ndsOlEioGoVgmlZYodr8RoMa/SOhahyFkd+i2gehY/jtNWfoCwd LlQc75cxS9h7hgMTPiiuom7SNMezYzNt03go8dhq6FhzPl0FUJAG+NB7dEhhgc0DQrv0 dohg== X-Gm-Message-State: AOPr4FUq9BbJLrRIIr+NDphJZWix6I1F/QiuIeehAg6FvaBvJJkm5/wk9ntEALkbwv0z8K4JQS6jV9DW8Yt2LA== MIME-Version: 1.0 X-Received: by 10.129.86.131 with SMTP id k125mr20158900ywb.158.1461583737589; Mon, 25 Apr 2016 04:28:57 -0700 (PDT) Received: by 10.129.109.67 with HTTP; Mon, 25 Apr 2016 04:28:57 -0700 (PDT) X-Originating-IP: [109.159.6.57] In-Reply-To: <571DEC9E.80407@zend.com> 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:28:57 +0100 Message-ID: To: Dmitry Stogov Cc: Pierre Joye , PHP internals , Benjamin Eberlei , Sara Golemon Content-Type: multipart/alternative; boundary=001a1143312c7d415605314d7b8c Subject: Re: [PHP-DEV] [RFC] PHP Attributes From: pthreads@pthreads.org (Joe Watkins) --001a1143312c7d415605314d7b8c Content-Type: text/plain; charset=UTF-8 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 > > --001a1143312c7d415605314d7b8c--