Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    C

    C++Next

    cpp-next.com · Publication · on HN since 2009

    C++Next is a blog on modern C++ techniques, including performance, expression templates, concepts, and lessons from Elements of Programming.

    Visit blogHN submissions
    Languages & CompilersSystems & Performance
    What HN says

    HN commenters link it most often for its pass-by-value article on copy elision and speed, and for its series on Elements of Programming.

    Stats for nerds
    21HN people shared it
    18linked in comments
    86story points
    May 2014last shared
    2009people per year2014

    Top posts on HN

    1. 1
      Want speed? Pass by value.
      6 people · 35 points · first shared 2009 · 30 comments on HN
    2. 2
      C++Next
      1 person · 20 points · first shared 2009 · 9 comments on HN
    3. 3
      Having it all: Pythy syntax for C++
      3 people · 6 points · first shared 2011 · Discussion on HN
    4. 4
      Expressive C++: Fun With Function Composition
      1 person · 5 points · first shared 2010 · Discussion on HN
    5. 5
      Expressive C++: Expression Optimization
      2 people · 4 points · first shared 2011 · Discussion on HN
    6. 6
      A Breakthrough for Concepts in C++
      2 people · 3 points · first shared 2011 · Discussion on HN
    7. 7
      Appearing and Disappearing consts in C++
      1 person · 3 points · first shared 2011 · Discussion on HN
    8. 8
      Generic Functions and Function Objects « C++Next
      1 person · 2 points · first shared 2012 · Discussion on HN
    9. 9
      Algebraic Data Types in C++
      1 person · 2 points · first shared 2012 · Discussion on HN
    10. 10
      Evil, or Just Misunderstood? « C++Next
      1 person · 2 points · first shared 2012 · Discussion on HN

    What HN people wrote when they linked it

    • obiterdictumOct 2011

      We have just started using some C++11 features, and with new features come new traps and potential complexities, as you'd expect with C++.

      A few examples:

      1. Implicit lambdas ("[=]") capture "this" pointer for data members, if you capture a shared pointer and let the lambda object leave the scope, the shared pointer won't be copied (http://stackoverflow.com/q/7764564/23643), which may create unpleasant results, like code blowing up in your face.

      2. Overuse of "auto" (not exclusive to C++) may make the code harder to read, especially if storing a result returned from a function. You can't tell if the return value is a smart pointer or a raw pointer, value or a reference, so you can't figure ownership semantics just by looking at the local code.

      3. Move constructors/assignment operators are a bit of a black magic, especially with regard to suppressing default implementation (http://mmocny.wordpress.com/2010/12/09/implicit-move-wont-go) and exception safety (http://cpp-next.com/archive/2009/10/exceptionally-moving). I would refrain from using it, until I fully understand it.

      With that said, most of C++11 is a welcome change and makes C++ more pleasant to write, but, as always, you have to have your guard up and use new features judiciously.

    • sreanMay 2014

      It has not been mentioned in the original post or the comments yet, so here is a working prototype of a similar idea https://github.com/pfultz2/Pythy (for some specific value of working, you will need Clang)

      Its birth lies here Having it all: Pythy syntax for C++ [1]. It was a nice read. Unfortunately cpp-next seems to be down right now. Let me try to find it in Google's cache or internet archive.

      Here it is https://web.archive.org/web/20130820172127/http://cpp-next.com/archive/2011/11/having-it-all-pythy-syntax/

      [1] http://cpp-next.com/archive/2011/11/having-it-all-pythy-syntax/

    • alexkcdJul 2012

      All modern C++ compilers support RVO, so there will be no copy given how this function is implemented. If by "safer" you mean "probably faster", then that's not true:
      http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/

      The author's version is more idiomatic modern C++, while your version is something you'd write for a decade old compiler.

    • stingraycharlesNov 2010

      The book "Elements of Programming" is a good read, http://www.elementsofprogramming.com/, although it's a bit theoretical.

      While the book isn't free, this blog thoroughly covers the book and the lessons learned from it in a lecture series:

      http://cpp-next.com/archive/2009/11/%E2%80%9Celements-of-programming%E2%80%9D-study-group/

    • alexchamberlainJan 2012

      This is slightly off topic, but a good read...
      http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/

    • shin_laoOct 2009

      More information about copy elision here:

      http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/

    Related

    Lambda the Ultimatelambda-the-ultimate.org615 people

    Simon Peyton Jones Elected into the Royal Society Fellowship

    Lambda the Ultimate
    Publication · last shared 2026
    Rust Blogblog.rust-lang.org533 people

    Announcing Rust 1.0

    Rust Blog
    Company · last shared 2026
    LLVM Blogblog.llvm.org226 people

    Clang Is Now Used to Build Chrome for Windows

    LLVM Blog
    Company · last shared 2026
    Bartek's Coding Blogbfilipek.com49 people

    Coding without Google

    Bartek's Coding Blog
    Personal · last shared 2021
    Modernes C++modernescpp.com35 people

    C++ 20: The Core Language

    Modernes C++
    Personal · last shared 2026
    Go Blogblog.golang.org529 people

    Go 2, here we come

    Go Blog
    Company · last shared 2026
    Visual C++ Team Blogblogs.msdn.microsoft.com/vcblog86 people

    Visual C++ for Linux Development

    Visual C++ Team Blog
    Company · last shared 2019
    Fluent C++fluentcpp.com66 people

    Technical Debt Is Like a Tetris Game

    Fluent C++
    Personal · last shared 2025