rossriley / php-scalar-objects

Experimental API for PHP Scalar Objects
70 stars 6 forks source link

hello :) #23

Open gossi opened 10 years ago

gossi commented 10 years ago

Hi,

I'm also working on a project to shape the future API of php6, which can be found at gossi/oophp. Also part of this are objects for primitives.

Yesterday I published the project on php.internals and your project got mentioned and I'm asked about joining forces. I like your work and copied some of your methods to my php\lang\String class.

Would you also mind, checking out my project and how we could work on probably both projects?

Thanks gossi

rossriley commented 10 years ago

Hey.

I've had to put it on hold for a few weeks as I'm on a busy schedule at the moment, but here's where I got to. Obviously the project mentioned had quite a few contributions from people in an attempt to get the API correct.

The key to getting this moving forward is to get an RFC up for discussion that gets agreement on an API in principle since this is likely to be a very long process with lots of people's opinions. Once the API is agreed then there's still a fair amount of work to get the functionality in core.

I made a start on implementing the functionality as a native extension here: https://github.com/rossriley/scalar_objects/ this is primarily a proof of concept but the good news is that it performs quite well. If you look here: https://github.com/rossriley/scalar_objects/blob/master/tests/benchmarks.php you'll see that I got implemented one string method and one array method and they are at least as quick if not quicker than the standard functions.

If you can get some of the internals people to agree to the syntax then that would be a great move forward, and I'm happy to work together to keep the projects synchronised in terms of API etc.

Let me know what you think.

ross

On Mon, Jun 2, 2014 at 12:58 PM, Thomas Gossmann notifications@github.com wrote:

Hi,

I'm also working on a project to shape the future API of php6, which can be found at gossi/oophp https://github.com/gossi/oophp. Also part of this are objects for primitives.

Yesterday I published the project on php.internals and your project got mentioned and I'm asked about joining forces. I like your work and copied some of your methods to my php\lang\String class.

Would you also mind, checking out my project and how we could work on probably both projects?

Thanks gossi

— Reply to this email directly or view it on GitHub https://github.com/rossriley/php-scalar-objects/issues/23.