Forgot your password?
typodupeerror
Programming

C++0x Finally Becomes a Standard 398

Posted by Unknown Lamer
from the c++-ain't-what-it-used-to-be dept.
Samfer writes "On Friday August 12th 2011, the results for the final ISO ballot on C++0x came in, and the ISO C++ Standards Committee were unanimous in favor of approving the new C++0x (for now unofficially known as C++11) object-oriented programming language standard which is intended to replace the existing C++ standard. The new standard is to offer new and improved features such as lambda functions, concurrent programming functionality, direct data field initialization, and an improved standard library to name but a few." Although I haven't heavily used C++ in years, it is nice to see a decade long effort finally come to fruition. Especially nice is the support for type inference which should save quite a few people from RSI and make refactoring code a bit less obnoxious.
This discussion has been archived. No new comments can be posted.

C++0x Finally Becomes a Standard

Comments Filter:
  • by wsxyz (543068) on Tuesday August 16, 2011 @01:37PM (#37109182)
    After the standard is before the standard...
  • by StripedCow (776465) on Tuesday August 16, 2011 @01:47PM (#37109296)

    List of missing features:

    - coroutines
    - multi-stage/active library programming (i.e., something that fixes the syntactical mess of most template libraries)
    - precise garbage collection (not that I'm missing it)
    - fully opening up of the memory model (allowing libraries to implement complex memory handling such as garbage collection or persistence)

    • by elrous0 (869638) * on Tuesday August 16, 2011 @02:17PM (#37109710)

      You lazy, spoiled punks with your Java and C# garbage collection. Back in my day, we collected our OWN garbage. It was a miserable task, but we were ignorant and didn't know any better. AND WE LIKED IT!

    • by NumLuck (1632865) on Tuesday August 16, 2011 @02:34PM (#37109922)

      - precise garbage collection (not that I'm missing it)

      What is the matter with everyone wanting a garbage collector? Personally, I find smart pointers to be far superior to garbage collection and the new standard now incorporates them in the STL (strongly influenced by BOOST)! With them, the sole idea of garbage collection in C++ is somewhat useless and obsolete.

  • by kervin (64171) on Tuesday August 16, 2011 @01:48PM (#37109302) Homepage

    They didn't call it C++0b

    Oh and didn't include garbage-collection outright ( though they did design it with gc in mind ).

  • oh hell... (Score:2, Funny)

    by Anonymous Coward on Tuesday August 16, 2011 @01:48PM (#37109304)

    ...the 11th plague of Egypt has arrived a little bit late.

  • by BasilBrush (643681) on Tuesday August 16, 2011 @01:48PM (#37109308)

    How do you pronounce that? It's like they want to advertise that this is a baroque language.

  • by AdmiralXyz (1378985) on Tuesday August 16, 2011 @01:49PM (#37109324)
    As the inaugural copy of the reference manual for the new standard was being printed and bound, it underwent gravitational collapse due to its enormous mass and became a black hole, killing all the committee members. Stroustrup was quoted as saying that despite the misfortune, he still has confidence that the C++0x standard will help programmers be more productive and efficient.

    and WOOSH there goes my karma...
  • by drb226 (1938360) on Tuesday August 16, 2011 @01:50PM (#37109338)
    What's with the random links in TFS? Specifically, why link to c2.com for "type inference" and intel.com for "lambda functions"? Wikipedia wasn't good enough for those?
    • by smellotron (1039250) on Tuesday August 16, 2011 @02:12PM (#37109640)

      pecifically, why link to c2.com for "type inference" and intel.com for "lambda functions"? Wikipedia wasn't good enough for those?

      Have you ever browsed around c2.com? It's great. Wikipedia is good as a generic "fail-safe" resource, but I'd rather see a deep subject-matter wiki being cited where appropriate.

      I imagine the Intel article was referenced due to its examples of syntax. It's more specific than a general encyclopedia entry on lambda functions.

  • by jabberw0k (62554) on Tuesday August 16, 2011 @02:00PM (#37109502) Homepage Journal
    Perl 6 should arrive in 2019. p.s., As for lambada functions, I hear the best ones are in Buenos Aires.
  • by Animats (122034) on Tuesday August 16, 2011 @02:12PM (#37109644) Homepage

    It's nice that they finally got the standard done. But there's so much junk in there. The C++ committee was dominated by people who wanted to do cool things with templates.

    Some years ago, someone figured out that it was possible to abuse the C++ template system into doing arbitrary computations at compile time. This developed a fan club. That fan club has dominated the C++ standards committee, because nobody else cared. So now we have a standard for C++ which supports template-based programming a little better.

    Current thinking seems to be that,while template programming is too hard for ordinary programmers, the templates will be written by l33t programmers and then be used by the lower classes. Unfortunately, if anything goes wrong, the end user has to look at the innards of the template to find the problem. We went through this with LISP decades ago. Check out the MIT Loop Macro [cmu.edu], That finally became stable about the time LISP died out.

    Note what isn't in the new C++. There's no more memory safety than in the old one. (Fans will say that it's safer if you only use the new features. Now try to call some library that doesn't use them.) So the buffer overflow attacks and crashes will continue.

    C++ is the only language to offer hiding without memory safety. Hard-compiled languages from Pascal through Go have hiding with safety, as do all the major scripting languages. C has neither hiding nor safety; the pointer manipulations are right there in the source. There have been safe, hard-compiled languages without garbage collection, most notably Ada and the Modula family. Safety and speed are not incompatible.

    • I think you hit the problems with templates nicely. While they were sitting around arguing over concepts, they could have been including support for multithreading. The new move semantics are nice, as are "official" smart pointers, though I am kind of cringing thinking about how much of a pain dealing with incompatibilities with boost smart pointers or other smart pointer libraries might be.

      With the exclusion of concepts, the latest standard just moves C++ farther into an experts-only language. The whole standardization process is just too cumbersome. Its just hard to understand how the committee can ignore multithreading, while adding things like lambdas and type inferencing.

    • by tibit (1762298) on Tuesday August 16, 2011 @02:51PM (#37110126)

      The loop macro is, in essence, part of the compiler or the standard library. It is code that processes code during compilation. I'm not surprised that it's nontrivial.

    • by jgrahn (181062) on Tuesday August 16, 2011 @03:41PM (#37110750)

      Some years ago, someone figured out that it was possible to abuse the C++ template system into doing arbitrary computations at compile time. This developed a fan club. That fan club has dominated the C++ standards committee, because nobody else cared. So now we have a standard for C++ which supports template-based programming a little better.

      Current thinking seems to be that,while template programming is too hard for ordinary programmers, the templates will be written by l33t programmers and then be used by the lower classes.

      You're thinking about Template Meta-programming, not the everyday templates I use.

  • by Anonymous Coward on Tuesday August 16, 2011 @02:21PM (#37109744)

    First DNF, then a HURD kernel, now C++0x... Remind me to send some parkas to hell.

  • by CountBrass (590228) on Tuesday August 16, 2011 @03:14PM (#37110426)

    So C++ takes another step closer to Lisp (lambda functions) whilst completely missing the most important part (closures and higher order programming).

    I look forward to C++ 2031 when they implement garbage collection but still require you to place and remove locks on memory ;)

    *Ducks and runs for cover*

  • by kipsate (314423) on Tuesday August 16, 2011 @03:16PM (#37110440)
    type inference which should save quite a few people from RSI
    Because surely, the hard work of writing code is in all that typing.

    and make refactoring code a bit less obnoxious
    Because yeah, refactoring is all about continuously retyping your variables.

    I haven't heavily used C++ in years
    ... and never coded anything beyond a two-dice simulation.

"If that makes any sense to you, you have a big problem." -- C. Durance, Computer Science 234

Working...