Stories
Slash Boxes
Comments

SoylentNews is people

posted by janrinok on Thursday June 25 2015, @12:54PM   Printer-friendly
from the almost-ready dept.

Although the first alpha build of PHP7 was released just two weeks ago, the second build is already being rolled out. A variety of issues from 5.6 have been fixed as part of version 7's alpha build, and a rather comprehensive overview of new features and other language changes have been posted on PHP's official GitHub repository. Some of the most notable improvements are the boasted performance enhancement over PHP5.6, claimed to be up to twice as fast on 64-bit systems, and the well-debated inclusion of scalar type hints.

Additional history of the drafted and implemented changes for version 7 can be seen at the PHP Request for Comments Wiki.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by TheRaven on Friday June 26 2015, @12:08PM

    by TheRaven (270) on Friday June 26 2015, @12:08PM (#201471) Journal
    It actually is much easier to write leak-free C++ with C++14 than it used to be. Basically, never keep bare pointers around and, if you're allocating objects on the heap, always use std::make_unique or std::make_shared. Avoid cyclic data structures (this is probably the hardest. When you have to have cycles, explicitly break them with std::weak_ptr).
    --
    sudo mod me up
    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2  
  • (Score: 2) by fleg on Sunday June 28 2015, @02:32AM

    by fleg (128) Subscriber Badge on Sunday June 28 2015, @02:32AM (#202308)

    interesting, i havent been keeping up with c++ (all my experience is pre c++11) so i hadnt come across those make_ functions before. thanks.

    • (Score: 2) by TheRaven on Monday June 29 2015, @08:49AM

      by TheRaven (270) on Monday June 29 2015, @08:49AM (#202701) Journal
      If you haven't looked at C++ since before C++11, then I'd suggest taking another detailed look. The language now doesn't completely suck. It's now possible to write quite nice code in C++ (the problems with ABI fragility are still there, sadly). With shared_ptr and unique_ptr, lambdas, the threading and atomics libraries, it has many of the features that you actually want from a modern language. I've gone from hating C++ to tolerating it and using it as my default language for new projects as a result. There's absolutely no way that I'd contribute to a pre-C++11 codebase now though.
      --
      sudo mod me up