~/talk

Squeezing Unicode Names into Ruby Regular Expressions

Talkat RubyKaigi 2024 · 2024-05-15..05-17· [ruby, web-platform]
slides:none on file

Implements Unicode name → code point lookup in Ruby and integrates it with regular expressions and String, using tries and radix branches and aggressive bit-packing of nodes so many leaves store code points inline; detects and encodes algorithmic name ranges (Hangul, braille, etc.) instead of listing every name. The implementation passes full Unicode tests, runs about 300k lookups/sec, uses roughly 410 KB of runtime data, and is available on GitHub.

AI-written summary · about

  1. 0:00Introduction
  2. 2:17Unicode properties in regex
  3. 5:05Limitations of current Unicode support
  4. 10:24Need for name-to-codepoint lookup
  5. 11:29Building a trie for Unicode names
  6. 16:24Optimizing the trie structure
  7. 22:25Radix trees for compact storage
  8. 25:59Algorithmically defined names
  9. 27:49Performance and memory usage
  10. 29:15Summary and future work
  11. 30:18Acknowledgements and Q&A
~/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.