Skip to content

Instantly share code, notes, and snippets.

@bpiel
Created February 23, 2019 16:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bpiel/c5bc05abd081ae307039019a2f8ae58e to your computer and use it in GitHub Desktop.
Save bpiel/c5bc05abd081ae307039019a2f8ae58e to your computer and use it in GitHub Desktop.

http://www.paulgraham.com/thist.html

That standard religion I just gave you about "stop&copy only pays for the good stuff, but in mark&sweep you have to pay for the garbage, as well"? It's not true. We all believed it for decades. But Norman Ramsey at harvard has cleverly shown that you can implement mark&sweep with exactly the same asymptotic costs as stop&copy. This is good news especially for tight-memory systems with homogenous heap data. Norman's observation is really obvious and simple; hardly an impressive result when you see it. Except, uh, that it eluded everyone else for decades. And not because people didn't care; GC has received a lot of attention from researchers. There's a lesson there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment