~/talk

Beating Threads - live coding with real time

Talkat Strange Loop 2015 · 2015-09-24..09-26· [creative-coding]
slides:none on file

Sonic Pi implements a virtual time model and a custom sleep that keeps per-thread logical clocks in sync with real time, uses named threads plus live_loop to let code be redefined without spawning duplicates, and exposes cue/sync messaging so multiple loops align deterministically. Effects are handled by a with_fx block that scopes and tidies synths. It runs on Raspberry Pi with schedule‑ahead buffers (hundreds of ms) and demonstrably works for classrooms and live performances.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Playing Sleep
  3. 3:15Play 80
  4. 5:00Play 70
  5. 6:30Timing Model
  6. 11:15Timing Example
  7. 14:30Rebooting
  8. 20:15The log
  9. 26:30Logical clock
  10. 27:10Thread local variables
  11. 33:08Error sample
  12. 37:04Queue
  13. 38:35Final Demo
~/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.