TANSTAAFL - Implementing Maglev Ruby on top of GemStone
summary
MagLev implements Ruby on top of the GemStone Smalltalk VM by adding a persistent root for reachability persistence, three-layer caching with per-send-site serials for lazy invalidation, and generated bridge methods to handle Ruby’s variable-arity calls; Rails boot time falls from ~5 minutes to under 15 seconds after fixes. Code and parsers evolved from MRI to a pure-Ruby parser to a C parser, MagLev is MIT-licensed and available on GitHub.
AI-written summary · about
chapters (12)
- 0:00Start
- 1:38Rob Heitman: The real reason to play with MagLev: "It's the free pony."
- 3:50class Rabbit def inspect
- 5:23Maglev:PERSISTENT_ROOT
- 16:05What is a Send Site?
- 16:48Send Sites
- 20:03What Invalidates the Cache?
- 21:14What was Rails doing?
- 29:24Smalltalk: . fed number of parameters per method
- 31:25Ruby Params
- 32:01Stack Frame
- 36:49At SEND time








