Re: [PHP-DEV] Use "ropes" for string concatenation

2015-03-23 Thread Xinchen Hui
Hey: On Tue, Mar 24, 2015 at 2:04 PM, Pierre Joye wrote: > On Tue, Mar 24, 2015 at 1:01 PM, Xinchen Hui wrote: >> Hey: >> >> On Tue, Mar 24, 2015 at 1:54 PM, Pierre Joye wrote: >>> On Tue, Mar 24, 2015 at 12:35 PM, Xinchen Hui wrote: Hey: On Tue, Mar 24, 2015 at 1:31 PM, Pierre

Re: [PHP-DEV] Use "ropes" for string concatenation

2015-03-23 Thread Pierre Joye
On Tue, Mar 24, 2015 at 1:01 PM, Xinchen Hui wrote: > Hey: > > On Tue, Mar 24, 2015 at 1:54 PM, Pierre Joye wrote: >> On Tue, Mar 24, 2015 at 12:35 PM, Xinchen Hui wrote: >>> Hey: >>> >>> On Tue, Mar 24, 2015 at 1:31 PM, Pierre Joye wrote: hi! On Tue, Mar 24, 2015 at 5:41 AM, Dmi

Re: [PHP-DEV] Use "ropes" for string concatenation

2015-03-23 Thread Xinchen Hui
Hey: On Tue, Mar 24, 2015 at 1:54 PM, Pierre Joye wrote: > On Tue, Mar 24, 2015 at 12:35 PM, Xinchen Hui wrote: >> Hey: >> >> On Tue, Mar 24, 2015 at 1:31 PM, Pierre Joye wrote: >>> hi! >>> >>> On Tue, Mar 24, 2015 at 5:41 AM, Dmitry Stogov wrote: Hi, Recently, Xinchen and me wo

Re: [PHP-DEV] Use "ropes" for string concatenation

2015-03-23 Thread Pierre Joye
On Tue, Mar 24, 2015 at 12:35 PM, Xinchen Hui wrote: > Hey: > > On Tue, Mar 24, 2015 at 1:31 PM, Pierre Joye wrote: >> hi! >> >> On Tue, Mar 24, 2015 at 5:41 AM, Dmitry Stogov wrote: >>> Hi, >>> >>> Recently, Xinchen and me worked on optimization that eliminates useless >>> reallocations and cop

Re: [PHP-DEV] Use "ropes" for string concatenation

2015-03-23 Thread Xinchen Hui
Hey: On Tue, Mar 24, 2015 at 1:31 PM, Pierre Joye wrote: > hi! > > On Tue, Mar 24, 2015 at 5:41 AM, Dmitry Stogov wrote: >> Hi, >> >> Recently, Xinchen and me worked on optimization that eliminates useless >> reallocations and copying during string concatenation (ZEND_ADD_STRING and >> family +

Re: [PHP-DEV] Use "ropes" for string concatenation

2015-03-23 Thread Pierre Joye
hi! On Tue, Mar 24, 2015 at 5:41 AM, Dmitry Stogov wrote: > Hi, > > Recently, Xinchen and me worked on optimization that eliminates useless > reallocations and copying during string concatenation (ZEND_ADD_STRING and > family + ZEND_CONCAT). > > The idea comes from ropes, but adopted especially f

Re: [PHP-DEV] Proposal to delay 7.0 timeline

2015-03-23 Thread Andi Gutmans
> On Mar 21, 2015, at 9:05 AM, Rasmus Lerdorf wrote: > >> On 03/21/2015 08:52 AM, François Laupretre wrote: >> Now, after more calls from many of you to delay it, and as Zeev himself >> seemed to consider it as more acceptable, I am proposing again to delay 7.0 >> feature freeze to May, 15 (2 mon

[PHP-DEV] Use "ropes" for string concatenation

2015-03-23 Thread Dmitry Stogov
Hi, Recently, Xinchen and me worked on optimization that eliminates useless reallocations and copying during string concatenation (ZEND_ADD_STRING and family + ZEND_CONCAT). The idea comes from ropes, but adopted especially for our needs. Rope is popular data structure in languages with immutable

Re: [PHP-DEV] Ten years estimated Plan to replace PHP’s inconsistent API

2015-03-23 Thread Nathan wesley
> > > i didn't mention any break or things. also many languages are different > > Yes you did. You just proposed removing large part of PHP API. That > would break things, there can be no confusion about it. I just agree with you. we shouldn't :) the old API will stay no one will ever remove it.

Re: [PHP-DEV] Ten years estimated Plan to replace PHP’s inconsistent API

2015-03-23 Thread Stanislav Malyshev
Hi! > famous articles written about it like "PHP fractal of bad design" and That article. Which is from what I remember last time reading it was about 75% like "why I need to look in the manual instead of language being magically exactly the way I imagine it should be without any basis?". And ano

Re: [PHP-DEV] Ten years estimated Plan to replace PHP’s inconsistent API

2015-03-23 Thread Nathan wesley
> > Hi! > > > This makes an opportunity to replace the old API with object oriented one > > preventing any kind of BC break. > > > > But instead of using this as an extension because of some limitations > like > > “string”->startsWith(‘s’); the API should be bundled with the engine (not > > written

Re: [PHP-DEV] Serializing exceptions

2015-03-23 Thread Rowan Collins
Stanislav Malyshev wrote on 23/03/2015 05:21: Hi! Looking into some issue, I've discovered that, to my surprise, Exceptions are serializable. Except that it doesn't always work of course (e.g. see http://stackoverflow.com/q/9747813/214196) because exceptions contain backtraces, and those can con

RE: [PHP-DEV] Serializing exceptions

2015-03-23 Thread Christian Stoller
From: Stanislav Malyshev [mailto:smalys...@gmail.com], Sent: Monday, March 23, 2015 7:45 AM > Hi! > >> Maybe you can implement the __sleep method and just return the >> documented attributes (message, code, file, line). > >That would be an option, but before going there, my question is - does >an