wasmerio / wasmer-php

🐘🕸️ WebAssembly runtime for PHP
https://wasmerio.github.io/wasmer-php/wasm/
MIT License
999 stars 42 forks source link

Release on PECL? #7

Open francislavoie opened 5 years ago

francislavoie commented 5 years ago

Once this is no longer experimental (starting to look good with #4 being done!!), should this be put on PECL for easy installation?

Hywan commented 5 years ago

Thanks for asking.

My plan is to be compatible with https://github.com/FriendsOfPHP/pickle/ for various reasons:

Thoughts?

francislavoie commented 5 years ago

No objections to that!

xtuc commented 5 years ago

How would the building works? Is there a way to provide pre-build binaries? I assume that building Rust won't work everywhere.

Hywan commented 5 years ago

We can distribute pre-build static libraries for the Wasmer runtime, but it won't be easily possible to the extension itself. I think Pickle will solve some problem.

Right now, it's just a matter of:

$ just rust
$ just php

and done. I will focus on that part later :-).

alexbowers commented 5 years ago

@Hywan Is that a suitable way of distributing it for now?

The last release of Pickle was Feb 2015 https://github.com/FriendsOfPHP/pickle/releases and the most recent commit was Sep 06, 2017

and it appears that there are issues with PHP 7.0

Hywan commented 5 years ago

Pickle is working. We just wait on some stuff on the Composer side. But it's working.

Hywan commented 5 years ago

With #71, we are close to a possible release on PECL! Rust is no longer required to compile the extension.

filips123 commented 5 years ago

@Hywan is there any update?

Also, Pickle is not updated since 2017 and releases since 2015. What does this mean? Is is discontinued (I hope not)? Or it it finished so it doesn't need new changes (then changes should be released as new version)? And when will Composer support it?

Hywan commented 5 years ago

Publishing php-ext-wasm on PECL, or supporting Pickle is two different things (even if I'm one of the maintainers of both projects… it can confusing).

Publishing php-ext-wasm on PECL is already here, see http://pecl.php.net/wasm and #76. We've an issue with PECL though, since we distribute shared libraries within the package. To avoid shared libraires, the user must have the Rust toolchain installed, and PECL doesn't support Rust as a compilation toolchain. We are trying to find a solution here.

About Pickle, Composer etc. I'm not sure this issue is the correct place to discuss about that. See the Pickle or Composer repositories instead.