Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120339 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 92571 invoked from network); 18 May 2023 13:42:15 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 May 2023 13:42:15 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7E1851804D7 for ; Thu, 18 May 2023 06:42:14 -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=-2.1 required=5.0 tests=BAYES_00,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-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (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 ; Thu, 18 May 2023 06:42:14 -0700 (PDT) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-55db055b412so29062037b3.0 for ; Thu, 18 May 2023 06:42:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684417333; x=1687009333; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cX2PDvl9IRkhgLvB727imx3f5Sln0FZ9d9IUiTuAjNI=; b=aiUPOnCXtSo2bi5L4DtSMNNRFAAuHLBruhgvpwATvr4suxysWhJV5N+Xm7uFJ0dCBs MAbHCpnwHT4UrYSmlcxWy0W+UxOsbtUFP2YX5ozbfFzhYnQVBe59biBZEVhaRB9GPICJ OFJJIdhDKXYItHOPFIZjJ8ytyCvi3OWFeG/ZxmX9j0Y3qWjtJpO5IE2wzVyGMsOLZLz/ Hgza5yX76bPEwRjVmyFbG+pQNKKS/lKOIIv6HlQYjKIdEHxcMbPvtji0g52ij+ME4TRC 1+KYepT82TsVtBcswWiO11T3TWYbmpO2Bf04mGKpf5gMCa+YKnms4PdfFeleJ/YDDF4k dE2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684417333; x=1687009333; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cX2PDvl9IRkhgLvB727imx3f5Sln0FZ9d9IUiTuAjNI=; b=UBeNnTcRxh+zYBxvSvntKggn3ucLrqWn5/ioi13zke3dd0s31MjlJN3iHt2sVJwrOE iT4e+xdUu0u/6N36eCNuQLbXqOyj6Pg/RBnIIrVBDRwM8nJvII8P12fmeGJp4IvsImxy sv4rcVLSShLbf1quYuoMrzPJnjSoYT05pu+ROQgGuUOqOJw87L0U8HWwjPNu2RbHQ+iE ms5HlkD2QxZuLnn7iN7Q+EGjZGCtDopLUn/8hwTKgsrFJyuPG48uL0QhTAKR7/Gy9W4T nOIP/qyI2UH7d3vnlUdyGdGLzr6j+ePyDdG13WME60WKZwGjz1dI1dzTL8H6RMFzYrRN nkZA== X-Gm-Message-State: AC+VfDwMcDOVyV6s7jFp2ifXUmGyvjkRGNIM+wX5QJgeoNZ8IQo691J9 RjBJf2ltWEjGhkEWOAj6IsOGOm4INubIDDLaxSk= X-Google-Smtp-Source: ACHHUZ4mb0hq0x5s+rU1yLDO0/VBPOGUkAlSw31hmhuCgA0Qjy0IZwL2Ae+UAwS0ff0/j4ee98QXOvJ8Kh1IV5SnaQs= X-Received: by 2002:a81:954:0:b0:561:b53d:d1f1 with SMTP id 81-20020a810954000000b00561b53dd1f1mr1349146ywj.19.1684417333300; Thu, 18 May 2023 06:42:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 18 May 2023 15:41:46 +0200 Message-ID: To: Deleu Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000ce147905fbf7f89c" Subject: Re: [PHP-DEV] PHP Package for PHP From: kjarli@gmail.com (Lynn) --000000000000ce147905fbf7f89c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 18, 2023 at 3:07=E2=80=AFAM Deleu wrote: > 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 burde= n > of internals function if there's strong justification for it regardless o= f > 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 th= e > 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 se= t > 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 migh= t > 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 year= s > 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 dow= n > 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 > A few more benefits: - an official php polyfill package to be forward compatible with new classes/functions/constants for core php - popular features could eventually be ported to C if it gives a benefit in performance, or if they are really popular - applications with slower upgrade cycles would have less effort implementing new php features --000000000000ce147905fbf7f89c--