3 ms·
Not to refute your findings but it seems unfair to call commonly selected aberrations not hidden complexity and the Java memory model as such. The only things y
by karmakaze 7y ago
Not to refute your findings but it seems unfair to call commonly selected aberrations not hidden complexity and the Java memory model as such. The only things you can compare is the complexity inherent to the task vs that which is added by the choice of implementation which is subjective based on familiarity.
- willtim 7y agoI was calling out the Java memory model and concurrent programming in Java as being very complex. It's inherent to the language itself and almost impossible to change. I was only calling it "hidden" complexity as most people do not see an issue when writing single threaded programs. Concurrent programming I genuinely believe is easier in Haskell.
- karmakaze 7y agoAnd also using the java.util.concurrdent package sidesteps most foot-guns involving roll your own synchronization.
- willtim 7y agoPerhaps most, but not all. Even something as simple as a date formatter in Java is not thread-safe.
- dropofwill 7y agoThat was fixed with the Java 8 package java.time.format, https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html https://docs.oracle.com/javase/8/docs/api/java/time/format/D...
- willtim 7y agoOk bad example, but it shouldn't have taken them 15+ years to fix it.