Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84748 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62521 invoked from network); 13 Mar 2015 23:48:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2015 23:48:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.51 as permitted sender) X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.215.51 mail-la0-f51.google.com Received: from [209.85.215.51] ([209.85.215.51:33539] helo=mail-la0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/EB-34457-63773055 for ; Fri, 13 Mar 2015 18:48:07 -0500 Received: by ladw1 with SMTP id w1so1638101lad.0 for ; Fri, 13 Mar 2015 16:48:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:from:date:message-id:subject:to:cc :content-type; bh=QLIG/T5Ua+dgAUX9/WnR1RjPOFjWS4e9kcaytIoXy8Y=; b=bznExm1yxOiD9F7N7CWbeZvmD2FbZZsXntYtwJzGLxl5GtYpyA/Ic6anG5CJmUwPX8 WgrpOERv3NRlQghQi1YJEssYkztaMbPFsNcZDF5VDRY+LPnzNXCTc9bnSguTIMsYjoWR JjAyHXrbg9NHeGs6LisI413K5dXmwCiBm5L3CkN+br0CbU1Tec6LcAtz+EQZHNzgdk8i kYB0Cygb1miRla9+OdJLTpDE9tEUHvoSz5hURi8EnN132EjPf/2NJAe6e4ZeAmFctqPl HpCwA3XKbViUiZ/Y/4dNQCWCXCt7giNE26mKoBzFQbDXAkJtY5juPSO6M2Ga/MkFUa1P +rag== X-Received: by 10.112.41.236 with SMTP id i12mr17077078lbl.14.1426290483029; Fri, 13 Mar 2015 16:48:03 -0700 (PDT) MIME-Version: 1.0 References: Date: Fri, 13 Mar 2015 23:48:02 +0000 Message-ID: To: Benjamin Eberlei Cc: Philip Sturgeon , =?UTF-8?Q?Pavel_Kou=C5=99il?= , Anthony Ferrara , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11346724966eec051134215d Subject: Re: [PHP-DEV] A plea for unity on scalar types From: arvids.godjuks@gmail.com (Arvids Godjuks) --001a11346724966eec051134215d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable And actually, I would plea for a moment of sanity right now. As far as i'm concerned - the RM for the 7.0 had to step in a long time ago and said "guys, I do not accept any typehint proposals into the 7.0 release, work it out and come back for 7.1". Because if this would be a commercial development before a release - feature would be scrapped and re-sheduled for later release. Why? Because the clusterf**k happened at RFC level already, the development itself is going to be haisty considering the timeline and definetly being bombarded by the protesters, countless critisism and so on. It is going to affect the projects. And that is a bad thing. Look past the damn typehint RFC's and just try to asses the big picture. Right now it's a tunnel vision for many on the list. =D1=81=D0=B1, 14 =D0=9C=D0=B0=D1=80 2015, 1:29, Arvids Godjuks : > Opcode caches just cache the compiled code - you still need to load the > code into the engine, do checks for file modifications and other stuff. > > Yes, if you are a badass and have full controll, all that can be solved. > Reality, however, is one big f***up. I had to fix a lot of weird stuff, > including the cases where there was some kind of opcode cache and it stil= l > was horrible. Or shared enviroment. Or just bad code. You havent seen > FTP/SFTP project deployment in last few years? I envy you. You work for > godly clients. Or it's just that you are a rockstar in a rockstar friendl= y > company with resources and will to do things right. But most of us a far > lower in the food chain. We have to deal with things that would give you > nightmares. > > Or take most of Open Source PHP code - besides a few high quality project= s > like Symfony and the bunch, it's bad. And I know one instanse of an Open > Source project with PHP part that will go full retard mode with strict > typehints no matter the cost or consiquences. Probably will end up killin= g > the company behind it in the long run. > > There is one thing that you learn when you actually go beyound the coding= : > never ever give user a choise - he doesn't know what he wants anyway. He > thinks he needs one thing, in reality tests show absolutelly different > stuff. You need to make a decision select a way you wana do it. It newer > works out with choises - people always make a mess. > > =D1=81=D0=B1, 14 =D0=9C=D0=B0=D1=80 2015, 1:11, Benjamin Eberlei : > > On Sat, Mar 14, 2015 at 12:02 AM, Arvids Godjuks > > wrote: >> >>> =D0=BF=D1=82, 13 =D0=9C=D0=B0=D1=80 2015, 23:01, Philip Sturgeon : >>> >>> > Pavel, >>> > >>> > On Fri, Mar 13, 2015 at 3:38 PM, Pavel Kou=C5=99il >>> wrote: >>> > > On Fri, Mar 13, 2015 at 4:45 PM, Anthony Ferrara < >>> ircmaxell@gmail.com> >>> > wrote: >>> > >> >>> > >> But for today, I firmly believe that the Dual-Mode proposal is the >>> > >> only one that stands a chance of passing. I think it's the best >>> chance >>> > >> for the language, and it's the only one that tries to unite the >>> > >> different usages of PHP into a single group, rather than alienatin= g >>> > >> users. >>> > >> >>> > > >>> > > Hello, >>> > > >>> > > I see (as a userland developer) these problems with dual mode: >>> > > - It is a "setting" that changes the language's behavior; I don't >>> > > think that it matters whether or not it would be an INI setting or >>> the >>> > > declare() one, because both of them are bad. >>> > > - It does not "unite different usages of PHP into a single group"; = it >>> > > does exactly the opposite, splitting PHP usage into TWO groups. >>> > > - Once this dual mode would be introduced to PHP, there would >>> probably >>> > > be no way of removing it later without massive BC break, once most >>> > > people would realize that it is really awful to have it in the >>> > > language. >>> > > >>> > > (There's probably more of them, but these are the biggest issues I >>> > > currently have.) >>> > > >>> > > Regards >>> > > Pavel Kouril >>> > > >>> > > -- >>> > > PHP Internals - PHP Runtime Development Mailing List >>> > > To unsubscribe, visit: http://www.php.net/unsub.php >>> > > >>> > >>> > Hang on. This is not the time to nitpick things in various RFCs that >>> > have already been answered time and time again. >>> > >>> > An ini setting would be insane because taking an app that works on on= e >>> > machine and putting it on another would completely break the app. >>> > Hello anything using Composer, hello any CMS, hello any system moving >>> > to a new host that doesn't let you change ini settings, or you dont >>> > know how. >>> > >>> > A declare statement in the top of the file changing how that file >>> > handles things is hardly a problem, and is exactly how a lot of other >>> > languages do things. Hello JavaScript. >>> > >>> > It seems like you didn't read anything now you're just saying "it's >>> > bad" a lot. Please don't do that. >>> > >>> > -- >>> > PHP Internals - PHP Runtime Development Mailing List >>> > To unsubscribe, visit: http://www.php.net/unsub.php >>> > >>> > That declare thing with the removal of block-aware declare(){} kills >>> one >>> of the fundamental optimizations you can do for large PHP projects - >>> compacting most used files into one single big file and caching it. And >>> you >>> never had to care what the files are - just splice it all together and >>> let >>> autoload handle the rare cases. With single declare statement I >>> effectivly >>> have to scan all the code, remove declare statements and choose a mode >>> globally. Well, it might work for a small project, but in a big project >>> with multiple teams or even multiple vendors doing different parts.... >>> >> >> The same is true for namespaces, but Symfony for example works around it >> by introducing block syntax. >> You can just remove the declares, during concatenation, or move a single >> strict to the top. >> >> Also this is not a fundamental optimization (I'd argue never has been) >> anymore since opcache is in core of PHP since 5.5 >> >>> >>> At this point I have only swearing words for the proposing persons and >>> supporters. >>> It's magic_quotes and register_globals all over again, but this time yo= u >>> can't fix it with some PHP code. >>> >>> You really had to fuck it all up for us, the userland developers, didn'= t >>> you? >>> >>> Sorry, but I now question the wisdom and sanity of most new PHP folks. >>> Because the old once see the danger and vote "no". And everyone just >>> thinks >>> they act up. Well, you wrong. I will nit be surprised if they just leav= e >>> the project for good after this. >> >> >> This list gets pretty intense, but this kind of swearing and attack on >> persons is certainly not acceptable in my book. >> >> Like every feature, this is optional. >> >> >> --001a11346724966eec051134215d--