Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102116 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81522 invoked from network); 17 May 2018 10:27:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2018 10:27:43 -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.176 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.217.176 mail-ua0-f176.google.com Received: from [209.85.217.176] ([209.85.217.176:35906] helo=mail-ua0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/B9-16557-D195DFA5 for ; Thu, 17 May 2018 06:27:42 -0400 Received: by mail-ua0-f176.google.com with SMTP id b25-v6so2604184uak.3 for ; Thu, 17 May 2018 03:27:42 -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=67mpA78Ec0KFkj8/59bYBTnDEssQc96ZZINykGBrtRs=; b=LD6cYLVgs4QqTRS53/T7EgU7lJpjHEGA9+Y/2igGzmc9VA6MVMvS64a2jX0DsYS38N JmLQ5vUTzQlVio2ur0F1WyMVRAPhTVeejoFsBttvcItfTmXwTEQHE8llStUMazWVmqMp A1nr6QQBydU3re3U/UN0p8DsSOszMfNRAEh8PaARS0NQmSJ27uxU5BeZJIA3c2fiUYM/ i+icdt10kl6dre7vaCLAP75XTM//OKCaj086hERWOgYJhs5Fj0Ixz53kKaVEr0Uaw70e pmCvhX2k0jq/Nq3ySD6eF3e94XDDqWSZJojUwGPeIJ73FY9DnhfB4Zpp8w7fHIHom4Ux tWyg== 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=67mpA78Ec0KFkj8/59bYBTnDEssQc96ZZINykGBrtRs=; b=LcJW2HyQs0mh6XeeXipsXFjWYpEoPIqhFOjABTV7DLW3TXc2jyZoTYeFJZCS/nDxsR tDjfRyP8XsjNPQmZd+DQbutsnZe/kZbAmJOEgdsrDM26Ullh4EVH7MWQb7GDDcGO2pcD NNzc+oxFD1XG6N4dow9VL8S9TcUzyKOhLBwq9ipNrlkQwcAuPhAbKhLU9Ha25xiGUwq5 4Cu0ZJIP3yshLeK1tpraRKghSDMKzjngp/wE3Ni1Hjp41JLZOCiC8B/1wd7ilnK0XHNs cfdeTpH1Sam6q4Tu49oDkdphEmTL5u98QsiA5t9a3kVeo5nraAE0VM03rNq6CDWdTQI9 4KBg== X-Gm-Message-State: ALKqPwff1G1rfPU0TodfQCaom5P+nYJhpZlWci1tznVdwX17bIqZ0ud2 1ebvsTpcX4KMV3S++2ZQ6BzF8AvmAUWmZDkCaVuvi/Wx X-Google-Smtp-Source: AB8JxZpUNvShGPjMGglfw8ZjasW3oBi8T/A/23iK9OhS1mYWziAmtrUXfO/SWjsNYEz7QM49kJjwZ8UKup/Ho2t0u98= X-Received: by 2002:ab0:195f:: with SMTP id u31-v6mr3767275uag.123.1526552859566; Thu, 17 May 2018 03:27:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.80.35 with HTTP; Thu, 17 May 2018 03:27:39 -0700 (PDT) X-Originating-IP: [213.99.179.44] In-Reply-To: References: Date: Thu, 17 May 2018 12:27:39 +0200 Message-ID: To: Etienne Kneuss Cc: internals Mailing List Content-Type: multipart/alternative; boundary="000000000000ecfd41056c64488c" Subject: Re: [PHP-DEV] RFC WeakRefs From: pthreads@pthreads.org (Joe Watkins) --000000000000ecfd41056c64488c Content-Type: text/plain; charset="UTF-8" Morning, I'm aware the pecl extension also has weakmap support. I think we've enough time to vote on the implementation of weakrefs, and then think about how we want weak maps to work and vote on the implementation of that. Cheers Joe On Thu, May 17, 2018 at 11:35 AM, Etienne Kneuss wrote: > On Thu, May 17, 2018 at 8:10 AM Joe Watkins wrote: > >> Morning internals, >> >> I'd like to raise for discussion https://wiki.php.net/rfc/weakrefs >> >> Am I missing anything ? >> > > I'm all for implementing all this natively, the way it was implemented in > pecl-weakref always felt hackish and brittle. > > That said, if the plan is to subsume pecl-weakref, I suggest we also > reimplement weakmaps, which offer a convenient way of storing meta/cache > data and is not implementable in userland without trade-offs. > > Best, > > >> >> Cheers >> Joe > > --000000000000ecfd41056c64488c--