~/talk

Getting along with YAML comments with Psych

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

A small Ruby gem called psych-comments preserves YAML comments by extending the parser-level API (pars) around Psych/LibYAML using two-pass parsing to scan comments and a reimplemented emitter; the parser is about 100-line parser and the emitter about a 300-line generator. It handles extra hash marks, comments before delimiters, key/value pairs (keys become pair nodes) and sequence bullets attaching to elements, but cannot change the underlying C lib, keeps scope strictly to comments, and some PRs were withdrawn.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:15YAML processing basics
  3. 5:52Psych library levels
  4. 7:03Implementation approach
  5. 9:53Parser implementation details
  6. 12:10Generator implementation
  7. 14:07Problem with tag abuse
  8. 16:46Library scope decision
  9. 17:32Conclusion and future
  10. 18:47Q&A on comment attachment
  11. 21:23Limitations of YAML comments
  12. 23:09Comment support in other libraries
  13. 25:09Psych's role and maintenance
~/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.