Hi, On Jul 20, 3:48 pm, Mark Volkmann <[email protected]> wrote:
> I'm trying to understand what's going on here and whether the example > above demonstrates a real speed improvement. Isn't it the case that > fibb30* essentially computes the result before the timer on the last > line begins? That's essentially the idea. It moves computation from runtime to compilation time. Eg. a form like (let [x 5] (+ x 2)) can be reduced at compilation time to 7 and be basically replaced with that constant since everything you need to know to calculate the form is known at compile time. The C't (a german computer magazine) once made a competition. The "fastest" program was written in C. It basically printed a constant, because the whole computation was done via the pre-processor at compile time. :p Sincerely Meikel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
