Re:Typed Clojure Game of Life
by logan-campbell on Thursday October 03, 2013 @08:28PM
(#6493043)
The code is up at https://github.com/logaan/typed-game-of-life and I'd be very happy to accept a pull request with a Java example. I've done a few side by side comparisons of Clojure / Scala / Java and the Java has always been several times larger than Cloure / Scala. In a couple of cases it was 20-30x larger.
Java 8 may indeed improve this situation. Does it also introduce higher order functions for working with collections?
Re:Typed Clojure Game of Life
by breckinloggins on Thursday October 03, 2013 @10:20PM
(#6493370)
Yes, through the Stream API.
Re:Typed Clojure Game of Life
by logan-campbell on Thursday October 03, 2013 @11:02PM
(#6493485)
Sweet.
I'm a big fan of Clojure and don't have much love for Java, but this is a little unfair. I especially think doing a Java 8 version with lambdas would be an interesting comparison.