Live data from Hacker News

The most upvoted question in the history of StackOverflow

stackoverflow.com

1–10 of 14 posts

Re: The most upvoted question in the history of StackOverflow

#2
We often hear that choosing the right algorithm will get rid of all performance problems. There is no "need" to understand what is happening under the hood and all programmers should only work at higher levels of abstraction.

My take away from this question and and the top answer was that the above is not true. It does not mean that everyone has to code using assembly - it means that good programmers are aware of where their abstractions may leak.

Related reading (can't believe it's almost 20 years since this article was written) - https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-a...

Re: The most upvoted question in the history of StackOverflow

#5
post #4

I thought for sure it was going to be "How do I exit vim?"

I know it is a joke, but: It "Only" has 4867 votes while the answer has 5947. This seems to be the highest voted "How do I exit vim?" Post. https://stackoverflow.com/questions/11828270/how-do-i-exit-v...

Re: The most upvoted question in the history of StackOverflow

#7
post #2

We often hear that choosing the right algorithm will get rid of all performance problems. There is no "need" to understand what is happening under the hood and all programmers should only work at higher levels of abstraction. My take away from this question and and the top answer was that the above is not true. It does not mean that everyone has to code using assembly - it means that good programmers are aware of whe…

Knowing the character of your data is priceless. The only time I was able to throughly beat GCC with optimizations is when I knew that most 32-bit values being calculated upon are actually fairly small (in tens of thousands) and that I could use that to my advantage.

Re: The most upvoted question in the history of StackOverflow

#10
It is a perfect example of why you need to know the low level gritty details of how modern CPU’s (and Caches/RAM) works to write high performance high level code. A few years ago I optimised a C++ constraint algorithm from 47 minutes to 2 secs by re-arranging how the data access was organised. Writing your code in C++ doesn’t automatically make it fast. You still need to understand the low level details to make fast code.
Post reply on HN