Being Matz for a day

Being Matz for a day

Bending the Ruby language with AST transforms. Black magic ahead! Given at the Ruby User Group Berlin the 5th of December 2013.

3db71281264f6125e764d9f3788301e0?s=128

Josep M. Bach (Txus)

December 05, 2013
Tweet

Transcript

  1. BEING MATZ FOR A DAY Ruby User Group Berlin 5th

    December 2013
  2. TXUS

  3. BARCELONA / BERLIN

  4. None
  5. YUKI HIRO
 MATSU MOTO illustration by _why, photo by rooreynolds

    https://secure.flickr.com/photos/rooreynolds/243810988/
  6. WHY?

  7. ࢲ͸͋ͨΛ ચ೴

  8. LANGUAGE EXPANSION MIND

  9. AST RECAP foo.rb a = 42 AST = a 42

    BYTECODE push_int 42 set_local 0
  10. AST TRANSFORMS A B C A B C’

  11. BLACK MAGIC SYNTACTIC SUGAR RUBINIUS-MEMOIZE

  12. BLACK MAGIC

  13. BLACK MAGIC SYNTACTIC SUGAR RUBINIUS-MEMOIZE

  14. SYNTACTIC SUGAR

  15. SYNTACTIC SUGAR

  16. BLACK MAGIC SYNTACTIC SUGAR RUBINIUS-MEMOIZE

  17. None
  18. None
  19. None
  20. None
  21. None
  22. None
  23. THANKS!QUESTIONS? twitter.com/txustice github.com/txus github.com/txus/rubinius-memoize