On Jun 28, 2:47 am, Meikel Brandmeyer <m...@kotka.de> wrote: > Hi, > > Am 28.06.2009 um 07:53 schrieb Handkea fumosa: > > > The recur arg in question is (+ (* G__12815 G__12815) (* G__12817 > > G__12816 G__12816) G__12819) all of whose operands are doubles. > > > This seems buggy. > > Yes, that seems ominous. I'm not doing much > number crunching (read: I don't need tight loops > with primitives), so I can't really tell, why it > doesn't work. > > > (If you're asking why the meaningless names, it's because this is > > actually adapted from the output of macroexpand-1. I have a macro to > > turn symbolic mathematical expressions into optimized iteration loops. > > It's not ready for prime-time yet; besides this problem, it doesn't do > > common subexpression elimination, so for instance there's two of (* > > G__12815 G__12815) in there. > > I don't know, how your macro looks like, but maybe > you can use the # notation: c-r# will give you something > like c-r__123.
It's generating pretty much all of the code by list processing of various kinds. I don't have `(loop [foo ~bar baz ~quux] ~...@body) type stuff, I have stuff like `(loop ~(vec (interleave (repeatedly #(gensym)) initial-values)) ~...@body) :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---