Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125646 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 EFDD21A00BD for ; Fri, 20 Sep 2024 19:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726861268; bh=zTKRAKeYmSvyKLmEnIOUFGjOloQKmfWzRAlcSt+HnAY=; h=Date:Subject:To:References:From:In-Reply-To:From; b=ldYkY06cWaOnJ1NXbeEv/9rYoYkW8C5G78sA2ngYZfUYxtn1eqvHPMvsECanlZAr0 AzpGSiFjA+VzT+Qg54cS/cifcybUVlQvZbkTF06EbqDPnkHrgDVonkJ04+9C2O3eRf FYp1xjMG/nakydAotORh15fXWwZltesfVXcFgIekyVZ/UHf7ojHQpZIykKbMOaDziT EBQpsFFw3srAA9u7t4mUGk3Wj/anH1RNbNoZsBr7OjrI2Lh3ZMh3oag8V4wpZD598F ImJJZDdgXxM5CEz7troi81GGQyN0/eoXxj/0uTpr7Yj1+1Ze+qvdDsUGoMaTJVc3en JA6f9u3R+cdeA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E2A22180032 for ; Fri, 20 Sep 2024 19:41:07 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 19:41:07 +0000 (UTC) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-42cbbb1727eso20254855e9.2 for ; Fri, 20 Sep 2024 12:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726861139; x=1727465939; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=Gphg2P0cQmLkgq1DoB64rX/dk1wJ2vYvY8avvCmkOrI=; b=Xkk31LhKxtPSJPsmHZbJyMh1IbjfXq1Q9YRhOntR3g5J12+CMc3NvUBqgVEtkOcCR1 01MiGfW4i4kXIklpacU4WHaZfl35yNJLOEO4C09vi66bb0sPj4nAhq/Xe0gB4Lw7DZyP oSmCG0afivqiZg7sN49P1yrsA0d1/iij2eRSYvWM+577txSKd4q3w8Qa1o7iT/Qdh9vy i3o9Iq3NsPtEOM0AmBbIG1gg6JwARs9sJLG/c1XbAfGQXmAI9XKy9LnH0VftGZjAp6l6 Z064jzki0gz0/rtfJUwINSlLdLpvjIJTPAVK1dP2bt7atlrrNYWuUICGrxxaRlT+o62g Yu6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726861139; x=1727465939; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Gphg2P0cQmLkgq1DoB64rX/dk1wJ2vYvY8avvCmkOrI=; b=Rf0tJoJ8AM6eGHmXIuux3MCN76BTBvAQnlskMAaE7OPYf9BEuir0D1EDrIMJ2Mm736 kdD4amfa++FD57ggVAfbYvOpIckFXEkO09sZaR0bgRu0xVDAoQgQ3LLH61SLrXBuNTRq gqbyDBH3GU82AtYqFpK9ky0ehZqRIJ+DRCorQ2pV/8g/crxO8l0Ua5OxVH0hGmZWl2Sb Y7CV+mhq7xOYRr9SseyO2kY48869NfBsXoH8BYQfhOHJiYRQEG0OvypPANdAD1fpZ+Ts xa91HH04FsH9qJCwBdrHB8e8zgH7aIa88rvQfF8yQa87orXaeewsXm7uC4D91KAGIwb2 PoLA== X-Gm-Message-State: AOJu0YzotC9M3IOSl6A2AGMKEZWGXXtVKyEs6g1EaPBDP0u2XB78g4AK ZAcJSYyyzo+9Nt+k1MFNF3/uGsQwoZ11BDiquzPGMU/NpkaNEgxLaJEPwQ== X-Google-Smtp-Source: AGHT+IHjux3dg8gxsTVTeFu+YgMwYxUEGYeaGEnR4scBg4oo38FkQH3CoMqZ1vzKWh1Gm2eBtR/irA== X-Received: by 2002:a05:600c:4f0c:b0:42c:b843:792b with SMTP id 5b1f17b1804b1-42e7abe140fmr30437475e9.2.1726861139103; Fri, 20 Sep 2024 12:38:59 -0700 (PDT) Received: from ?IPV6:2a02:1811:cd2f:3500:e093:fcad:4f6:e542? (ptr-du5vm7f5ekzptmf0fgi.18120a2.ip6.access.telenet.be. [2a02:1811:cd2f:3500:e093:fcad:4f6:e542]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e7affc718sm30858585e9.44.2024.09.20.12.38.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Sep 2024 12:38:58 -0700 (PDT) Message-ID: <7a715952-0811-4f0b-bfef-a23f6cc9ce08@gmail.com> Date: Fri, 20 Sep 2024 21:39:12 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Zephir, and other tangents To: internals@lists.php.net References: <8D420123-4ECF-48FD-A9C3-F80C60457A37@newclarity.net> <7EA884D2-0F37-4BF1-AC97-DB6953C944E6@automattic.com> <1140637f-cbf2-4775-937e-0433515bd01d@app.fastmail.com> Content-Language: en-US In-Reply-To: <1140637f-cbf2-4775-937e-0433515bd01d@app.fastmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit From: dossche.niels@gmail.com (Niels Dossche) > FWIW, I feel that an embedded Wasm bridge, with a good API, would be an excellent addition and way more useful than the crappy experience of FFI. :confused_face: > Logistical question, for those with more stdlib expertise: Since we have other extensions in php-src that only work if you install some other library as well (eg, curl), which distros pretty much take care of for us, would a small in-php-src extension that is just a thin wrapper for Wasmtime or similar be viable? Not embedding Wasmtime into the php-src code, just the extension, and it's up to the user/distro to install both so that they work. > Perhaps I'm missing something in this discussion, as this discussion has all sorts of tangents and is quite lengthy. Also easy to forget what's been said and not. Anyway, there is already a wasm extension for PHP: https://github.com/veewee/ext-wasm Kind regards Niels