~/talk

Continuation is to be continued

Talkat RubyKaigi 2025 · 2025-04-16..04-18· [ruby]
links:none on file
slides:none on file

Explains that Ruby’s call/cc uses memcpy plus setjmp/longjmp to copy whole stacks and that makes DSL backtracking awkward; implements a backtracking DSL (Haskell list-monad style) by transplanting shift/reset with a thread-local continuation stack into Ruby, which limits copied frames and lets bind use flat_map-style continuations. A metaprogrammed interpreter runs ~0.5s versus a 0.14s pure-list version (≈3× slower), while the shift/reset prototype is faster and a CRuby native extension is added though full benchmarks are pending.

AI-written summary · about

  1. 0:00Introduction
  2. 1:01What is continuation
  3. 6:12DSL with callcc
  4. 12:43Problems with callcc
  5. 19:16Shift-reset explained
  6. 26:39Summary and future
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.