~/talk

Representations Count

Talkat RubyConf AU 2019 · on Thursday, 2019-02-07· [ruby]

Demonstrates two Ruby implementations of signed numbers: a naive sign + size version that accumulates nested conditionals and special cases for positive and negative zero, and a second left/right stacks representation with factory methods that implements equality, +, -, < and × by flipping and dropping shapes. The stack version removes conditionals, gives infinitely many equivalent representations (so zero is no longer special), is shorter, and matches all IRB examples; repo and code examples are provided.

AI-written summary · about

  1. 0:00Intro
  2. 1:05The Problem
  3. 8:12Refactoring
  4. 12:05Consistency
  5. 13:12Spatial Reasoning
  6. 14:15Compositionality
  7. 21:07Conclusion
~/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.