r/programming • u/TheFlyingCoderr • Jul 13 '23
What Every Programmer Should Know About Memory
https://people.freebsd.org/~lstewart/articles/cpumemory.pdfThis resource is starting to get a bit older. But it's such a good resource for learning about memory.
Hope you like it (it's a pdf)
296
Upvotes
View all comments
Show parent comment
27
u/Randolpho Jul 13 '23
Agreed.
This is a good paper for non CS programmers who are curious about the inner workings of the black box they manipulate to read, even though it’s 15 years out of date. Programmers who came up through a CS degree but turned to general software careers already know the basics of what’s touched on here, if not always some of the details.
But for most people manipulating that black box to do general purpose software like web apps or mobile apps or even the now gauche desktop UI, any of the details listed here are only important to software subsystems whose APIs those modern programmers use. Indeed, it’s far more likely that modern programmers are several layers above components where the details of this paper matter.
And for the people who actually need to know stuff like this, the people writing drivers and low level OS subsystems… those people already know more than this paper even manages to convey.
That said I still encourage non-CS and even CS background programmers to consume this paper. It doesn’t matter directly, but sometimes context is helpful. And who knows? Maybe it’ll spark interest in a hobby or career change.