~/talk

Ruby Taught Me About Encoding Under the Hood

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

Reports an IRB crash caused by a family emoji that is actually 7 code points long; fixes move from counting code points to treating user-visible characters as a grapheme cluster, preventing backspace misalignment. Upgrades Ruby’s Unicode data to 15.1 and adds IndicConjunctBreak, regenerates tables with Enc::Unicode.rb, and patches the regex engine by emitting a combined Onigumo node for extended grapheme rules. Merge succeeds into Ruby 3.5 but Unicode 16.0.0 normalization tests still fail.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 3:32History of text encoding
  3. 16:19Encounter with EBCDIC
  4. 24:01Byte count pitfalls in Ruby
  5. 31:43Unicode and grapheme clusters
  6. 36:37Upgrading Ruby to Unicode 15.1.0
  7. 45:22Unicode 16.0.0 challenges
  8. 49:35Closing remarks and thanks
~/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.