~/talk

Building Ruby in Ruby

Talkat Rubyfuza 2018 · 2018-02-01..02-03· [ruby, compilers-and-language-design]
slides:none on file

Reimplements core bits of Ruby purely in Ruby: custom boolean objects with if_true/if_false methods that execute blocks and return self, and a Church-inspired natural number system built as successor/nested-number objects with zero at the base. Provides to_i conversion by applying an increment action through N layers, defines + by adding one nesting to another and * by repeated addition, and implements times as repeated block calls. Code is intentionally toy-level and labeled unsafe for production but yields addition, multiplication and repetition from a tiny object model.

AI-written summary · about

  1. 0:00Introduction
  2. 0:25Building Ruby with Ruby
  3. 1:54Smalltalk and booleans
  4. 3:38Implementing true and false
  5. 7:16Natural numbers concept
  6. 9:11Defining numbers in Ruby
  7. 13:09Number conversion and increment
  8. 15:45Addition and multiplication
  9. 17:15Times method in Ruby
  10. 17:57Q&A
~/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.