Writing Weird Code
summary
Implemented IRB completion using type functions and activated via irb --type-completor; a Quine animation makes every frame an executable state and uses bubble positions to recover frame in a 960-frame loop; a 180×138 bitmap hides Ruby in the LSB of RGB bytes after __END__ and decodes to produce 3D ASCII art; a jellyfish demo uses Ractor to run parallel tentacle physics (simultaneous equations), drives CPU to ~240–250% and accepts mouse input; a browser demo uses ruby.wasm with a Sinatra capture API to render 450 frames at 30fps, then ffmpeg stitches them into video.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker intro
- 5:18What is weird code
- 10:36Ruby syntax quirks and readability
- 18:35Pseudo-syntax and DSLs in Ruby
- 22:37Daily weird code and its effects
- 22:57TRICK 2024 and Okinawa theme
- 24:11Most floral code: bitmap Ruby script
- 27:06Most fresh code: Ruby in browser
- 33:36Most wavy code: animation Quine
- 36:13Most dangerous code: jellyfish physics
- 42:15Most Kaigi-ish code: IRB customization
- 45:28Most eternal code: Minsa weaving
- 50:05Closing and acknowledgments
related talks
39mEsoteric, Obfuscated, Artistic Programming in Ruby
35mEsoteric, Obfuscated, Artistic Programming in Ruby
38mCode Calligrams
27mTranscendental Programming in Ruby
49mThat Works?! Quines and Other Delightfully Useless Programs
30mAn Invitation to TRICK: How to write weird Ruby programs
34mReimagining 2D graphics and game development with Ruby
29mSmalruby: Visualizing Ruby with Bidirectional Transpiration
