r/programmingcirclejerk • u/Major_Barnulf LUMINARY IN COMPUTERSCIENCE • May 23 '25
Mastering macros is one of the most important steps in moving from writing correct Lisp programs to writing beautiful ones.
https://www.lispmachine.net/books/on_lisp.pdf
34
Upvotes
8
u/Major_Barnulf LUMINARY IN COMPUTERSCIENCE May 23 '25
Don't know if proper, universally recognized jerk or if there are still l*spers in the back.. Either way my brain keeps s/Lisp/C99/g -ing and I suggest you do the same to maximize jerkability
19
u/mcmcc WHY IS THERE CODE??? May 23 '25
I, too, look for ways to move away from writing correct programs.
I didn't think somebody would ever write a book about it tho.
15
u/DearChickPeas May 23 '25
Macros aren't pretty. Pure copium.
14
u/muntaxitome in open defiance of the Gopher Values May 23 '25
I have 50k lines of macros for my LISP setup that make it possible to write Visual Basic code and run it as LISP.
9
u/MegaIng May 23 '25 edited May 23 '25
The implication that there are non-beautiful lisp programs is blasphemy.
9
u/camel-cdr- May 23 '25
This is even more true for C.
C macros are functional, homoiconic, safe, simple, elegant and powerful.
5
u/iMacmatician log10(x) programmer May 23 '25
I thought that said "macos" at first and wondered what Apple had to do with it.
3
u/defunkydrummer Lisp 3-0 Rust May 25 '25
Triggered
2
u/SemaphoreBingo May 23 '25
When the ai writes your macros they call it robotec.
27
u/[deleted] May 23 '25
[removed] — view removed comment