News for hackers. Stuff that matters.
Re:Learning Clojure with Project Euler by zck on Tuesday September 22, 2009 @12:46PM (#837372)
This is interesting. I'd be interested to see the runtimes of these programs. It's fascinating to see how fast some of the most seemingly-complicated problems go. (It's also fun to use a programming language with unlimited-size integers, as I think Clojure has -- for an example, see problem 97. Arc just did the arithmetic in 44 milliseconds without me having to do any optimization.)
Re:Learning Clojure with Project Euler by cema on Tuesday September 22, 2009 @06:37PM (#838167)
Clojure promotes Integer's to Long's and BigInteger's, if needed. Compare (type 5) (type 555555555555) (type 55555555555555555555555555555555555555555555555555555555555)

The difference is thus visible to the programmer and can be controlled with type hints.