3 ms·
> I couldn't bring myself to do a Java version but I'd expect it to be several times larger I'm a big fan of Clojure and don't have much love for Java, but thi
by breckinloggins 13y ago
> I couldn't bring myself to do a Java version but I'd expect it to be several times larger
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.
- logan-campbell 13y agoThe code is up at https://github.com/logaan/typed-game-of-life 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?
- breckinloggins 13y agoYes, through the Stream API.
- logan-campbell 13y agoSweet.