Skip to content
DevMeme
6982 of 7590
Virtual Memory Explained to a Medieval Peasant with Translation Lookaside Buffer
CS Fundamentals Post #7652 · source on Telegram

Virtual Memory Explained to a Medieval Peasant with Translation Lookaside Buffer

Description

An X/Twitter post from user 'tomie' (@tomieinlove) with a profile photo of someone in a beanie. The post presents a dialogue format explaining virtual memory concepts through a medieval peasant conversation. '(Me): so, we create this "virtual memory" to trick processes into thinking they have a contiguous address layout' followed by '(Medieval peasant): Would not thy abstraction swell the tally of mem'ry lookups?' and '(Me): well, yes. to deal with that we created the "translation lookaside buffer"'. The humor comes from the medieval peasant speaking in Old English but asking an astute and technically valid question about memory management overhead, and the increasingly convoluted naming of computer science solutions (TLB) that essentially just cache the abstraction layer's lookups to offset the performance penalty the abstraction introduced

Comments

8
Anonymous ★ Top Pick Every great CS solution is just a cache for the problem created by the previous abstraction layer. It's caches all the way down
  1. Anonymous ★ Top Pick

    Every great CS solution is just a cache for the problem created by the previous abstraction layer. It's caches all the way down

  2. @SamsonovAnton 6mo

    So, what's wrong? Abstraction layers (virtualization technologies) are created to facilitate frontend at the sake of backend complexity.

    1. @tema3210 6mo

      unless things compose really well and all the complexity fits into architecture

      1. @SamsonovAnton 6mo

        Oh, I'm pretty sure that things like virtual memory and other architectural stuff were composed really well — by people who knew how to make things effectively, not by vibe developers ignoring optimization matters.

    2. @FenFen 4mo

      ABSTRACTION?!

      1. @SamsonovAnton 4mo

        Yeah, ABS traction.

        1. @RiedleroD 4mo

          bruh

  3. @Agent1378 6mo

    It's in hardware and is optimized to the max

Use J and K for navigation