Re: [PHP-DEV] Consistent function names

2015-03-04 Thread guilhermebla...@gmail.com
@Rasmus: I don't see what's the problem of aliasing functions for the next 1-2 majors, deprecate the inconsistent one in the following and remove later. On Wed, Mar 4, 2015 at 10:33 AM, Trevor Suarez ric...@gmail.com wrote: ... well that's a constructive way of going about it. I don't think

AW: [PHP-DEV] [RFC] Anonymous Classes

2015-03-04 Thread Robert Stoll
-Ursprüngliche Nachricht- Von: Philip Sturgeon [mailto:pjsturg...@gmail.com] Gesendet: Mittwoch, 4. März 2015 16:49 An: Robert Stoll Cc: PHP Internals Betreff: Re: [PHP-DEV] [RFC] Anonymous Classes On Tue, Mar 3, 2015 at 12:03 PM, Robert Stoll p...@tutteli.ch wrote: Hi Philip

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Rasmus Lerdorf
On 03/03/2015 07:34 PM, Yasuo Ohgaki wrote: Hi Michael, On Wed, Mar 4, 2015 at 12:15 PM, Michael Schuett michaeljs1...@gmail.com wrote: Your evaluation is pretty anecdotal. I agree with some points but you need some solid evidence if you are going to rate these languages. Also do you

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-03-04 Thread Philip Sturgeon
On Tue, Mar 3, 2015 at 12:03 PM, Robert Stoll p...@tutteli.ch wrote: Hi Philip -Ursprüngliche Nachricht- Von: Philip Sturgeon [mailto:pjsturg...@gmail.com] Gesendet: Dienstag, 24. Februar 2015 14:52 An: PHP Internals Betreff: [PHP-DEV] [RFC] Anonymous Classes Good day!

Re: [PHP-DEV][RFC][VOTING] Context Sensitive Lexer

2015-03-04 Thread Sebastian Bergmann
Am 04.03.2015 um 09:52 schrieb Nikita Popov: So, tl;dr: I think the patch is too risky. Even if we can make sure that we've covered all the current edge-cases and don't regress anything, I'm afraid that this will cause complications with future changes. This ends up replicating too many

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Rowan Collins
On Wed, Mar 4, 2015 at 10:24 AM Rasmus Lerdorf ras...@lerdorf.com wrote: Yasuo, please stop. This isn't going to happen. Changing strlen() to str_len() is just ridiculous. -Rasmus Trevor Suarez wrote on 04/03/2015 15:33: ... well that's a constructive way of going about it. I don't think

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Lester Caine
On 04/03/15 17:03, Rowan Collins wrote: so if you're looking for something constructive, help move those ideas forward, rather than flogging the dead horse. The extensive changes documented in this RFC are well over the top, but a much better approach would be to identify blocks which do allow

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Rasmus Lerdorf
On 03/04/2015 08:26 AM, guilhermebla...@gmail.com wrote: @Rasmus: I don't see what's the problem of aliasing functions for the next 1-2 majors, deprecate the inconsistent one in the following and remove later. As far as I am concerned str_len() would be the inconsistent one. Like I explained

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread christopher jones
On 3/4/15 9:03 AM, Rowan Collins wrote: On Wed, Mar 4, 2015 at 10:24 AM Rasmus Lerdorf ras...@lerdorf.com wrote: Yasuo, please stop. This isn't going to happen. Changing strlen() to str_len() is just ridiculous. -Rasmus Trevor Suarez wrote on 04/03/2015 15:33: ... well that's a

Re: [PHP-DEV][RFC][VOTING] Context Sensitive Lexer

2015-03-04 Thread Marcio Almada
Hi 2015-03-04 5:52 GMT-03:00 Nikita Popov nikita@gmail.com: After reviewing the implementation, I've decided to vote no on this RFC. I had originally assumed that if this proposal is limited to method names and class constants only the implementation should be pretty simple and robust.

Re: [PHP-DEV][RFC][DISCUSSION] Strict Argument Count

