2. Agenda
• Intro til Clojure
- Alf Kristian Støyle
• Inkrementell utvikling med Clojure, Emacs og SLIME
- Stig Henriksen
• Clojure STM
- Ole Christian Rynning
• Eratosthenes' sil: et eventyr om optimalisering
- Bodil Stokke
69. Read-compile-evaluate
1. Tekst konverteres til forms
2. Forms blir konvertert til bytekode av
compiler
3. Dersom compiler finner en makro,
ekspander makro og begynn på 1.
4. Bytekode evalueres
73. Makroer
• The two rules of the macro club
Programming Clojure - Stuart Halloway 2009
74. Makroer
• The two rules of the macro club
1. Don’t write macros.
Programming Clojure - Stuart Halloway 2009
75. Makroer
• The two rules of the macro club
1. Don’t write macros.
2. Only write macros if that is the only way to
encapsulate a pattern.
Programming Clojure - Stuart Halloway 2009
76. Makroer
• The two rules of the macro club
1. Don’t write macros.
2. Only write macros if that is the only way to
encapsulate a pattern.
3. You can write any macro that makes life
easier for your callers when compared
with an equivalent function.
Programming Clojure - Stuart Halloway 2009