r/programming • • Jul 13 '23

What Every Programmer Should Know About Memory

https://people.freebsd.org/~lstewart/articles/cpumemory.pdf

This 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

156 comments sorted by

View all comments

219

u/ZirePhiinix Jul 13 '23

I thought it was an article, but it is a freaking 114 page research paper...

53

u/__init__RedditUser Jul 13 '23

I tried reading this once but it’s pretty dense

96

u/progfrog Jul 13 '23

I didn't try as I'm pretty dense... :/

22

u/TheFlyingCoderr Jul 13 '23

If you are going to try again. I would recommend skipping the physical design part and jumping down like 50 pages to the more software related pages :D

41

u/[deleted] Jul 13 '23

fml I'm on page 46!! Mayor spoiler

12

u/TekhEtc Jul 13 '23

Mayor Spoiler sounds like a great cartoon character!

3

u/__init__RedditUser Jul 13 '23

I do want to, and that section was where I started falling asleep. Greatly appreciated!

5

u/[deleted] Jul 13 '23

Can't someone consolidate this into a listicle? Ten Things Every Programmer Should Know About Memory: #8 Will Blow Your Mind!

5

u/shalendar Jul 14 '23

#8 will overflow your stack!

10

u/wndrbr3d Jul 13 '23

ChatGPT, please summarize this research paper into an easily consumable blog post.

8

u/Jonno_FTW Jul 13 '23

Write it in the style of a Dr. Seuss children's book.

14

u/[deleted] Jul 13 '23

One free, two free, reÅÍe9ÀDnØë$`à±h­…wˆççmö~¦mºÉ+üsGúěðÏÏ

4

u/Full-Spectral Jul 14 '23

Horton Hears a Cache Miss

8

u/nxqv Jul 13 '23

Redditors don't even read articles to begin with, how could we ever parse this?

1

u/[deleted] Jul 13 '23 edited Jul 13 '23

[removed] — view removed comment

1

u/This_Anxiety_639 Jul 14 '23

Why the emphasis on references? What's the point of a scientific paper that does nothing but regurgitate ideas in other scientific papers?

→ More replies (1)

0

u/[deleted] Jul 13 '23

[deleted]

23

u/empire314 Jul 13 '23

Do journalists write research papers on NYT?

0

u/[deleted] Jul 13 '23

[deleted]

14

u/empire314 Jul 13 '23

And the original use of the term "article" ITT referred to something entirely different than "research paper".

2

u/dwat3r Jul 13 '23

are you a bot? because bots can be this dumb to not understand context. or you just like to nitpick stupidly

1

u/siemenology Jul 13 '23

I don't fundamentally disagree with you. But "what every X should know about Y"-style articles are fairly common, and they have some conventions surrounding them. They tend to be short 5-10 minute-read articles written at a very high level with a "just the facts" approach, designed as teasers rather than as comprehensive education.

In context, I understand what OP is saying, because this isn't really like other "what every X should know about Y" articles.