RE: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-24 Thread Anatol Belski
Hi, > -Original Message- > From: Nikita Popov [mailto:nikita@gmail.com] > Sent: Tuesday, June 6, 2017 2:43 PM > To: François Laupretre > Cc: PHP internals > Subject: Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution > > On Mon, Jun 5, 2

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread Rowan Collins
On 6 June 2017 19:13:34 BST, "li...@rhsoft.net" wrote: >the point is that people should stop talking about composer They did, 7 hours ago, after François clarified why it's not relevant for this particular case: https://externals.io/thread/926#email-15428 Can we move on now please? Thanks, --

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread li...@rhsoft.net
Am 06.06.2017 um 18:49 schrieb François Laupretre: Le 06/06/2017 à 17:19, li...@rhsoft.net a écrit : where will this php scripts stored - how do they deal with openbasedir - do you need to place their location in openbasedir while you normally avoid to add anything oustide your application th

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread François Laupretre
Hi Nikita, Le 06/06/2017 à 14:43, Nikita Popov a écrit : Anyway, to get back to the topic of PCS. First, I would recommend to target PHP 7.3 for this change. Feature freeze for 7.2 is in a bit over a month and I think we'll want to make some non-trivial changes to how this works if we integrat

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread Fleshgrinder
I agree with Nikita and Sara here, interfacing between PHP and C however would be very important. My current UUID proposal for instance. Doing the bit shifting in PHP is a pain. Doing it in C is a breeze. However, doing the signatures and accessors in PHP would be MUCH simpler. On 6/6/2017 2:43 PM

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread François Laupretre
Hi, Le 06/06/2017 à 17:19, li...@rhsoft.net a écrit : where will this php scripts stored - how do they deal with openbasedir - do you need to place their location in openbasedir while you normally avoid to add anything oustide your application there - and so on Your question proves you didn't

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread Sara Golemon
On Tue, Jun 6, 2017 at 8:43 AM, Nikita Popov wrote: > First of all: I think the ability to implement parts of PHP extensions in > PHP is extremely important and will be a game changer in our ability to > maintain and improve our standard library. > Ditto this. The argument for having a MUCH large

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread Rowan Collins
On 6 June 2017 16:19:39 BST, "li...@rhsoft.net" wrote: >that's all nice but in this thread even "composer" was brought once >again to the game - frankly making composer mandatory ... Don't panic. Composer was mentioned in the context of third parties (e.g. mongodb) which want to distribute both

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread Dennis Birkholz
Hi together, Am 06.06.2017 um 14:43 schrieb Nikita Popov: > First of all: I think the ability to implement parts of PHP extensions in > PHP is extremely important and will be a game changer in our ability to > maintain and improve our standard library. I agree with you here 100%. > 1. As far as

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread li...@rhsoft.net
Am 06.06.2017 um 15:33 schrieb Rowan Collins: On 6 June 2017 12:27:16 BST, "li...@rhsoft.net" wrote: looking at the code quality (style, readability, robustness, error-handling) of 99% of php userland code out there - which is horrible to say it nice - even if all that is true i still doubt t

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread Rowan Collins
On 6 June 2017 12:27:16 BST, "li...@rhsoft.net" wrote: >looking at the code quality (style, readability, robustness, >error-handling) of 99% of php userland code out there - which is >horrible to say it nice - even if all that is true i still doubt that >it improves quality in the long term, s

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread Nikita Popov
On Mon, Jun 5, 2017 at 7:46 PM, François Laupretre wrote: > Hi, > > PCS provides a fast and easy mechanism to mix C and PHP code in PHP > extensions (more about PCS at http://pcs.tekwire.net). Thanks to the PHP > 7 performance improvement and the inclusion of opcache in the core, a lot > of exist

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread li...@rhsoft.net
Am 06.06.2017 um 13:06 schrieb François Laupretre: Le 06/06/2017 à 12:33, li...@rhsoft.net a écrit : Am 06.06.2017 um 12:27 schrieb François Laupretre: What I am proposing here is very different, as the main objective is to dramatically reduce the line count of the core source, without sign

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread François Laupretre
Le 06/06/2017 à 12:33, li...@rhsoft.net a écrit : Am 06.06.2017 um 12:27 schrieb François Laupretre: What I am proposing here is very different, as the main objective is to dramatically reduce the line count of the core source, without significant performance loss. If we had an army of C de

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread li...@rhsoft.net
Am 06.06.2017 um 12:27 schrieb François Laupretre: What I am proposing here is very different, as the main objective is to dramatically reduce the line count of the core source, without significant performance loss. If we had an army of C developers maintaining every core extension, maybe we

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread François Laupretre
Hi, Le 06/06/2017 à 11:13, Derick Rethans a écrit : On Tue, 6 Jun 2017, Remi Collet wrote: Sorry, but I don't like the idea of having PHP code bundled in C extension. Have low-level part written in C, and user-land part in PHP is indeed a good way (e.g. mondodb, phpiredis + phredis...), but h

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread François Laupretre
Hi, Le 05/06/2017 à 21:26, Fleshgrinder a écrit : I skimmed through the documentation of yours. There is however one question left. Is it possible to have C code that is accessible only to the PHP code of an extensions, instead of all user-level code? As extension PHP code is executed in the s

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-06 Thread Derick Rethans
On Tue, 6 Jun 2017, Remi Collet wrote: > Le 05/06/2017 à 19:46, François Laupretre a écrit : > > > > PCS provides a fast and easy mechanism to mix C and PHP code in PHP > > extensions (more about PCS at http://pcs.tekwire.net). Thanks to the > > PHP 7 performance improvement and the inclusion o

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-05 Thread Remi Collet
Le 05/06/2017 à 19:46, François Laupretre a écrit : > Hi, > > PCS provides a fast and easy mechanism to mix C and PHP code in PHP > extensions (more about PCS at http://pcs.tekwire.net). Thanks to the PHP > 7 performance improvement and the inclusion of opcache in the core, a > lot of existing non

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-05 Thread Fleshgrinder
On 6/5/2017 7:46 PM, François Laupretre wrote: > So, please give me your thoughts. Suggestions of potential candidates to > be rewritten from C to PHP are welcome too. > > Regards > > François > Hi François! I really, really like this. It would allow us to write most of the stuff in PHP, espec

Re: [PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-05 Thread Kalle Sommer Nielsen
Hi François 2017-06-05 19:46 GMT+02:00 François Laupretre : > Hi, > > PCS provides a fast and easy mechanism to mix C and PHP code in PHP > extensions (more about PCS at http://pcs.tekwire.net). Thanks to the PHP 7 > performance improvement and the inclusion of opcache in the core, a lot of > exis

[PHP-DEV] Proposing inclusion of PCS in the 7.2 core distribution

2017-06-05 Thread François Laupretre
Hi, PCS provides a fast and easy mechanism to mix C and PHP code in PHP extensions (more about PCS at http://pcs.tekwire.net). Thanks to the PHP 7 performance improvement and the inclusion of opcache in the core, a lot of existing non-performance-critical extension code may now be converted t