~/talk

Functional Ruby

Talkat Functional Conf 2025 · 2025-01-24..01-25· [ruby, functional-programming]
slides:none on file

Ruby supports closures (blocks, Procs, lambdas) and shows concrete differences: proc vs lambda arity and return behavior — lambdas enforce argument count and return only from themselves, procs fill missing args with nil and can return from the enclosing method. CRuby has a GIL and ~95% market share while JRuby runs on the JVM and calls Java. Immutability is shallow with freeze; hamster immutable collections return new vectors. Enumerable offers lazy, currying, pattern matching and handy methods like tally and method-to-object conversion via method and &.

AI-written summary · about

  1. 0:00Functional Ruby intro
  2. 1:08Ruby’s origins
  3. 2:11Ruby on JVM benefits
  4. 2:54Lisp features in Ruby
  5. 3:39Ruby code blocks
  6. 4:45How times works
  7. 5:49First-class functions
  8. 6:53Procs vs lambdas
  9. 8:16Lambdas and procs defined
  10. 9:20Arity differences
  11. 10:02Return behavior
  12. 11:06Call shorthand
  13. 11:49Duck typing callables
  14. 13:13Ruby immutability limits
  15. 13:53Freezing objects limits
  16. 14:57Hamster gem intro
  17. 15:38Hamster Vector chaining
  18. 16:01Methods to first-class
  19. 16:43Ruby Enumerable library
  20. 17:46Immutable Enumerable
  21. 18:07Lazy evaluation
~/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.