Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120345 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 12175 invoked from network); 18 May 2023 16:13:49 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 May 2023 16:13:49 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 39EAB18053F for ; Thu, 18 May 2023 09:13:48 -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-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) (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 09:13:47 -0700 (PDT) Received: by mail-vs1-f41.google.com with SMTP id ada2fe7eead31-437e760fdf1so23888137.0 for ; Thu, 18 May 2023 09:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684426427; x=1687018427; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1Xv0dKVD2TsXOMsHXRcpYRj9Y1U6i16S3rKhxrGcRuM=; b=Fd5iisGbgL+FYyht3kA4NceQvMoAZ+u9RlI/iSndnNxCLDpigdPZE9bFENus2IYj/l 9PD2zUxh8i7EIeHj2WF9kYYFXC3BXpNdZWnbKcrf+CgNJn+nEE3CsWX6nedOMpuCg5Zv /k2HNSF8UogPSGGtSS7yNrWIfz3mPXlPe5aoAVEA33E7rGvRgsIwPcLVPi0ZX2onlJ5n LnttxKyNAGGhmJX1F7xK6aataUcszmn0u57KAiuBuQZ4XCv1DHx1ZqZERDeWjj6IoYPJ ky26t5i9kuSeSYo0W+i3zLFqbF4TO9UbIxMT6va+4Y4f6Vw8572rE4j1Zt42XrBrZVMg lvSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684426427; x=1687018427; 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=1Xv0dKVD2TsXOMsHXRcpYRj9Y1U6i16S3rKhxrGcRuM=; b=eqqmEdePSJ2SRvyidAd338hTxdaLPHzXA4R4+EZChv5uhqHBYTTfbZMSeJidv437sR mOKyb7w5YIsubcK2O5BE+ISGbgK5iKKjOUIzD3s54MQ51febW7qw9Rd9s+iZVmyGYt11 XlTljnJvTql7kCFLDIG1imE1rR+FV41Ij/ovqL/Yphz5DUq+KQed0UDm8S4+7sdok5Fo MagjJPlyW8vurVjntBa+lOnOLWv2rN4CQn8VBPXcM2K6u2TrCcZtApOnYuCNdgKA/IXN 2mC6OnF7JJyLz5+3X7o9+dwC6xYGqYU4gE2fnibkWt146Vh/4JGp9t1VhwCAF7VBXEdP XZ6A== X-Gm-Message-State: AC+VfDyxr63FMHbtEjvMBB0fgLRRcv/Pyyx5AQjIqKRz7QgfkDXIOCXA kzTXGvLbL+KhMleZ3b4Qz4zkU9OD+n3bGmAiMI0= X-Google-Smtp-Source: ACHHUZ5YnotTebh933AY6q+ZrqAcn0y744/HF2Tp/eiXKsEEH+rcksyh0zeTX2Q7iIEk0mpdqxgZealdMY2icnF0Tx0= X-Received: by 2002:a05:6102:441b:b0:437:e5e5:d1a0 with SMTP id df27-20020a056102441b00b00437e5e5d1a0mr710062vsb.0.1684426426925; Thu, 18 May 2023 09:13:46 -0700 (PDT) MIME-Version: 1.0 References: <000201d9897f$aa9f9fa0$ffdedee0$@roze.lv> <000301d98997$239562c0$6ac02840$@roze.lv> In-Reply-To: <000301d98997$239562c0$6ac02840$@roze.lv> Date: Thu, 18 May 2023 13:13:10 -0300 Message-ID: To: Reinis Rozitis Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000d3c84205fbfa1651" Subject: Re: [PHP-DEV] PHP Package for PHP From: deleugyn@gmail.com (Deleu) --000000000000d3c84205fbfa1651 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 18, 2023 at 11:43=E2=80=AFAM Reinis Rozitis wrote: > > I have worked with PHP for 14 years now and I know nothing about PEAR. > It either says something about me or about PEAR. > > Then the next logical question would be do you know what PECL is? :) > > But to be short my point is - before attempting to get new function(ality= ) > in core it (seems to me) that more realistic if you really want to achiev= e > that is at least by presenting some kind of working base blocks especiall= y > when there are all the means to extend the language both on low level > (being an extension) or a pure-php package in any of the existing channel= s > (composer / push for repopulation of PEAR? etc). > My wish here is not to present a new functionality to core, but rather start a project which lowers the barrier for getting basic things into core. Sure, I could write a new Str class and fix all the problems I think the `str` and `str_` lib has. In fact, everyone can do that [1][2][3][4]. PHP current state actually encourages the language to have multiple competing implementations for the same thing because some past decisions are hard to be fixed and introducing things to the language are also hard. The competition and the diversity addressing all sort of problems is a strength in the PHP Community, but also a weakness in PHP's ability to provide a bare minimum that help newcomers to get started and veterans to only reach for deviation when it is made necessary. > > There is usually the argument - "if this is not in core no one (people on > shared environments/hosting) won't be able to use it" and so on.. The > counter to that are things like Imagick / redis / memcache(d) / APCu whic= h > are vastly popular but still live outside core (obviously those are not > language rather than engine features). > > rr > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php I wouldn't argue in favour or against shared hosting. I haven't used that in a decade so I'm really not the best person to talk about that universe. If someone were to create a PHP Extension to rewrite some of PHP's functionality and/or cover PHP's standard library gaps, I know I wouldn't spend a minute of my time looking into it or installing it. I imagine that it would take many years until someone could actually build up a reputation and a library quality until it could start being considered for adoption. [1] https://github.com/spatie/string [2] https://laravel.com/api/9.x/Illuminate/Support/Str.html [3] https://symfony.com/doc/current/components/string.html [4] https://github.com/azjezz/psl/tree/next/src/Psl/Str --=20 Marco Deleu --000000000000d3c84205fbfa1651--