Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a little off topic, but thought I'd ask the C++11 aficionados who're viewing this thread. For those who've taken the hit and really explored C++11:

1) What are the best resources to learn how to code C++11 in a Pythonic style? Looking for a book or production source code example that uses the new language features idiomatically: lambdas, vector and dictionary literals, and the like.

2) What does your toolchain look like for C++11? Just the latest gcc and latest emacs, plus maybe a few tools like makeheaders[1] and gtags[2], or something more?

[1] http://www.hwaci.com/sw/mkhdr/

[2] http://www.gnu.org/software/global/



1) What are the best resources to learn how to code C++11 in a Pythonic style? Looking for a book or production source code example that uses the new language features idiomatically: lambdas, vector and dictionary literals, and the like.

I don't think you can find good books or comprehensive resources at this time. There are various articles and blog posts detailing the C++11 additions to the language. Of course there's the spec but it makes very boring reading.

Not a whole lot has changed so you can pretty much jump right in and use the new features as you need them.

std::thread and std::chrono are pretty sweet.

2) What does your toolchain look like for C++11? Just the latest gcc and latest emacs, plus maybe a few tools like makeheaders[1] and gtags[2], or something more?

I used to build gcc from git sources, but these days my operating system package manager ships with a gcc version that has most of the C++11 stuff I use. Just add -std=gnu++0x to your CFLAGS.

FWIW: I use vim + ctags + cscope.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: