Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113423 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 23378 invoked from network); 9 Mar 2021 04:55:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Mar 2021 04:55:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1EBDC180087 for ; Mon, 8 Mar 2021 20:47:24 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 8 Mar 2021 20:47:20 -0800 (PST) Received: by mail-lj1-f182.google.com with SMTP id t9so18970318ljt.8 for ; Mon, 08 Mar 2021 20:47:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uc0a0GPvPslxL3adVFq7+JVx1GyrwJtrck6VF2ZogNw=; b=iMT6OP5OdQ6AHTPmGt7j5zPXQzTD0vR45VbEV2GDUuYOY82XEW4dAvmiWiJghbmebH 9k4GrAwM+fsSc2i4Qhrr3LkkfIQjkkMHCrP9WxxJwz4mehf4iEGVso4+kGP3REyLecnK ze+F/ILFHvFtdD2o0RJ6JGBdbhat6Bz3nR08NsCkA4wCevn48nYyEu0nk60EeKSu8+C7 NbgR2qGIXIY6OqiEnsl3TLMi91E9ktTzT44dng4wjLs+JR0k1zRRCc+lEy9pXSXjvek5 CX8xG+Zc0O368v+OVlltUtl7JuyzpGW/eekaM9JWxMUvMvZOJMSeIgbAjPYfehFpAa1K 5yow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uc0a0GPvPslxL3adVFq7+JVx1GyrwJtrck6VF2ZogNw=; b=NuA9Jc/P3M457h+Ev1ZpdDWaF10AfA8jHP33IUcNHtoNOIRTHayOuOt85DxtigWAYj e+bfmu3mrR01P/gPfMNFplZwysf79jT9OMmb078K24giF85s/+2Lxhl41NG0WvW2D1ex Wn8wiLqXh7LxkMDcrAtl+c/IajznmYxufjGTUvgjlp4H+IX+2JVeDw1sWBDh9FGn9oG7 jjQx8ImVe3S7uzSl/t+vbBzs8/trNaU7HXFwxRt5HbZ5M0byjxC3POGecn1U4OuAmw0v se3dCQMhD1xv2LVcElrkCRf4dEVTzTCIYnOMrZCiz3H9RIpJw/Ki4eXG01oG00+hhDrI ut1Q== X-Gm-Message-State: AOAM532OH45CUPlrbYgo5IJBbd0HIZliKr7rVTlKtOcSKNgra/2BujzT PzzGI3uqHQ3rnCMhLi+igdyHqAE3ZHatsihB9ZcU+Ybb45U= X-Google-Smtp-Source: ABdhPJxb+XrW7o7rV5+wcGCMQPvkL9vzliWx8k3zUOUQ3hDD2txUdgZtw81jat/irGtfRGln1t19mE16ITV9N6C/S4U= X-Received: by 2002:a2e:9d4:: with SMTP id 203mr15771314ljj.211.1615265237877; Mon, 08 Mar 2021 20:47:17 -0800 (PST) MIME-Version: 1.0 References: <667787b3-3923-4708-b6c3-6c01f6547783@www.fastmail.com> In-Reply-To: <667787b3-3923-4708-b6c3-6c01f6547783@www.fastmail.com> Date: Mon, 8 Mar 2021 20:47:04 -0800 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="000000000000b8caf605bd133ea7" Subject: Re: [PHP-DEV] [VOTE] Fibers From: sarkedev@gmail.com (Peter Stalman) --000000000000b8caf605bd133ea7 Content-Type: text/plain; charset="UTF-8" Here we go again! Looking at you, attributes syntax. Seriously though, any of `this`, `active`, `current`, or even `Fiber::self` are fine with me. You might have the same issue with that last one. Thanks, Peter On Mon., Mar. 8, 2021, 14:57 Larry Garfield, wrote: > On Mon, Mar 8, 2021, at 1:40 PM, Aaron Piotrowski wrote: > > Greetings everyone! > > > > The vote has started on the fiber RFC: https://wiki.php.net/rfc/fibers > > > > > > Voting will run through March 22nd. > > > > Cheers, > > Aaron Piotrowski > > This is vastly improved from the earlier drafts I saw. Well done, Aaron! > > There is one issue that still stands out like a sore thumb to me, which I > really should have reviewed and caught earlier. (Entirely my fault.) > Fiber::this() seems like a very poorly chosen name for that method. "this" > in PHP implies "the object I am currently in." Even if there's no $ on a > method, that's still the mental association that word has in PHP. But in > this case, Fiber::this() does not mean "the object I'm currently in," but > "the Fiber object that wraps the callable I'm currently in, which is itself > an object but not the object I mean, but there may be an arbitrary number > of call stack levels between me and that Fiber object." That's... very > confusing for a human, even if syntactically unambiguous. > > I am still voting Yes on the RFC, but I would urge you to follow-up (with > another RFC, or a consensus agreement, no one telling you not to, or > whatever the process is, I'm easy) with renaming that method to something > less confusing. Fiber::active() seems like the best name to me (after some > discussion with Aaron off-list), as it refers the fiber that is currently > "actively" executing opcodes. > > Otherwise, well done and I look forward to when we can build a > standardized user-facing API on top of it. :-) > > --Larry Garfield > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --000000000000b8caf605bd133ea7--