~/talk

The Three-Encoding Problem

Talkat RubyConf Mini 2022 · 2022-11-15..11-17· [ruby]
slides:none on file

Claims Ruby ships more than 100 encodings and most apps actually touch three encodings: UTF-8 for literals, US-ASCII for converted numbers/symbols, and ASCII-8BIT/binary for IO. Demonstrations use Encoding.list, String#encoding, String#valid_encoding, String#encode with error handlers and the dangerous force_encoding hack. Measured surprises include how concatenation and compatibility checks can scan whole strings. Recent work in Ruby 3.2 adjusts the code range metadata and string concatenation logic to reduce those scans and measurably improve performance.

AI-written summary · about

  1. 0:00Start
  2. 5:14American Standard Code for Information Interchange
  3. 9:05Unicode Transformation Formats
  4. 13:17Transcoding Error: Undefined Conversion
  5. 14:38Handling Transcoding Errors
  6. 16:14Broken Strings
  7. 30:13Behavioral Impact
~/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.