Fair enough - though my problem couldn't be fixed by caching, it could be inlined without too much pain. I just wanted to check I hadn't missed something - I'm still learning clojure bit by bit, and while it's fabulously well documented for such a new language, it's still easy to miss this sort of detail.
Really, if I wanted to micro-optimise something like this, I could write just these functions in Java, or in java assembler if I was really keen. ... which has a certain symmetry - my first ever mandelbrot set generator was written in C, with in-line assembler to optimise the core algorithms for the shiny new 80386 CPU! - Korny On Sat, Jan 24, 2009 at 8:04 AM, Albert Cardona <sapri...@gmail.com> wrote: > > >> >> Currently, there is no way to write a function that takes/returns >> primitives, all of the signatures are Object based. >> > > > And please keep them so! Turtles all the way down solves many, many > problems. > > For performance, whoever in need, just cache the int/float/double/etc. > values locally. > > Albert > > -- > Albert Cardona > http://albert.rierol.net > > > > > -- Kornelis Sietsma korny at my surname dot com kornys on gmail, twitter, facebook, etc. "Every jumbled pile of person has a thinking part that wonders what the part that isn't thinking isn't thinking of" --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---