4 ms·
A lesson I learned long ago is that if something isn't fun, I need to turn it into a compiler. I want to frame this sentence and hang it on my wall.
by skrebbel 3y ago
A lesson I learned long ago is that if something isn't fun, I need to turn it into a compiler.
I want to frame this sentence and hang it on my wall.
- ThePowerOfFuet 3y agoDon't let your dreams be dreams.
- Cthulhu_ 3y agoYesterday you said tomorrow, so just do it
- packetlost 3y agoDo we consider macros compilers now? :)
- bjoli 3y agoI would say yes. A compiler takes code and produces different code. Maybe in another language. I wouldnt call a simple anaphoric if a compiler, but I wrote this: https://git.sr.ht/~bjoli/goof-loop https://git.sr.ht/~bjoli/goof-loop and it specifies a new loop construct for scheme. It takes code conforming to a grammar and produces standard scheme code while also generating loop code, temporary variables, identifiers and all that jazz. It even transforms the code using CPS. That is what you get for writing complex macros in syntax-rules I guess.