3 ms·
So, rather than reinvent the wheel, I just ported the Clojure collections over, added generics and made them more Java-ery [1] In the Clojure world, (and indee
by bobm_kite9 11y ago
So, rather than reinvent the wheel, I just ported the Clojure collections over, added generics and made them more Java-ery [1]
In the Clojure world, (and indeed in Haskell and other pure-fp languages) there is a lot more garbage collection. Rich Hickey makes a great case for this trade off here [2].
On the JVM now very little of it is stop-the-world GC, it mostly does incremental. It's been a while since I profiled a Java app in anger, but even back on JDK5 this was the case, and I know they changed it significantly in JDK7 to the G1 collector.. anyone have a clue about that?
[1] https://github.com/robmoffat/pure4j/blob/master/docs/tutorial_collections.md https://github.com/robmoffat/pure4j/blob/master/docs/tutoria...
[2] http://www.infoq.com/presentations/Value-Values http://www.infoq.com/presentations/Value-Values
[3] http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/G1GettingStarted/index.html http://www.oracle.com/webfolder/technetwork/tutorials/obe/ja...