Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120335 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 51819 invoked from network); 18 May 2023 01:07:07 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 May 2023 01:07:07 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7C979180209 for ; Wed, 17 May 2023 18:07:04 -0700 (PDT) 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.6 required=5.0 tests=BAYES_50,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, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 17 May 2023 18:07:04 -0700 (PDT) Received: by mail-vk1-f182.google.com with SMTP id 71dfb90a1353d-44fefe1260cso118192e0c.1 for ; Wed, 17 May 2023 18:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684372023; x=1686964023; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=4U9uA/LKfefQoXxXQwvMgarmQrpDdHGLwWqncFELWo0=; b=TReN4JF1Zd+zTeMIk3+i1UpmMrTNwivA2sxPerrKZqgM1YpLdKMNvL8HIs/vM0JA3d 6GPnBscR8XVdu4u5Q6oZu0iFXgVPuIbJ6aUdh8DnjSvqRPEbELuP0TSEszR5ZwIUy/7s RcdbOUIGNoNIq1ioyfD5jILgSh2rqPe2WX+1Xs2R/TLULK14HT44pioyOwg/WipHsEyE 3PBSlfAPQDjcBjD3OUkU4RwzZEw7SWabsmbz1qgblizDfcwgzypkC4+hDes9CxghST8M TYgOgTCZB9P9NO3MH5OFCCGBZkjKy2DYjDFaAeyO6zZMVEDoA/bBtJlffk1ZWXS0KpcR kmSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684372023; x=1686964023; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=4U9uA/LKfefQoXxXQwvMgarmQrpDdHGLwWqncFELWo0=; b=XD/xJ+Djmvov8E0WVt4LcHq9QzZ4dK5OPHpqHk336n6SAcsDjgnHtHUmdVpP4ZXDIX 31MSopXEGcDdcmHGZNbIqSAFr0goGEAgD9ZiygeA2y6U7TORBcR38yTH5H0x3FaPAly7 4tEo2fuuGZ+QNtjINgtRcDbKi4a1pKhmAlF+2HnNAN68wPZEEzUb7JQT+4L/ZlpYuVZC SLlUQLKqJBzgMl/rAnly/G/q06rrcmlRiG6jxzqWe/1zM+cFx3+UMmEh4NvH5Ss0yX9m xN/5tLWWjiF+glrOyy8amXS1xdirPTykTqr6DxgI1dJh1yAkf9MJl5sn36DqGi7NaRw8 E/rw== X-Gm-Message-State: AC+VfDw1BvdVGnvE89gegVAKiQkPVYY71mBMES//fI7Ca0mkrnCV5Req qpi1HP2zURSC6d2odFHH3bOilKMiuooFACX85zEWmb2s+dY= X-Google-Smtp-Source: ACHHUZ4ygoGksfo22GD8vWsX4hYTHYtr8FP8uH0hzBST/zsz8xl1iqZJIlnifQKGdYA45LkPol44UgC1+HWaJNL++Ks= X-Received: by 2002:a05:6102:2913:b0:428:d010:8aa9 with SMTP id cz19-20020a056102291300b00428d0108aa9mr2201484vsb.2.1684372022812; Wed, 17 May 2023 18:07:02 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 17 May 2023 22:06:26 -0300 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="00000000000016e40d05fbed6c65" Subject: PHP Package for PHP From: deleugyn@gmail.com (Deleu) --00000000000016e40d05fbed6c65 Content-Type: text/plain; charset="UTF-8" Hi folks! Reading through https://externals.io/message/120323#120326 and https://externals.io/message/120323#120332, it reminded me of a few times I've seen similar debates on internals about "why not do this on userland?" and the consensus seems to be inclined to only take the maintenance burden of internals function if there's strong justification for it regardless of whether there's consensus of being useful or not. Which begs the question of a PHP Package for PHP. Some benefits: - Written in PHP, it will allow a much wider pool of contributors than the scarce pool of C developers contributing to PHP source code. - Being official means it inherits the trust PHP already has - Green field development in this day and age often comes with a great set of automation tests that drastically lowers the maintenance burden - Possibility to standardize a lot of common code that has countless userland implementations - If we make a mistake of implementing a bad design, the worst thing might be that we "wasted" a good word in a function or class name. As long as test coverage is there we can probably just keep it running for many years with little negative impact other than "yeah, PHP did a bad job at X". Such a project could benefit from the RFC process already in-place and voters could take into consideration the lower maintenance burden when voting for something that they think it's useful. One relevant downside is that internals might get flooded with RFCs for filling up some common functionalities for a few years until it dials down a bit. It may also lead to re-discussing PHP's entire standard library. The work to get started seems to be about: 1- Getting an RFC to approve this idea itself 2- Getting a repository to host the PHP package code. 3- CI/CD 4- Release Management 5- Versioning Strategy 6- Package naming convention 7- Distribution strategy (single package vs multiple sub-packages) 8- PHP developers and community contributions Anything I'm missing? Thoughts? -- Marco Deleu --00000000000016e40d05fbed6c65--