2015-03-04 Thread Marcio Almada
Hi, 2015-03-03 16:48 GMT-03:00 Yasuo Ohgaki yohg...@ohgaki.net: Hi Marcio, I understand your reasons. Compatibility is important, but detecting function body contents and suppressing errors by engine is too hacky. Raising E_DEPRECATE/E_STRICT by function definition seems the way to go.

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Yasuo Ohgaki
Hi Rowan, On Wed, Mar 4, 2015 at 6:16 PM, Rowan Collins rowan.coll...@gmail.com wrote: Several of the costs I listed are for new users, and several will continue indefinitely if we don't remove the old names, and are therefore long term. Could you be more explicit in the benefits you see?

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Yasuo Ohgaki
Hi Leigh, On Thu, Mar 5, 2015 at 4:30 AM, Leigh lei...@gmail.com wrote: On 1 March 2015 at 11:29, Yasuo Ohgaki yohg...@ohgaki.net wrote: Thoughts? require 'function_aliases.php'; // End of discussion. Maintain it however you want, set it up as a composer package, whatever. Absolutely

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Trevor Suarez
... well that's a constructive way of going about it. I don't think Yasuo did anything harmful or rude in making his proposal. Regardless of how realistic the idea may be, I don't think its ever appropriate or constructive to tell someone to simply stop because something is just ridiculous. On

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Leigh
On 1 March 2015 at 11:29, Yasuo Ohgaki yohg...@ohgaki.net wrote: Thoughts? require 'function_aliases.php'; // End of discussion. Maintain it however you want, set it up as a composer package, whatever. Absolutely no reason for this to be in core, and absolutely not worth the trouble it

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Yasuo Ohgaki
Hi Michael, On Wed, Mar 4, 2015 at 12:58 PM, Michael Schuett michaeljs1...@gmail.com wrote: So i find this kind of odd since you use err every other place in bz. but this is a minor nitpick. - bz_error → bzerror - bz_error_str → bzerrstr Overall I fell this change would be nice for

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Christoph Becker
Leigh wrote: On 1 March 2015 at 11:29, Yasuo Ohgaki yohg...@ohgaki.net wrote: Thoughts? require 'function_aliases.php'; // End of discussion. It is not possible to my knowledge, however, to define function aliases in PHP (a wrapper function would have an obvious performance penalty).

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Larry Garfield
On 3/3/15 6:46 PM, Yasuo Ohgaki wrote: Whether we like it or not, people evaluate languages by matrix like PHP RubyPython OO support5 5 5 Flexible syntax 3 5 5 AOP

Re: [PHP-DEV][RFC][DISCUSSION] Strict Argument Count

2015-03-04 Thread Yasuo Ohgaki
Hi Marcio, On Thu, Mar 5, 2015 at 4:07 AM, Marcio Almada marcio.w...@gmail.com wrote: 2015-03-03 16:48 GMT-03:00 Yasuo Ohgaki yohg...@ohgaki.net: Hi Marcio, I understand your reasons. Compatibility is important, but detecting function body contents and suppressing errors by engine is

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Yasuo Ohgaki
Hi Pierre, On Thu, Mar 5, 2015 at 8:54 AM, Pierre Joye pierre@gmail.com wrote: On Wed, Mar 4, 2015 at 1:36 PM, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi Leigh, On Thu, Mar 5, 2015 at 4:30 AM, Leigh lei...@gmail.com wrote: On 1 March 2015 at 11:29, Yasuo Ohgaki yohg...@ohgaki.net

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Pierre Joye
On Wed, Mar 4, 2015 at 1:36 PM, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi Leigh, On Thu, Mar 5, 2015 at 4:30 AM, Leigh lei...@gmail.com wrote: On 1 March 2015 at 11:29, Yasuo Ohgaki yohg...@ohgaki.net wrote: Thoughts? require 'function_aliases.php'; // End of discussion. Maintain it

Re: [PHP-DEV] Question/comment about the Array to String conversion RFC

2015-03-04 Thread Dan Ackroyd
On 2 March 2015 at 14:24, Zeev Suraski z...@zend.com wrote: https://wiki.php.net/rfc/array-to-string (which I voted yes to) deviates from our guidelines of deprecating features first, and removing them later; Should we not go through this deprecation cycle, even if may feel anxious to get

Re: [PHP-DEV] Re: [VOTE] Remove deprecated functionality in PHP 7

