TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

What Every Programmer Should Know About Memory (2007) [pdf]

214 pointsby jxubabout 6 years ago

8 comments

kevstevabout 6 years ago
There are some salty comments here, but I think the context is important. This paper passed across my desk in early 2008 when I was doing HFT stuff. It might be a bit of a stretch to say that the reason people are taught about cache lines in most CS programs is because of this paper, but at the time this paper was written, this was really specialized knowledge and groundbreaking to most software developers. This would go on to be a popular topic on C++ blogs from Important People (Boost maintainers, STL devs, etc) at least for the next 5 years.<p>Also, if you know Ulrich Drepper at all, either from some of his talks or his mailing list presence, this is just a very fitting title from him. Just pure deadpan, you think its funny, he probably does not, the fact that you think its amusing is just disappointing him like a professor looking out at freshman undergrads wondering how he got stuck teaching this class.
评论 #19304824 未加载
评论 #19306396 未加载
CalChrisabout 6 years ago
I wish Ulrich Drepper (thank you, Mr. Drepper) would update this with a section on <i>Row Hammer</i> and also <i>Spectre</i> and <i>Meltdown</i>. Programmer&#x27;s need to know about memory <i>because</i> of these exploits, more so with the latter two in order avoid creating exploitable gadgets.<p>But then I also think that <i>What Every Computer Scientist Should Know About Floating-Point Arithmetic</i> should be updated to include UNUMs. I don&#x27;t think that will happen either. Also, thank you Mr. Goldberg.
评论 #19304725 未加载
评论 #19303943 未加载
评论 #19303812 未加载
saberienceabout 6 years ago
Is this title and content supposed to be ironic?<p>I quickly perused the article and I think this link should be renamed &quot;What 99.9% of programmers don&#x27;t need to know about memory.&quot;<p>I&#x27;ve managed to go from Associate to Principal without knowing 99% of what&#x27;s covered in this document, and I&#x27;m struggling to understand why the average Java, C#, Python, Rust, &lt;insert language here&gt; programmer would need to know about transistor configurations or voltages, pin configurations, etc. Let alone 114 pages of low level hardware diagrams and jargon!<p>This document is for someone working on low level drivers for memory, or working on the hardware side. For any normal software engineer, this information is not helpful for doing your job.
评论 #19303991 未加载
评论 #19305098 未加载
评论 #19304861 未加载
评论 #19304538 未加载
评论 #19304069 未加载
评论 #19308190 未加载
评论 #19305800 未加载
评论 #19303933 未加载
评论 #19304874 未加载
评论 #19305664 未加载
评论 #19305965 未加载
评论 #19303996 未加载
评论 #19305003 未加载
评论 #19310963 未加载
louthyabout 6 years ago
What every programmer should know about memory shouldn&#x27;t be 114 pages long.
评论 #19303276 未加载
评论 #19303175 未加载
评论 #19303218 未加载
orzigabout 6 years ago
I was so excited to dive into this, but ended up with the same Takeaway as most other commenters. Aside: As a data scientist, I’ve been surprised how much I’ve needed to learn about the finer points of optimizing GPU utilization for training.<p>It has all been from more experienced coworkers, and I would much appreciate any resources anybody could point me to (free or paid) so that I could round out my knowledge
评论 #19306851 未加载
mjw1007about 6 years ago
Interesting that in 2007 he thought FB-DRAM was going to win. That seems to have been about the time it dropped dead.
评论 #19309414 未加载
blakehaswellabout 6 years ago
For an accessible talk about the real-world implications of this, I enjoy watching Mike Acton&#x27;s CppCon talk &quot;Data-Oriented Design and C++&quot;: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=rX0ItVEVjHc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=rX0ItVEVjHc</a>
评论 #19310107 未加载
busfahrerabout 6 years ago
Ulrich Drepper used to be the glibc maintainer, IIRC
评论 #19303833 未加载