Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125638 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 45C091A00BD for ; Fri, 20 Sep 2024 08:18:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726820428; bh=zVG1NIPGBqETAgBQZwQcuGvI/jn7xBpiXuLZ/skNSUM=; h=Date:From:To:Subject:In-Reply-To:References:From; b=SGve/4W9z8y0jhLrJyG8qW/LsP41JZw9KC87heq+FYMS8m2NY4dwW2zFciiAmLIcJ I7GoaxziKVrpMzTNC82Qi2D6TwGu3Njdur4jDdlBj4ZUrp2rzJek7wnqVQZ2Qlheqx SBFNaVkM7unYJbDOXWHfxy/+HP81NuhdtcygrBPTYIB9sgKbzpAilwsICrHqhUydcV lG75vuNDNuJskt8JW1Ghjyv9maVOIl+yvUNwJUNm+yTCPRPCEloEksbGHT0+lH9H75 Pl7CW6bgW6gks8sHH7JnNWWh6t141NIbdrPExFAMlaCGe7txz+7phhe51+ftZu7WUR Vg/bUxor1QwMw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A24B118005C for ; Fri, 20 Sep 2024 08:20:27 +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 fout6-smtp.messagingengine.com (fout6-smtp.messagingengine.com [103.168.172.149]) (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 ; Fri, 20 Sep 2024 08:20:26 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 0672A13800A6 for ; Fri, 20 Sep 2024 04:18:19 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Fri, 20 Sep 2024 04:18:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding: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=1726820299; x=1726906699; bh=zVG1NIPGBqETAgBQZwQcuGvI/jn7xBpiXuLZ/skNSUM=; b= F+EmXkFMwTYq47u6N1yXew0vNc/wBVbq4wveB8S11qquIOEmDiPIBlY4rdPhR2jb UVUhcnjy/QbE6FEDs+toHjsqk65AcY2zUd7wCiYoUq1jtQG4EWX6tfBDwlKEqj8P cQhNgMXWzKpCcQAhyDIbA0xOJZPaVgRMvCPrFL3G5SyDg/aUuhgtv8O9USnLr04F T9rGg0n51T66YvEnuFyMZCiyjcSqiSXP7HAmsVfS/bMnZ9z88PbON4lHVs71lQ1B y94Nc7NMJRsDRG4Pz93+1T3yqlQVxh64Z/ugwPv31ZGoiVIuwVDk/oXdHZAV1nBm lQxEE8Sfsd1pVxQFOD2i7w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=1726820299; x= 1726906699; bh=zVG1NIPGBqETAgBQZwQcuGvI/jn7xBpiXuLZ/skNSUM=; b=W 2WPN07HOan2Srv68XuoxP/iyFCAmRor3LdfQfTHDtJr2Sdl/uxh1wlTsjMxCpDbL I2hZf6asOaBZFrl17+/MTEA0kamcK556jOHzA1xsMsyyGkDjzGNs/xQgxufX3GRJ owEKvNZNnLXUcT2xkV24YjaJPeG+5BoBZpEmcHewEEa0iG2AX86QUVAlp+EyZDKy dhHkDlLxWF4JEbKyYXcY+R+K1XiBMQEz7GEmG8nUcOmuNcUUg4OZlSQHd+1sGzwm C86i7aWV4Xx4WmHUUPOHbCfHFQGfqNwnhxPrXEZsT9ISHbWF31EGU2tGlD9Zta4K 49WGKlndoSC0L/eicswmg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudelfedgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuf gfjghfkfggtgfgsehtqhhmtddtreejnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhn shculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenuc ggtffrrghtthgvrhhnpeehleffteeigfevudetfedugedtudevledugeeugeelheeihfeh gfdtkeevvefgleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthhtohep uddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhish htshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 20 Sep 2024 04:18:18 -0400 (EDT) Date: Fri, 20 Sep 2024 09:18:14 +0100 To: internals@lists.php.net Subject: Re: [PHP-DEV] Zephir, and other tangents User-Agent: K-9 Mail for Android In-Reply-To: References: <8D420123-4ECF-48FD-A9C3-F80C60457A37@newclarity.net> Message-ID: Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 20 September 2024 06:20:46 BST, Mike Schinkel w= rote: >> Embedding it into other languages is a different usage again=2E It's ce= rtainly something that is being explored, e=2Eg=2E by Extism, and that seem= s like a good project for anyone interested here to participate in, e=2Eg= =2E to help design the "glue" between PHP and WASM / Extism=2E > >Moot point as it cannot be run on a managed hosted server=2E Why not? Only because the people managing that server haven't been persuad= ed to include it as an option=2E And that is mostly because it's currently = experimental, and there isn't wide demand for it=2E >> Just to reiterate, if by "built-in to PHP core", you mean "every copy o= f PHP includes a functional WASM runtime", that's not going to happen=2E It= would mean bundling (or requiring every user to install) a huge third-part= y dependency, with all of its dependencies and platform requirements, even = if they weren't interested in using it=2E > >So why do you claim that bundling a third-party dependency is a "never go= ing to happen" scenario? =20 > >By that logic PHP would have none of these functionalities: > >=E2=80=A2 cURL >=E2=80=A2 GD >=E2=80=A2 PDO >=E2=80=A2 OpenSSL >=E2=80=A2 MBString >=E2=80=A2 Zlib >=E2=80=A2 Zip >=E2=80=A2 XSL >=E2=80=A2 EXIF >=E2=80=A2 BCMath None of those are "built into PHP core" in the sense of "every copy of PHP= includes them"=2E Nor do any of them bundle their third-party dependencies= =2EThey are all optional extensions, which the user has to provide the depe= ndencies for if they want to install and enable them=2E They are what is sometimes referred to as "bundled extensions", which just= means they have source code in the php-src repository, and get new release= s at the same time as PHP=2E Being in that list doesn't mean managed hosts = have to provide them (who would force them?) and not being in that list doe= sn't mean managed hosts can't provide them (it's as easy to install "php-mo= ngodb" on Ubuntu as "php-mysqli", even though one is "bundled" and the othe= r hosted on PECL)=2E Being "bundled" may be interpreted as something of a "stamp of approval", = indicating that an extension is mainstream and stable=2E That's something t= hat has to be earned - many extensions started out in their own projects, w= ith releases listed on PECL or elsewhere, and were proposed for adoption in= to the php-src repo once they became stable=2E Which is why I say your energies for now are best spent on a project like = extism, or wasmer-php - build that stable extension, and then we can discus= s whether it would be beneficial to adopt it into the php-src repo=2E >Seems you do not actually understand WASM runtimes=2E =20 > >While WebAssembly is available "out of the box" in JavaScript-based runti= mes like Node=2Ejs, Deno, and Electron, it is not limited to them=2E Standa= lone WebAssembly runtimes like Wasmtime and WAVM allow WebAssembly to be ru= n as a general-purpose compute target, outside the scope of a JavaScript en= gine=2E=20 I absolutely understand that; I already said that it will be interesting t= o see how projects like extism develop, making use of those runtimes to run= alongside other languages=2E But as far as PHP, or Python, or Java, is con= cerned, those runtimes are an external process or library that is being int= erfaced=2E Integrating with them is no different, in principle, from integr= ating the driver for some new kind of database=2E Which is great; it means you don't need any approval from this list, or to= write up an RFC, you can get involved in building that integration right n= ow, wherever people are working on an extension to enable it=2E Regards, Rowan Tommins [IMSoP]