Announcement

Collapse
No announcement yet.

PHP 5.5 Beta Brings New Accelerator

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP 5.5 Beta Brings New Accelerator

    Phoronix: PHP 5.5 Beta Brings New Accelerator

    The first beta of PHP 5.5 was released, which marks the feature freeze for the scripting language. One major feature to PHP 5.5 is the introduction of the Zend Optimizer+ engine...

    http://www.phoronix.com/vr.php?view=MTMzMzg

  • #2
    PHP is

    PHP is one of the worst languages ever invented, only on par with Javascript. Thanks god we have sane languages like Java to make our lifes easier

    Comment


    • #3
      Originally posted by wargames View Post
      PHP is one of the worst languages ever invented, only on par with Javascript. Thanks god we have sane languages like Java to make our lifes easier
      Java sane? surely you must be joking. No, thank God we've got sane languages like C++ and C# :P

      Comment


      • #4
        Originally posted by Luke_Wolf View Post
        Java sane? surely you must be joking. No, thank God we've got sane languages like C++ and C# :P
        Java is very sane, and very easy to learn.

        It lacks some of the features of C#, something that won't be solved until Java 8, but it's a good language and I prefer it over C#. What I miss from java is more low level constructs in order to write more unsafe code, without incurring in the penalty impossed by the JNI.
        Last edited by newwen; 03-22-2013, 04:57 PM.

        Comment


        • #5
          Originally posted by newwen View Post
          Java is very sane, and very easy to learn.

          It lacks some of the features of C#, something that won't be solved until Java 8, but it's a good language and I prefer it over C#. What I miss from java is more low level constructs in order to write more unsafe code, without incurring in the penalty impossed by the JNI.
          Pardon but we're going to have to agree to disagree on this point because until Java get's the control freaks kicked out of the language design it's going to continue to be a shit language in my books. Because the whole attitude of "People are going to abuse feature X so we're going to make doing X impossible" pisses me off particularly when it ends up being actually just being an excuse on the part of the language designers to excuse their laziness, resulting in all sorts of braindamaged design that runs completely contrary to any conception of sanity.

          C++ and C# have their own issues but at least they're not due to insanity in the form of megalomania.
          Last edited by Luke_Wolf; 03-22-2013, 05:18 PM.

          Comment


          • #6
            HipHop Pressure?

            It seems the work been done by facebook developers to create an optimized version of the PHP runtime lead to some good addition to the php software stack. Some competition is always beneficial for end users

            One thing I did every time I installed php was to also install the xcache extension, the performance gain can be of 200% - 300%

            Still not sure why extensions like xcache were not considered before Is understandable that APC never reached the level of reliability needed by the language but xcache has worked pretty well for me even with newer php versions.

            At least we will finally have some decent performance out of the box for php web applications.

            Comment


            • #7
              Facebook

              Why doesn't Facebook contribute anything to PHP? (or do they?)
              Aren't any companies contributing anything to PHP? (if they are, then if so then which?)

              New accelerator is good, but maybe they should fix the broken stuff?
              http://phpsadness.com/

              Comment


              • #8
                PHP's problem is not its speed. The language is simply a mess. There is no consistency whatsoever and you can never be sure what a function returns unless you've memorised it (don't try to guess - you'll be wrong). On top of this there are so many online tutorials and formal educational institutions which still teach you to use functions and methods from the dark ages which are relatively slow or totally unsafe if not used carefully (or both), even though there is often a newer method which handles the "carefully" for you. For example, mysql_query().

                Comment


                • #9
                  Originally posted by uid313 View Post
                  Why doesn't Facebook contribute anything to PHP? (or do they?)
                  They sure as heck claim they do.(look at the bottom of the page)

                  https://developers.facebook.com/opensource/

                  Some notable work they've done in the past has been on APC, some various projects like http://www.phpsh.org/ and hiphop, and they've contributed to XDebug. I really don't know what they contribute back to PHP directly as far as the language goes though.

                  Comment


                  • #10
                    I saw FB people develop some webuis for their tools and i was impressed by the speed at which they can just make them happen. And I do believe, that it's in part due to PHP.
                    PHP sucks in a few ways, yes, but it's simple and very straightforward. Heck, often the return stuff is actually taken straight from the C calls.. which makes it pretty easy too.
                    Even the "object" model is relatively simple.

                    Other languages, such as python, java, what not, have complex metaphors, frameworks *everywhere* and it's just taking longer to code for, even thus those provide a lot of nice things and consistency. At least, for me. Maybe it's because I started with C. I don't know.

                    Comment


                    • #11
                      I'm wondering if Zend Optimizer+ is better than the XCache opcache extension...
                      When comes to fast web development PHP is my language of choice. I know that the language is inconsistent, but lately it is fixed bit by bit.

                      Note that language itself cannot be bad. But its usage in some scenarios can be favoured or discouraged.
                      I do use C, PHP, Perl, Python, Lua and Bash and lately C# with .NET.
                      Before I start writing the application/script I choose the language carefully.
                      I decide upon application size, scalability, performance, if it's web, if should be cross-platform, if app should embed DSL and many other factors.

                      I would like all developers to be language agnostic like me, but it seems that everyone favours some laguage and worships it...
                      The discussion above about Java and C# reminds me of: http://devopsreactions.tumblr.com/po...sing-java-vs-c

                      Add.
                      Aren't any companies contributing anything to PHP? (if they are, then if so then which?)
                      I'm not very informed, but it seems that Fabien Potencier and SensioLabs are the ones that contribute a lot to PHP.
                      Last edited by metala; 03-23-2013, 09:58 PM.

                      Comment


                      • #12
                        Most of the people that criticize PHP is maybe due for past experiences with old version years ago and not checking how the language has evolved having the facilities to code better and cleaner code. Also many systems out there like maybe wordpress?? didn't implemented the best programming techniques so people tend to condemn the language based on those known applications.

                        Comment


                        • #13
                          Originally posted by metala View Post
                          Note that language itself cannot be bad. But its usage in some scenarios can be favoured or discouraged.
                          I do use C, PHP, Perl, Python, Lua and Bash and lately C# with .NET.
                          Before I start writing the application/script I choose the language carefully.
                          I decide upon application size, scalability, performance, if it's web, if should be cross-platform, if app should embed DSL and many other factors.

                          I would like all developers to be language agnostic like me, but it seems that everyone favours some laguage and worships it...
                          The discussion above about Java and C# reminds me of: http://devopsreactions.tumblr.com/po...sing-java-vs-c
                          I'm going to have to disagree with you on the point of languages being bad, because the way the language is designed is a reflection of the designers themselves, languages run the gamut of good, bad, and grey (like the people developing them they're usually grey). Megalomania (particularly as an excuse for laziness) is one of the prime factors for making a language bad and it's what separates Python from Java. Python says that "There's only One Right way to do things", essentially it's like they're a very strict but fair teacher, and I can't fault them for their design decisions even if I don't agree with them. Java on the other hand says "You will do what I say, how I say, when I say to do it now go in the corner and go stab yourself in the hand for 5 minutes" as well as "You want Feature X, no you're going to abuse my precious..... Gollum... Gollum", In short megalomaniacal control freaks who think you're going to abuse their dog/children. As such bad people it makes their language bad, this isn't to say it can't be rehabilitated but basically it's going to be like rehabilitating a child who was put under such abuse growing up... Good luck.

                          As far as favouring languages goes basically it comes down to two things (assuming the favouring is pure, and doesn't have things like bribery involved): Philosophy and Features.

                          For instance my personal preferences for an imperative language are that it is strongly and explicitly typed, has at least reasonable levels of built in Object Oriented design patterns, ignores whitespace, has overloadable operators, an explicit main procedure, and a design philosophy of supporting the programmer rather than trying to exert control over them (and note that I'm the kind of person who when I feel constrained I break out of the box and force it to do what I want anyway, and if someone who I don't respect the authority of tries to control me I toy with them doing things like using the letter against the intent).

                          If a language fulfills all of those I'm going to really like it, like C++ & C#, even though they have flaws. I'm willing to put up with languages that are missing certain features, but if it breaks my relatively lenient philosophy requirement then I'm going to hate it and I'll refuse to work with it. From there it's a matter of what fits the requirements, and I'm going to favour languages that fit my preferences over those that I'm just willing to work with. This favouring is actually a very good thing to do. Why? Well there's a simple reason for it: Productivity. If someone is doing something they enjoy doing they're going to go out of their way to make it as best as they can. If someone is doing something they don't care for or is indifferent to but are willing to do their work is going to be mediocre, it'll fit the bill but it won't go above and beyond. If someone hates what they're doing it'd be better if they were removed from the project because they're going to put out shit that meets only the bare minimum requirements.
                          Last edited by Luke_Wolf; 03-24-2013, 06:02 PM.

                          Comment

                          Working...
                          X