Page 1 of 2 12 LastLast
Results 1 to 10 of 21

Thread: Many Features Proposed For C++14

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    14,324

    Default Many Features Proposed For C++14

    Phoronix: Many Features Proposed For C++14

    C++14 is the next update for the C++ programming language. While slated as only a minor extension to C++11, there are several new features being proposed...

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

  2. #2
    Join Date
    Aug 2012
    Location
    Pennsylvania, United States
    Posts
    1,859

    Default

    So OpenMP would be considered a standard library and replace <threads>?

  3. #3
    Join Date
    Sep 2010
    Posts
    453

    Default

    No it will add not replace threads.

  4. #4
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    3,776

    Default

    Quote Originally Posted by Ericg View Post
    So OpenMP would be considered a standard library and replace <threads>?
    OpenMP is a high-level threading API. It couldn't possibly replace <threads>.

  5. #5
    Join Date
    Dec 2012
    Posts
    501

    Default

    All I want is modules. Pls Herb. End the textual inclusion nightmare.

  6. #6
    Join Date
    Oct 2007
    Location
    Under the bridge
    Posts
    2,126

    Default

    Quote Originally Posted by zanny View Post
    All I want is modules. Pls Herb. End the textual inclusion nightmare.
    ++++

    But I don't think modules will land this decade, if ever. Because adding a fifth parameter-passing method is more important than, say, not crashing whenever you throw an exception from a shared library. Who cares about modules or encapsulation or terrible copy-paste coding (sorry, "textual inclusion"), now you can have rvalue-references and a dozen standard optional random number generators!

  7. #7
    Join Date
    Mar 2008
    Posts
    205

    Default

    having written high performance massively parallel software my experience with openMP is quite unimpressive. Gains are typically quite sub linear, more log-like. It's okay as a stop gap for trying to upgrade old non thread safe software. IMHO new vector unit technology can be dramatically faster. In my experience there are 2 levels of parallelization: instruction level. best left to vectorization techniques, and task level parallelism which is an issue of software design and not a coding problem.

  8. #8
    Join Date
    Oct 2007
    Posts
    31

    Default How about designated initializers?

    They've been in C since C99. Maybe 15 years is enough time for useful features to make it from C into C++?

  9. #9
    Join Date
    Aug 2012
    Location
    Pennsylvania, United States
    Posts
    1,859

    Default

    Quote Originally Posted by brouhaha View Post
    They've been in C since C99. Maybe 15 years is enough time for useful features to make it from C into C++?
    C++ includes all of C, its just a matter of whether or not its being used.

  10. #10
    Join Date
    Mar 2011
    Location
    Canada
    Posts
    94

    Default

    Quote Originally Posted by Ericg View Post
    C++ includes all of C, its just a matter of whether or not its being used.
    C++ doesn't include all of C, it includes (almost) all of C89 and some cherry picked features from C99. Designated initializers are non-standard in C++ and there are minor incompatibilities like 'c' being a char literal instead of an int and explicit casts being required from void *.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •