Bits, Bytes, and Blobs
summary
Uses pack/unpack, network byte order and Force_encoding 'binary' to talk to existing protocols, avoids extra strings to limit GC pressure, and uses constants for fixed 24-byte header layouts. A pure Ruby mcash client packs requests into only two heap objects per send and achieves 15,000 ops/sec (~0.06 ms/op). Code generators (AMQP JSON spec, Thrift, protobuf) reduce developer work. A demo sends OSC messages via oscul to aeton live and successfully triggers an arpeggiator.
AI-written summary · about
chapters (11)
- 0:00Bits Bytes and Blobs intro
- 2:07Interoperating with systems
- 4:17Bits in Ruby
- 9:37Bytes in Ruby
- 13:13Binary IO
- 14:20Packing blobs
- 20:01Optimizing Ruby
- 27:47Balancing performance and developer experience
- 31:37Code generation
- 34:08Fun with Open Sound Control in Ruby
- 45:51Q&A








