Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102113 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72694 invoked from network); 17 May 2018 08:25:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2018 08:25:55 -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.217.175 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.217.175 mail-ua0-f175.google.com Received: from [209.85.217.175] ([209.85.217.175:35727] helo=mail-ua0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/48-16557-19C3DFA5 for ; Thu, 17 May 2018 04:25:55 -0400 Received: by mail-ua0-f175.google.com with SMTP id a2-v6so2397343uak.2 for ; Thu, 17 May 2018 01:25:53 -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:from:date:message-id:subject:to :cc; bh=50858IX1h5xlwVASEANezMEbR7iuC8Yz/eb8NlXMBzU=; b=2MUhDRWamRw9eaJV1j1HigEPVSW7UjSwynV3JSn05c2kVuBCjUnT3thWYB4+t08mYT OboBBJs8AbFJ5inm4VP2odiyHiwto0tuCPaPifLM+ZuAs+offgjHabYGF9gzEt5tABjn +C3tE8kJe+vpu6xc/3MSfSTccjMT9CBsPQUzgcVtrOpNCF4a05VUz9wOWcWv3883clW3 EOgOvGWlM9lsikTwugzEbYRYij4o1FIdaj60t8+ZZEf1oDiYENnCKqCzrGpfzwKOrEuP LRtSbctPwE7x7pQB2l30VZm0ww1C2ejIZ9BqUOiiAT3keyGlXcX/V2Nk00uZIbufmB48 Y1pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=50858IX1h5xlwVASEANezMEbR7iuC8Yz/eb8NlXMBzU=; b=mx+99rkjhLJnTMayHvrMsN0YJrtOTH2Ui8IwFy1LumKkHdWmQZ2CoWnE16Y1tLL2sI FmCG3kZIJzWxc3WPe7hh3foaVNK6GkukLFVrAuxJkucDvIg52+vGkm34HYdh0P44Pf19 dUlTcSn6C5AlWv+QYoTfteqnpxew6ukfcC/rpglpkFzRCjkykY6m0K6ePsHGyg4mGPbn zofz7fPvowNfLxwlcHqH/IRpJCfI73aX+09omCS4UYQ8Y5u0LHYUH+1PB5hWIE0/jz+R FakuGvP8zf6+KRi9xsn5ONbLqIyiatpIWNUGw69cOgHiI5Xcv2yxHlMt9YeIIsFGhxdm 74pw== X-Gm-Message-State: ALKqPwf5X7SqRT+GKO2mk6NpEQ4jQPBTBFRkakkUoMNOCmNyoaAvM+5f bL7bLKbvTM6s1DeOH8lDpkjlczb8kH6LB6G3Sfhe1Q== X-Google-Smtp-Source: AB8JxZrDd55HilQG+9qpcwc1Ht9mKORugG0UTb/RvFnwoTGWX5Vab7EaYfk51qQeyd6x507U1I6qnE+GTqI9s+or6EM= X-Received: by 2002:a9f:3ac1:: with SMTP id q1-v6mr3618291uag.65.1526545551471; Thu, 17 May 2018 01:25:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.80.35 with HTTP; Thu, 17 May 2018 01:25:51 -0700 (PDT) X-Originating-IP: [213.99.179.44] In-Reply-To: <7BB05A0C-527B-4793-AD82-C1BEB27E0A02@gmail.com> References: <7BB05A0C-527B-4793-AD82-C1BEB27E0A02@gmail.com> Date: Thu, 17 May 2018 10:25:51 +0200 Message-ID: To: Rowan Collins Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000545136056c62953a" Subject: Re: [PHP-DEV] RFC WeakRefs From: pthreads@pthreads.org (Joe Watkins) --000000000000545136056c62953a Content-Type: text/plain; charset="UTF-8" Morning Rowan, I've updated the RFC with a description of the API and comparison to the current WeakRef API documented by the pecl extension. Example code can be found in tests also ... Cheers Joe On Thu, May 17, 2018 at 9:36 AM, Rowan Collins wrote: > On 17 May 2018 07:09:28 BST, Joe Watkins wrote: > >Morning internals, > > > >I'd like to raise for discussion https://wiki.php.net/rfc/weakrefs > > Hi Joe, > > Sounds exciting! > > What does this look like from userland? I'm guessing you wrap the object > you want a weak reference to in a special container? If so, has there been > any previous discussion of baking it further into the language, e.g. as a > keyword to wrap, and an implicit unwrap? Obviously something that could be > revisited later, just curious if it's been considered. > > Cheers, > > -- > Rowan Collins > [IMSoP] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --000000000000545136056c62953a--