Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124394 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 E0BB41A00B7 for ; Thu, 11 Jul 2024 16:41:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720716206; bh=I20zmValGaipbnN2SW9vPEHLAln1QnaG56vdP6e8nqE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=YhkaLTmg+N2JakJX3J0HfFRnNiV9YCJIfsGtWWe2ujjWAztrwHEnu3mPxCtsDcoz5 2jtYjWH8jD4TwXmvpwg7w4VPxDgz5fw6BL0New4CE10OY/FNi90VRxQO24y+CcJovb UnzMqyb7FVXxrhCWAYcsS++Tm592NapVDlr89ZBrJexDnjzU+CsMHUjs1QfzINoFl4 lbInOYMK2kkwy4ax2X3TFlfZiFgoP5JmS/Tde64V+ejp62w1FZHz8tKHCY/sznQOjB a1vvqSDeIA4OhDFvTNmMFtkpjPDw1LX3jSKw86R4oALwnRJg6wNmOm3LS4EoivUWMR QXsvuZJNFI1PQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C2AA918065E for ; Thu, 11 Jul 2024 16:43:23 +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.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (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 16:43:22 +0000 (UTC) Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-6561850a7bcso10943687b3.3 for ; Thu, 11 Jul 2024 09:41:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20230601.gappssmtp.com; s=20230601; t=1720716115; x=1721320915; darn=lists.php.net; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=250lkNAcTNW2AAQ7YlezSOmCSIpAM8OyklBiYmFbUgM=; b=K09JjWk0kAjf0ftMOrNJ4qxrJikx0mUroPZYrJ4sLLs1byJmPQalL9oXO4BNNu5UpZ pP69TkxDjjyaodefDG5b/LC9lhIZgqAICfblQgePdZ2iUqWnTv4Vx+h8vAPsDQhIgYuA fArHNz38Cazf6YL+DFfokyVVu27vPxRCogJlcdUmnI2n5X1fqj2JCR6YD3QTIt11IjOq HzV9p7xWYmn79xlQWk8UPoCmnAkeoPQWlaYwUCmINOihhezfmgqUFUXySotdYMT8957r UIY4tNKLivkkm9Y4cd4R/hmES/cBnZOfvCltPzp7ei8yZ8eVTg1+zP2WiGM1OaW/I+XC YbTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720716115; x=1721320915; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=250lkNAcTNW2AAQ7YlezSOmCSIpAM8OyklBiYmFbUgM=; b=JsQ+ifoCMbWaZncKmLJoggoZi4NqS/mukWFoaDmD/fAnZLzybYwmwqIzvvPb+i+2GK nY9C2DaVxK1Q27cZS1a+t93YXWhF392nl3mx64Uuu96mronAQ8frtJ7ptytEDbXZlt+W ZHNlvW/9Gz5wEWHZBuqGJoDAkl9pAN8TDGnr+Qp8aRyERnVWTbvJ99DILlNp3h/F1TZ/ lGQE4XvB411DdlnsgtpPFbWeOBADEaI4wzpRL0gH9VLBEXKhSV4zy2tSFY3kbq/LHNFO CH0o9il0AvmpSo3qyAf6Zr4JJ8PQxyK4q23MT0+FcEHdMD9DcZ3tp9GQ14JLmB7XNk5q 2I/A== X-Gm-Message-State: AOJu0Yz2dXBTk6kGamI0t0wVrpXbsk90cIwBTnLlveFTj9aZ9G8DjDnz CjbWW0Rlk1OGi/AXOjX9Z82MYM2qF+K6mByhEziW07uvvj+iuqyRiGQZG602ttYezPiPq+E8HHa 3PeA= X-Google-Smtp-Source: AGHT+IGgKwMdDypM3e6ruIZjBZqkbgAqeBwEbPSVXgWzGmNg38tWE0jnNkU5LfnHkhI3S9Y0BsAtsQ== X-Received: by 2002:a05:690c:ec5:b0:630:de2f:79b8 with SMTP id 00721157ae682-658eed5ebd3mr106887257b3.13.1720716115215; Thu, 11 Jul 2024 09:41:55 -0700 (PDT) Received: from smtpclient.apple (c-98-252-216-111.hsd1.ga.comcast.net. [98.252.216.111]) by smtp.gmail.com with ESMTPSA id 00721157ae682-658e64ece0dsm11627307b3.94.2024.07.11.09.41.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jul 2024 09:41:54 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Subject: Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV) In-Reply-To: <5e9ddf7b-e2ef-44df-85a6-623c220f2da4@app.fastmail.com> Date: Thu, 11 Jul 2024 12:41:53 -0400 Cc: php internals Content-Transfer-Encoding: quoted-printable Message-ID: <0D16D5E1-7E47-4A45-8631-9424BE908EBC@newclarity.net> 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> <5e9ddf7b-e2ef-44df-85a6-623c220f2da4@app.fastmail.com> To: "Rowan Tommins [IMSoP]" X-Mailer: Apple Mail (2.3696.120.41.1.8) From: mike@newclarity.net (Mike Schinkel) > On Jul 11, 2024, at 10:32 AM, Rowan Tommins [IMSoP] = wrote: >=20 > 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=20 >> would be able to do so easily.=20 >=20 > This is a terrible analogy, IMHO. Here's a more pertinent one: Sure, we can go back and forth and discredit each others analogies, but = that's not going to change your mind nor likely mine. =20 The crux of our disagreement is I see value on infrastructure services = and you evidently do not. > If you want to solve autoloading in WordPress, this is the wrong = forum.=20 >=20 > 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. That is what you are missing on this point.=20 If PHP supported a cascading class map autoloader then a developer could = build their sites and their plugins for that version of PHP without = having to depend on WordPress changing to support it. And if they are = distributing plugins they could build fallback mechanisms for earlier = versions of PHP plus also recommend to their users that they upgrade to = the newer versions of PHP.=20 It is about empowering individuals developers, not about empowering = WordPress.=20 But, like I said, since anyone could no it, evidently no one will. > 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. No, integrating into the plugin system would actually be quite easy per = the class map design we've been discussing. I know the internals of that = system well, I've probably debugged through it literally hundreds of = times. And sorry, the existing metadata system in WordPress has no information = about plugin dependencies and is inadequate for that purpose. It only = has an ini-like plugin header with basic information and is not suitable = for dependencies. Also, "persuading plugin authors to actually use it" = won't change a thing because they are already using it effectively, = generally speaking. > 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 well could be. > That's also not a subject for this list. And we disagree, yet again. Anyway, I am trying to avoid this thread so I can instead invest time in = research and proof-of-concept work. Please don't pull me back in. -Mike=