~/talk

MRI Magic Tricks

Talkat Wicked Good Ruby 2013 · 2013-10-12..10-13· [ruby]
links:none on file
slides:none on file

Three concrete hacks and whether they actually work: frozen core extraction uses ObjectSpace and id2ref to find MRI’s hidden rubyvm frozen_core, exposes internal methods via a gem, and successfully aliases globals, reimplements hash_from_array and backports method-returning-name behavior (but can crash if used wrongly). superclass reassignment binds module initialize_copy to a class to change its superclass — it can mutate user and builtin class hierarchies but sometimes triggers segfaults. segfault rescue injects objects into $LOADED_FEATURES whose to_str raises a custom exception and so captures a crashing dump, allowing rescue in practice.

AI-written summary · about

  1. 0:00Introduction
  2. 1:18Overview
  3. 5:32Searching for Frozen Core
  4. 16:54Loading Features
  5. 21:13Bonus Round
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.