Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124070 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 263A71A009C for ; Sun, 30 Jun 2024 05:01:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719723750; bh=EytkshRc5E8BXGqGbi+eyFss6rOMaunPbgofB5RyJRM=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=bJvprEm9NvBHPWSgag6byXBXJWP7GMxkIK8ur32eS+KKcIBb05HLqVlrvLr7QOm5N Vllzzoo0MrPmhAZZ1JTRtaKFn8SwMEeG3XtGQN/rTddLPMNiI2nsZ3pv+YHqCTwkC/ pxV5oHt4gQYHm1xyZslZkm0JFrQF4xLG/u6xng0Pg6pQZA3PT3ZoiFLSovTkMD2SPk VG5ShBkKbcxLdQmJwSy50oRfZnljqLH6UvH/g7smEf6JLJTwd4vwHaSuq/xCs6cQNc n15B19CCbE+JCaE0lKfjV4hm3DIdR/qnoizl4sk1ZOMd/dzNnnk1fmPR/23Ro4GP1L OQuSgTNdrbAAQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BCB3818003F for ; Sun, 30 Jun 2024 05:02:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fhigh2-smtp.messagingengine.com (fhigh2-smtp.messagingengine.com [103.168.172.153]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 30 Jun 2024 05:02:27 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id DECDB114006B; Sun, 30 Jun 2024 01:01:06 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute1.internal (MEProxy); Sun, 30 Jun 2024 01:01:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1719723666; x= 1719810066; bh=EytkshRc5E8BXGqGbi+eyFss6rOMaunPbgofB5RyJRM=; b=t dqRCHtknn86Yrt9sR8/+vURejbW7mnSyYrb++Mr+QXUgk8qK7KqX15Yyoedaq4Ii TBmh/zlDLOf4pGeJnGHwblFdJlCmDW69On6+tCZUDvQCv0bTSESArgo5u4rRSJDC ObWA9QYU11xgxhgU/QWxavF+uppzD0KXsyTWapvfNn1pbReFelNrH72fI6JMkifW 0ELqaDMcqo9V13TIOtbX1AeSqeUOOj9V2b4kcwy9TxYPog3WXqntuvasd9/xeb4g CeiFtasH4EtIGFte155qYHeLZzlBQ6GukMp+uJEtfwutrgK8NoxU/OnAirpC7iD+ hitHl9Sbfav4LS1ZiXDsg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1719723666; x=1719810066; bh=EytkshRc5E8BXGqGbi+eyFss6rOM aunPbgofB5RyJRM=; b=J0JcIhF4DPtkz5rqZ3odoeU6YzAwbs5Lw1x+1jlNIEti cDADKPwaNgGxj2wI8j0svamFJmBRVYWOd2vUUbYxjS0+mSX9OFFhruAmOXcXPjQ7 6K5DbJY+lnCeQNzxJHncD/ObY21RTK3SXpiYTil2rCnLoV8FBSxRI5umTS42JnUv hTC5aw5bqcS5ZW76E3qtScd0Dpw8EdMZClB/eWC8R2rTttGkzD9NRqGCwXNV0j05 TgKUqkcQiycZ2P9Yf+UFIBn7ZD7Anm+0b90I7jqHgmVpehHppK265nGfm8xLdxxu ZE9Ca5RhzPNHe8mY3CfB/lt5pz9nrnLXJjcnRoCc3A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddtgdeltdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesrgdtreerreerjeenucfhrhhomhepfdftohgs ucfnrghnuggvrhhsfdcuoehrohgssegsohhtthhlvggurdgtohguvghsqeenucggtffrrg htthgvrhhnpedvheekteelveetfeevgeekgfffvdeuhfelveehvdetiefggedtfeejheet gffhueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hrohgssegsohhtthhlvggurdgtohguvghs X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1395215A0092; Sun, 30 Jun 2024 01:01:05 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-538-g1508afaa2-fm-20240616.001-g1508afaa Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: <2e7f87d2-a2a1-47f4-a1f0-31cf490a2edf@app.fastmail.com> In-Reply-To: <50B4D759-03D3-45CA-87C0-757AFC4B67D0@sakiot.com> References: <256b79d4-713c-4547-953d-8bc8291da9f3@app.fastmail.com> <50B4D759-03D3-45CA-87C0-757AFC4B67D0@sakiot.com> Date: Sun, 30 Jun 2024 06:59:55 +0200 To: "Saki Takamachi" Cc: "Gina P. Banyard" , internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] Operator Overrides -- Lite Edition Content-Type: multipart/alternative; boundary=2220353b676643c2941a56d5216f581d From: rob@bottled.codes ("Rob Landers") --2220353b676643c2941a56d5216f581d Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, Jun 30, 2024, at 01:28, Saki Takamachi wrote: > Hi, >=20 > > Hello internals, > >=20 > > I've updated the RFC to include final-ish examples (barring any furt= her constructive feedback), a prototype implementation, and an objection= s section. > >=20 > > Cheers, > >=20 > > Rob >=20 > It seems like the "hack" I mentioned is still possible, am I misunders= tanding something? That=E2=80=99s always going to be a possibility, no matter what we do or= how we do it. I think it would be a rather pointless hack now that I ca= n run the code. For the most part, the engine treats these as numbers an= d trying to dodge that will land you in hot water eventually.=20 >=20 > And I don't understand the purpose of polyfills at all. If you're not = using the GMP extensions and can't do operator overloading, won't you ju= st have a class with protected methods that are never used and don't act= ually do anything? Ah, that could probably be clearer in the RFC, but you have to make it p= ublic to be able to use it. It=E2=80=99s a bit clunky to use without the extension, but that=E2=80=99= s mostly because I didn=E2=80=99t want to get into OperandPosition from = Jordan=E2=80=99s RFC. Many people were confused about it, so I=E2=80=99m= just avoiding it. =E2=80=94 Rob --2220353b676643c2941a56d5216f581d Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable

=
On Sun, Jun 30, 2024, at 01:28, Saki Takamachi wrote:
=
Hi,
<= div>
> Hello internals,

> I've updated the RFC to include final-ish examples (barring= any further constructive feedback), a prototype implementation, and an = objections section.

> Cheers,<= br>

> Rob

=
It seems like the "hack" I mentioned is still possible, am I misund= erstanding something?

That=E2=80= =99s always going to be a possibility, no matter what we do or how we do= it. I think it would be a rather pointless hack now that I can run the = code. For the most part, the engine treats these as numbers and trying t= o dodge that will land you in hot water eventually. 

=

And I don't understand the purpose of polyfills at all. If you're not u= sing the GMP extensions and can't do operator overloading, won't you jus= t have a class with protected methods that are never used and don't actu= ally do anything?

Ah, that cou= ld probably be clearer in the RFC, but you have to make it public to be = able to use it.

It=E2=80=99s a bit clunky t= o use without the extension, but that=E2=80=99s mostly because I didn=E2= =80=99t want to get into OperandPosition from Jordan=E2=80=99s RFC. Many= people were confused about it, so I=E2=80=99m just avoiding it.

=E2=80=94 Rob
= --2220353b676643c2941a56d5216f581d--