Hi Marc

php-ref:
========

 - has different notifiers support when object died:
   array, callback and none (the most reliable one :));
 - has SoftReference which allows preventing object from
   being destroyed;
 - has set of helper function to deal with object referencing;
 - doesn't include acquire/release functionality on a
   reference object (which I think is not necessary);
 - doesn't include weak map as it only about references
   and not data structures.

Originally I wrote it because weakref extension didn't
work with PHP 7 and I also needed some extra funcitonality
which conflicts with current weakref interface. Funny, but
right after I published it to github, weakref author added
PHP 7. Great minds think alike. So now it's two working exts.


php-v8:
=======

 - provides accurate native V8 C++ API implementation available
   from PHP;
 - provides a both-way interaction with PHP and V8 objects,
   arrays and functions;
 - multiple isolates and contexts at the same time;
 - doesn't include any js functions out of the box.

This extension is basically a set of binding to V8 API which could
be used for anything from simple js code eval'ing to writing node.js
in PHP or own headless browser. I worked a lot with v8js and at some point needed functionality that wasn't available in it and which doesn't fit well v8js ideology.


As to both extensions, there is short description on github for both of them with examples and tests, so if you curious you may look there in advance. They should be easy to follow extension idea.




On 11/4/16 12:18 AM, Marc Bennewitz wrote:
> There are already pecl extensions available:
> - http://pecl.php.net/package/Weakref
> - http://pecl.php.net/package/v8js
>
> What are the differences?
>
> Marc
>
> Am 03.11.2016 um 22:49 schrieb Bogdan Padalko:
>> Hi,
>>
>> My name is Bogdan Padalko and I also known as pinepain on github (
>> https://github.com/pinepain/) and SO (
>> http://stackoverflow.com/users/1461984/pinepain).
>>
>> I'm active in php-amqp extension
>> (https://github.com/pdezwart/php-amqp) and
>> last time I wrote two php extensions: php-ref (
>> https://github.com/pinepain/php-ref) and php-v8 (
>> https://github.com/pinepain/php-v8) which I want to publish to pecl. Both
>> my extensions are licensed under MIT. At this time I have ubuntu PPA for
>> them and also provide homebrew formulas for them and publishing to pecl
>> will let more people to install them and use in a straightforward way. It
>> will also help to package ext in a common way.
>>


--
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to