Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 49,280 posts.

Any topic
Any year
40900

Useful use of cat(1)

Rather special example: This was useful for me on a Redhat Linux, where man(1) otherwise annoyingly would intersperse the output with headers and footers for a print version, which is rarely used, though... I tried: ( echo -e ".pl 1100i"; cat "$1"; echo ".pl \\n(nlu+10\n" ) | tbl | nroff -man

40914

Multithreading in modern C++

With the new C++11 Standard, C++ faces the first time challenges of multicore architectures. The 2011 published standard defines how a C++ program has to behave in the presence of multiple threads. The C++11 multithreading capabilities are composed of two components. This is, on the one hand, the defined memory model…

40915

When the Compiler Bites

So far this year I’ve been bitten three times by compiler edge cases in GCC and Clang, each time catching me totally by surprise. Two were caused by historical artifacts, where an ambiguous specification lead to diverging implementations. The third was a compiler optimization being far more clever than I expected…