2015-03-04 Thread Adam Harvey
On 16 January 2015 at 09:16, Nikita Popov nikita@gmail.com wrote: I'll land the minor removals sometime soon; the unbundling of ext/ereg and ext/mysql should probably be done by someone else who's more into the PECL business. They gone. Many thanks to Tjerk, for doing all the hard work on

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Yasuo Ohgaki
Hi Rowan, On Thu, Mar 5, 2015 at 10:16 AM, Rowan Collins rowan.coll...@gmail.com wrote: On 4 March 2015 21:27:53 GMT, Yasuo Ohgaki yohg...@ohgaki.net wrote: We cannot remove all issue at once. We are better to adopt incremental improvement, aren't we? I think this, more than anything else,

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Yasuo Ohgaki
Hi Rasmus, On Thu, Mar 5, 2015 at 2:14 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: Every function name defined by IEEE Std 1003.1 along with the arguments and argument order would be on that list. When we have procedural functions that are either thin wrappers around or otherwise behave

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Rasmus Lerdorf
On 03/04/2015 10:21 PM, Yasuo Ohgaki wrote: The same could be done for new names. Manual pages for localtime()/mktime()/etc would look a lot nicer. I hope there will be more favored developers with the RFC. Since I'm going to update manual to have alias search feature, developers used to

Re: [PHP-DEV] Question/comment about the Array to String conversion RFC

2015-03-04 Thread Yasuo Ohgaki
Hi all, On Tue, Mar 3, 2015 at 2:30 AM, Julien Pauli jpa...@php.net wrote: On Mon, Mar 2, 2015 at 4:10 PM, Patrick ALLAERT patrickalla...@php.net wrote: Le lun. 2 mars 2015 à 15:24, Zeev Suraski z...@zend.com a écrit : All, https://wiki.php.net/rfc/array-to-string (which I

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Rowan Collins
On 4 March 2015 21:27:53 GMT, Yasuo Ohgaki yohg...@ohgaki.net wrote: We cannot remove all issue at once. We are better to adopt incremental improvement, aren't we? I think this, more than anything else, is where I disagree (having been persuaded by arguments in previous discussions). Incremental

Re: [PHP-DEV] Design by Contract

2015-03-04 Thread Yasuo Ohgaki
Hi Dmitry, On Wed, Mar 4, 2015 at 5:35 PM, Dmitry Stogov dmi...@zend.com wrote: assert() is not for DbC. It''s useful by it's own. However, new zero-cost assert() implementation should be reused for true DbC. I fully agree. I cannot wait to have it. Regards, -- Yasuo Ohgaki

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Yasuo Ohgaki
Hi Rasmus, On Thu, Mar 5, 2015 at 1:46 AM, Rasmus Lerdorf ras...@lerdorf.com wrote: On 03/04/2015 08:26 AM, guilhermebla...@gmail.com wrote: @Rasmus: I don't see what's the problem of aliasing functions for the next 1-2 majors, deprecate the inconsistent one in the following and remove

RE: [PHP-DEV] Consistent function names

2015-03-04 Thread Christian Stoller
From: yohg...@gmail.com [mailto:yohg...@gmail.com] On Behalf Of Yasuo Ohgaki, Sent: Thursday, March 05, 2015 7:21 AM For example, ctype extension has ctype_ prefix. It replaces is to ctype_. we may have isalpha alias as IEEE compliant name. There are many IEEE confirmed names already. Only

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Rasmus Lerdorf
On 03/04/2015 08:25 PM, Yasuo Ohgaki wrote: Hi Rasmus, On Thu, Mar 5, 2015 at 1:46 AM, Rasmus Lerdorf ras...@lerdorf.com mailto:ras...@lerdorf.com wrote: On 03/04/2015 08:26 AM, guilhermebla...@gmail.com mailto:guilhermebla...@gmail.com wrote: @Rasmus: I don't

[PHP-DEV] [PR] DateTime::createFromImmutable() method

2015-03-04 Thread Trevor Suarez
Good morning internals! I would like to propose a small addition be made to the DateTime class. https://github.com/php/php-src/pull/1145 This is my first contribution to PHP's core, beyond documentation edits. I'm not sure on the formalities that need to be taken for something like this to be

Re: [PHP-DEV] Re: Zend JIT Open Sourced

2015-03-04 Thread Joe Watkins
Just-In-Time-At-Once JITAO It is a bit different to the thing we think of as JIT ... new names are good if old names don't fit ... Cheers Joe On Wed, Mar 4, 2015 at 8:03 AM, Xinchen Hui larue...@php.net wrote: On Wed, Mar 4, 2015 at 3:44 PM, Dmitry Stogov dmi...@zend.com wrote: On Tue, Mar

