wasmer-php icon indicating copy to clipboard operation
wasmer-php copied to clipboard

Release on PECL?

Open francislavoie opened this issue 6 years ago • 9 comments

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

francislavoie avatar Mar 12 '19 16:03 francislavoie

Thanks for asking.

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

  • It's the next generation installer for PHP extensions,
  • I've been working on it,
  • Composer may support or include Pickle at some point in the future.

Thoughts?

Hywan avatar Mar 13 '19 12:03 Hywan

No objections to that!

francislavoie avatar Mar 13 '19 12:03 francislavoie

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

xtuc avatar Mar 13 '19 12:03 xtuc

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 :-).

Hywan avatar Mar 13 '19 12:03 Hywan

@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

alexbowers avatar Mar 15 '19 18:03 alexbowers

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

Hywan avatar Apr 15 '19 19:04 Hywan

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

Hywan avatar Jul 10 '19 15:07 Hywan

@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?

filips123 avatar Aug 31 '19 08:08 filips123

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.

Hywan avatar Sep 06 '19 08:09 Hywan