3 ms·
> the average java/python/ruby/node.js programmer will never need this information That's what every kid in school ever says about a subject they don't care ab
by peterwwillis 11y ago
> the average java/python/ruby/node.js programmer will never need this information
That's what every kid in school ever says about a subject they don't care about. They're usually proven wrong.
Just in the first few pages you'll find this gem:
This leakage is why a DRAM cell must be constantly refreshed. For
most DRAM chips these days this refresh must happen every 64ms. During
the refresh cycle no access to the memory is possible. For some workloads
this overhead might stall up to 50% of the memory accesses (see [highperfdram]).
You don't think a Java, Python, Ruby, or Node programmer might need to know this at some juncture?
Having a deep understanding of how things work helps you visualize everything going on and see potential problems before they happen. This kind of deep thinking is helpful in all kinds of activities.
- SilasX 11y ago"Would benefit, eventually, at some point when butting up against resource limitations if they're advanced and do this for a while and no one's around to point this out of them on code review" != "everyone needs to know"
- bgilroy26 11y agoI think there's a big difference between "read once" and "know". When some people say a fact is "known" they mean strictly that you are able to recall that fact in toto. That is probably overkill for a Web programmer. After you read something once you don't strictly know it. However if you run into a related problem down the road, you have a good chance that you can remember enough of what you read once to put a Google query together and find the original article. After thinking about it a little more, what they probably mean is that while most programmers will forget most of what they read here (because they don't use it day-to-day) it is reliable information that will help shape their intuition about how memory works. That is probably what they mean about every programmer and this article. Every programmer ought to read and test their intuition about how memory works against the content in this article. If they are surprised by something they read, they have the chance to adjust their intuition so that it is closer to the truth.
- peterwwillis 11y agoI think I get what you're saying here. You don't "need" to know this to write code. Which is true - heck, you don't "need" to know how a tcp/ip connection works, or how disk storage works. But one day you might. When you put fuel in your car and you turn the ignition and step on the gas, the wheels move. So all you need to know is where the fuel goes and how to turn the ignition and where the gas pedal is. But one day, I guarantee you, the wheels will stop moving. When your boss storms up to your desk and says "Why aren't the god damn wheels moving?! We're losing ad revenue every minute!!", I hope Code Review Guy is around to tell you how fuel injectors work.
- yongjik 11y agoYou know, I have a really hard time imagining a situation where your boss storms up to your desk and says "Why aren't the goddamn wheels moving? We're losing ad revenue every minute!!" and you reply "Aww goddamn, I forgot to account for DRAM refresh cycle." There's knowing how fuel injectors work, and there's knowing how copper crystal in the wire admits an energy band for free electrons.
- peterwwillis 11y agoThe point isn't to know the answer to every problem. The point is to be educated enough to even have a guess as to where to start looking for the problem, and then start trying to figure out the answer.