Kuuki ga "Yomeru" Shinnyushain to Buaiso na Senpai no Hanashi (Serialization) - Vol. 1 Ch. 7

Dex-chan lover
Joined
Jan 18, 2018
Messages
18,327
The memory/bakery analogy apparently dates back to 1974, though I cannot say I fully comprehend it myself.
https://en.wikipedia.org/wiki/Lamport's_bakery_algorithm
http://lamport.azurewebsites.net/pubs/pubs.html#bakery
That doesn't seem to have much to do with the bakery metaphor in this chapter. But perhaps the author had heard of that algrithm/metaphor from the 70's and thought it would give some historical weight to the nonsense metaphor in the chapter. That being said, the whole thing is so esoteric that I doubt one in a thousand reader would have known about it. It seems like quite low level stuff, so most programmers today wouldn't need to consciously care about it, I'd say.
 
Dex-chan lover
Joined
Nov 17, 2020
Messages
695
@ZeeVee true... i think i go from understand a little bit about computer to ???
I think it's cuz the analogy doesn't actually connect the thing he asked for (memory) with MC's answer (storage)

Maybe something like:
Let's say you're working at a bakery making buns. You have a work table where you actually make the buns and storage racks where you store buns at various stages of doneness. You describe both in terms of the number of buns they can hold.

It's easy to work with buns on the work table, but the table can only be so big. Meanwhile, you have to take buns out of the storage racks if you want to work with them, but the racks can usually hold way more buns than a work table. Maybe a standard bakery would have a worktable that could hold 4 dozen buns and storage racks that could hold 250 dozen buns.

Moving on, let's say you noticed that your bakery isn't making buns very quickly. Maybe the problem's that your worktable can't hold enough buns. You might need to make the table bigger or check to see if there's stuff you don't need right now cluttering it up.

Analogy in the chapter is more about memory and CPU cores
 

Users who are viewing this thread

Top