4 ms·
Stuff that Quasar leverages (or will leverage), I gather? :) Any more details to share about the differences? Something that Go could readily learn from? :)
by samuell 9y ago
Stuff that Quasar leverages (or will leverage), I gather? :)
Any more details to share about the differences? Something that Go could readily learn from? :)
- pron 9y agoNot just Quasar, but pretty much any high-level concurrency framework (Akka uses it, too). Doug's algorithm is lock-free (except in some marginal features, that are not supported and not relevant for the Go implementation anyway) and displays exceptional scalability even on machines with a large number of cores. AFAICT, Go could copy Doug's implementation completely.
- geodel 9y agoOfcourse. And Oracle would be so pleased with that like they always are with Google copying Oracle code. [1] 1. https://www.theverge.com/2012/4/19/2961128/google-chief-java-architect-likely-i-copied-sun-code-in-android https://www.theverge.com/2012/4/19/2961128/google-chief-java...
- pron 9y agoI am not aware of any lawsuits involving Oracle over code used in accordance with its license. The Google lawsuit was over code that Google believed the license did not apply to, and they could therefore use not in accordance with the terms. In any event, the license of Doug Lea's code is creative commons.
- RossBencina 9y agoIt's not even Creative Commons, it's CC-zero, which is public domain or as close as it gets. Strangely, the file that you linked has a GPL overlay: /* * This file is available under and governed by the GNU General Public * License version 2 only, as published by the Free Software Foundation. * However, the following notice accompanied the original version of this * file: * * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at * http://creativecommons.org/publicdomain/zero/1.0/ */ https://github.com/netroby/jdk9-dev/blob/master/jdk/src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java#L25 https://github.com/netroby/jdk9-dev/blob/master/jdk/src/java... I wonder where the original CC-zero version is located.
- pron 9y agohttp://g.oswego.edu/dl/concurrency-interest/ http://g.oswego.edu/dl/concurrency-interest/