Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124392 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 172771A00B7 for ; Thu, 11 Jul 2024 14:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720709041; bh=uQrQADUyHLdKiYnOmTKTCT/6yG/M9BnUmcadMT+96/c=; h=In-Reply-To:References:Date:From:To:Subject:From; b=ihIxYoqCiwpDvN20DZulMmd8pH8HPto8kXP3GN+RFZp5ziwMMQvFVkkTHfRXkrESr B30KPnBi7l9qn30s4eAydBrRauxK2NjOYPwNBhttvMkqBFXqtI2e/oNNFl50qMERsT O0D5+RHyNKVsvEnv9QNDvtK/8XBY5WHiPY994rxBRr3ON2kEm7/qlgaPxU5+1y0i24 ieI6yghDPCmPPSF67pkSvB25oz0s0sEX1kOBCALUjDUrMbf9bmda0FmQ/scon8vmkP PS8e8ymSk0CVaBxnmwncOh1didojFvQNVaOOw8C1cSbbppobLvQLIOE0+DlEAggnhu GNOYLDqRu7H5w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2BE871804F6 for ; Thu, 11 Jul 2024 14:44:00 +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,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout7-smtp.messagingengine.com (fout7-smtp.messagingengine.com [103.168.172.150]) (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 ; Thu, 11 Jul 2024 14:43:59 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id 9D83F13811C3 for ; Thu, 11 Jul 2024 10:32:53 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute6.internal (MEProxy); Thu, 11 Jul 2024 10:32:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=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=fm2; t=1720708373; x=1720794773; bh=bUDMvltKOG 2RuaY4X6ruW4oSpYYj9vra6pyHIxSoCIk=; b=WxaJcPAQBW9TKdYscffKU0jAI2 K29SIiWBLXCJGNtPkTpe11uX0vmJ/ZVFzpNJ9NUIxgIOFxe1YKPXTVmMNZW5ifFB UZKSJA1rB/aaJECYjM+PTfQR8XBf7TxsWhIu3X8BhEDBpmXPkzDKoF2BEWnzbTIS M0AWspZRUg/lHdkBi1AkkzeM2LVdvwyDGaW9zWbdSOo/6EWOJwAIG8U8R6//5ZVK 6z2/SSQ8KR5diPigMqkcz201Po2qusGtGY2XkLHHWH5V0kHFKPxr0Teu564LQKw5 mu97rWzIlPSpMIfCMnN7rMRFCEm+UQNlG6rJ+76cQYM7bd6oynsa2BFqjvWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1720708373; x=1720794773; bh=bUDMvltKOG2RuaY4X6ruW4oSpYYj 9vra6pyHIxSoCIk=; b=Cwx/735MJJynXYnpcvaZOUtDV3WxF3LsE06FxFMuvq2z 6SdnkuX1I8tmvLpJuMQo7ayBn0Fhw1t1RS69fdvh+BgY0yg13myC4s6CpZflq3qO ilzfUB+dmUuaUkZXVEIhoGyFs738h6d18tF7cZrL4yXmTo5Dyv+NJaUXw3YQjepV zLLb7JmgNVhTpa8Pvdf5UrwyPCkkciWRZvOCGzm26TxbgOGFGzU4G5uBr1nDPPpC 4su2clNw6GUqEWwA5dMkCX3uhLQ5J0XNC928jUFxDv269+bfTTtrraGn8RplirE9 wzLAZMFOaN+lKn3/XfMte5ehG68+D2/fvmPRzPYYDA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrfeeggdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftfhofigr nhcuvfhomhhmihhnshculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrd gtohdruhhkqeenucggtffrrghtthgvrhhnpeevheevveevjeffvddvgeefhfffhfdukeej heevtedtfeevjefhledvffejuedttdenucffohhmrghinhepfihikhhiphgvughirgdroh hrghdpgihktggurdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepihhmshhophdrphhhphesrhifvggtrdgtohdruhhk X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 453411700093; Thu, 11 Jul 2024 10:32:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-568-g843fbadbe-fm-20240701.003-g843fbadb Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: <5e9ddf7b-e2ef-44df-85a6-623c220f2da4@app.fastmail.com> In-Reply-To: References: <09559430-4477-4516-8D78-6F4071E1AA6C@newclarity.net> <0182F3D6-F464-477F-9029-A2D0A8B50C71@koalephant.com> <1AFD7AAE-8BEA-460D-88A8-15BB3D30A775@koalephant.com> <7B633CC7-C768-4852-A4D0-B252A04F7DE1@newclarity.net> <0E11F373-99DC-496E-9BBC-2F8688B9F66A@newclarity.net> <4F720A7A-B7DD-4B31-B0C9-6907419B53A5@newclarity.net> <7b40e925-d642-4cf4-83f8-f903a9964362@app.fastmail.com> <3c09786f-705d-4601-91a0-d2498304bbd7@app.fastmail.com> Date: Thu, 11 Jul 2024 15:32:13 +0100 To: "php internals" Subject: Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV) Content-Type: text/plain From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On Thu, 11 Jul 2024, at 12:26, Mike Schinkel wrote: > Let me use an analogy. Envision two people on a city council of a small town. One proposes the city should > implement a water, power and sewer grid so anyone who wants to build a new home or business in the city > would be able to do so easily. This is a terrible analogy, IMHO. Here's a more pertinent one: You have a city, where there is a working electricity grid. [That's autoloading, provided by PHP for many years.] Most of the city are using a particular plug and socket system; the sockets aren't fitted by the electricity company, but the shops are full of devices that use these plugs, and most people have found the sockets really easy to fit. [That's Composer] One district runs most of its appliances on gas, and has its own way of connecting them. People want to run electric appliances, and the grid goes right through the district, but for some reason, nobody's connected it up to the houses. So everyone has multiple gas-to-electricity converters, which is annoying. [That's WordPress] Someone comes along, and rather than approaching the district [WordPress] and offering to help wire them to the existing grid, decides that what's needed is for the city to provide them with a new type of plug [a different autoloader function], which they won't be able to use immediately anyway. > https://en.wikipedia.org/wiki/Interoperability > https://en.wikipedia.org/wiki/Network_effect Adding something to core in the hope of it becoming a standard is exactly the opposite of the network effect. The network effect is "everyone already uses Composer, so nobody cares what PHP core does". See also https://xkcd.com/927/ and since I used an electric plug analogy, check out the "international standard" plug, which has been adopted in exactly one country: https://en.wikipedia.org/wiki/IEC_60906-1 If you want to solve autoloading in WordPress, this is the wrong forum. Firstly, anything you do in core will not be adopted by WordPress, because it will be 5+ years before their minimum PHP version is high enough to use it. You're going to have to write a userland polyfill anyway. Secondly, mapping namespaces to directories isn't the hard part for WordPress. The hard part is integrating into their existing plugin installer system - which already has a system for metadata, it doesn't need a new config file - and persuading plugin authors to actually use it. Maybe you also need Composer to make some changes to control it without the CLI, so plugins can list their requirements and have them installed centrally. That's also not a subject for this list. Regards, -- Rowan Tommins [IMSoP]