Re:Steve Yegge v. Rich Hickey re: "Clojure just needs to sta...
by swannodette on Wednesday April 20, 2011 @01:14PM
(#2467457)
Consider how much powerful macros can be if you don't have to deal with out of order definitions.
[ Parent
| on HN ]
Re:Steve Yegge v. Rich Hickey re: "Clojure just needs to sta...
by m0th87 on Wednesday April 20, 2011 @02:22PM
(#2467730)
Macros are wonderful, but intuitively it seems very limited in scope wrt compile-time optimizations.
For example, how would you do dataflow analysis at compile-time (which is necessary for a plethora of optimizations) with just macros?
Re:Steve Yegge v. Rich Hickey re: "Clojure just needs to sta...
by swannodette on Wednesday April 20, 2011 @02:44PM
(#2467829)
JVM does that for you. However you're free to do all sorts of kinds of optimizations that the JVM simply can't do. Think about a in-memory logic engine that's running during compilation - you can introduce relations which influence how code further down the line is compiled via macros.