Re: [PHP-DEV] Re: Zend JIT Open Sourced

2015-03-04 Thread Xinchen Hui
On Wed, Mar 4, 2015 at 3:44 PM, Dmitry Stogov dmi...@zend.com wrote: On Tue, Mar 3, 2015 at 10:55 PM, Anthony Ferrara ircmax...@gmail.com wrote: Dmitry, So, let's put that to the test, shall we. I compiled and ran the JIT compiler (can we please stop calling it that, it's not). This

Re: [PHP-DEV] Re: Zend JIT Open Sourced

2015-03-04 Thread Dmitry Stogov
On Wed, Mar 4, 2015 at 11:21 AM, Joe Watkins pthre...@pthreads.org wrote: Just-In-Time-At-Once JITAO file at once, function at once, trace at once, basic block at once - just different JIT approaches. The bigger part we analyze at once the more information we may get for optimization, but the

Re: [PHP-DEV] Re: Feature request and RFC

2015-03-04 Thread Rowan Collins
On 4 March 2015 07:12:41 GMT, Thomas Gielfeldt tho...@gielfeldt.dk wrote: 2015-03-02 16:26 GMT+01:00 Rowan Collins rowan.coll...@gmail.com: Rowan Collins wrote on 02/03/2015 10:52: Thomas Gielfeldt wrote on 02/03/2015 07:43: 2015-02-24 17:17 GMT+01:00 Thomas Gielfeldt tho...@gielfeldt.dk:

Re: [PHP-DEV] Re: Feature request and RFC

2015-03-04 Thread Lester Caine
On 04/03/15 09:41, Rowan Collins wrote: Hm, yes, I hadn't thought of the use case of sorting external data. Perhaps we actually need to specify both interfaces (yes, I realise I'm just inventing more work here, sorry!) - one for the use case of a custom data structure that wants to worry

Re: [PHP-DEV][RFC][VOTING] Context Sensitive Lexer

2015-03-04 Thread Nikita Popov
On Sun, Mar 1, 2015 at 2:11 AM, Marcio Almada marcio.w...@gmail.com wrote: Hi, Since no more issues appeared on discussion, the voting for the Context Sensitive Lexer is now open. The voting will close in exactly 14 days counting from now: RFC:

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Lester Caine
On 04/03/15 03:34, Yasuo Ohgaki wrote: I made list of rename candidates https://wiki.php.net/rfc/consistent_function_names#list_of_functions_to_be_renamed If you have suggestions, I appreciate! Taking the starting point ... the coding standard for writing C code for PHP ... personally I would

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Lester Caine
On 04/03/15 10:16, Michael Wallner wrote: While http has been rejected for bundling, it is another example of not following the C coding standard … Lester, please stop posting walls of unrelated text. You’re totally off track. If we’re talking about coding standards, we’re not talking about

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Rowan Collins
On 4 March 2015 00:46:49 GMT, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi Rowan, On Wed, Mar 4, 2015 at 7:12 AM, Rowan Collins rowan.coll...@gmail.com wrote: You are measuring the wrong cost. The cost of adding new names is to people writing code: - additional confusion for new users about why

Re: [PHP-DEV] Design by Contract

2015-03-04 Thread Dmitry Stogov
On Tue, Mar 3, 2015 at 10:04 PM, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi Dmitry, On Mon, Mar 2, 2015 at 4:20 PM, Dmitry Stogov dmi...@zend.com wrote: It may be to late for 7.0. I feel the same way. It may be better to try add it with 7.x. Also Alexander liked to to add another

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Lester Caine
On 04/03/15 00:44, Pierre Joye wrote: For a php developer point of view, for someone not knowing c or php internals APIs, I highly recommend https://github.com/phalcon/zephir Yasuo is pushing function names on the basis of following the coding standard, but again these secondary tools muddy the

Re: [PHP-DEV] Consistent function names

2015-03-04 Thread Michael Wallner
On 04 03 2015, at 09:58, Lester Caine les...@lsces.co.uk wrote: On 04/03/15 03:34, Yasuo Ohgaki wrote: I made list of rename candidates https://wiki.php.net/rfc/consistent_function_names#list_of_functions_to_be_renamed If you have suggestions, I appreciate! Taking the starting point ...