Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110097 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 64976 invoked from network); 8 May 2020 23:53:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 May 2020 23:53:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8F8381804C2 for ; Fri, 8 May 2020 15:29:29 -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=1.0 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,URIBL_SBL,URIBL_SBL_A 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-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 8 May 2020 15:29:29 -0700 (PDT) Received: by mail-qk1-f182.google.com with SMTP id b6so2375211qkh.11 for ; Fri, 08 May 2020 15:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=BLA4j/1T5QPcZVnG/M2bswAPxALSRZs7Dt8Cua1+Va4=; b=Y86vZtevG7UJG0DJdYa1B9Zjvef8MM4bW398k3UpmUDUcqtQMguWxuQO3F5Mif/ixy XyjE3OFfJSMZlomkGVBWeKc2Kk5Pf/T58FdNFU/CJ53cfBqZzGPhFIFBhXZWVbfzbhn+ ygSa4iN94M15T44uEGI22fcpvJEVcuTWo0R/KxWdp1fa3y9BgSMlgQiDDpU6VAHfV+Em lfzHtR1uM6Dic/iEmrVDrhhBiyfQC9FCbEDooDJjGT0pZnXRX/C56Jo5lJ5kmfK738rJ swofvqgZMmvGdelEiBiXTRpiJZ2koMer++CUNKIpp790o1RgshEaP+N1oGuSzyk8lxIW 1Now== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=BLA4j/1T5QPcZVnG/M2bswAPxALSRZs7Dt8Cua1+Va4=; b=fw1FzeBoOqXP4VBA5yUQWI6asZk3YDGyZSw+2uZ1EIdVm6cJyB1/734Qb34ZQXRwhi HFXvTEIJIyoJKly6sPxlS71sakVmlCLgWQb0KdJ94PDwnehDgZlVYqDIQouzhtjODSR3 9Lydlhv2gc3IfZ9OpaTupA8pCFZcqIdy4IcUUYNALay9ergO/wB1OehagqfuR+4fCeQR TAe690MSxx9vFW7ktz2JMv/XH52kjHmgN0iGI736IL0RJ/jtYsC98TMXcQjodl3cYDm/ MaJf27/qZ76IMuyAEmxUN8bT9N4hB84cWtjB5HaLg/m5OXd++CgVoDQyQg2td+5Jx5to AY7Q== X-Gm-Message-State: AGi0PuZkMF9m0Nwzt/SRTusQN4PmsQ/cOokDDZhPCS9hBPmMldaQix4s DZbAjUtS5piZhC9j95QiRCMdvA== X-Google-Smtp-Source: APiQypJWxvSjqp66u67HAkcOFtHZ7OoOR9CBZYEZTfZP0OAq2vlFyaophvmjf1wWr+5ql92l4JM01A== X-Received: by 2002:a05:620a:1509:: with SMTP id i9mr4701809qkk.445.1588976966890; Fri, 08 May 2020 15:29:26 -0700 (PDT) Received: from [10.10.42.56] (h96-61-170-50.lvrgtn.dsl.dynamic.tds.net. [96.61.170.50]) by smtp.gmail.com with ESMTPSA id q32sm2699974qta.13.2020.05.08.15.29.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 May 2020 15:29:25 -0700 (PDT) Message-ID: <15BDA2A4-4654-46D9-BEA9-83E7515A25F6@benramsey.com> Content-Type: multipart/signed; boundary="Apple-Mail=_A65404FE-BC0B-4AA9-B398-3D87E807852D"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Date: Fri, 8 May 2020 17:29:24 -0500 In-Reply-To: <004e01d62574$aece7b90$0c6b72b0$@jhdxr.com> Cc: Mike Schinkel , Dan Ackroyd , Rowan Tommins , PHP internals To: CHU Zhaowei References: <05D65F68-662F-4AE4-8D84-25B1D4279420@newclarity.net> <004e01d62574$aece7b90$0c6b72b0$@jhdxr.com> X-Mailer: Apple Mail (2.3608.80.23.2.2) Subject: Re: [PHP-DEV] A Standard PHAR library included with PHP? From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_A65404FE-BC0B-4AA9-B398-3D87E807852D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On May 8, 2020, at 15:10, CHU Zhaowei wrote: >=20 > This idea has been brought up during the RFC for preloading. I think = it's a good idea because it will make the c part smaller, and reduce the = cost of maintenance. The question is, where should we start with? the = existing functions in C work well, why should we put effect to convert = them back to php. For new functions, it means more workload. The RFC's = author has to convince others that this feature is better to implement = in PHP rather than in C. I agree that the RFC for this must make a compelling case for it, since = it will require work in the core to make this possible, and that work = probably won=E2=80=99t be trivial. As for porting code from C into PHP, I don=E2=80=99t think it has to be = done en masse. I would start with no more than a handful of simple = functions (maybe even `uniqid()`, since that=E2=80=99s where this = discussion began) that would act as examples. Once the capability for this is implemented and shipped, I think finding = contributors to port functionality on a function-by-function basis = won=E2=80=99t be difficult, since more folks in the community will be = able to contribute, but it also doesn=E2=80=99t need to be done at a = rapid pace, either. The primary benefit of porting from C to PHP in the = core, IMO, is for greater opportunities for contributions and = maintenance from the community. Cheers, Ben --Apple-Mail=_A65404FE-BC0B-4AA9-B398-3D87E807852D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXrXdRAAKCRCwLZeYnIwH G2XCAQCQag8/kpWXmPL3EPMcrPxUl+8KaObYNCl52acQHi9a/wD+P/NsS8elOPRP g3tzqk5qHlzuAK8zQATI+2kx3FA6jAA= =d4vw -----END PGP SIGNATURE----- --Apple-Mail=_A65404FE-BC0B-4AA9-B398-3D87E807852D--