> 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