Is it possible to create parallel streams like in Java ? Looks very cool!
Apparently GPars should be included within groovy since version 1.8:
Fiji provides the version 2.4.8… but GPars is not included! Why ? I understand that it’s because groovy declares this dependency as optional (https://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html and https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all/2.4.8).
So unfortunately this dependency has to be declared explicitely (for instance in an ij2 java project uploaded in an update site).
I just discovered this library thanks to you, but in my opinion this library is useful in general for groovy scripting, independently of any plugin / update sites. I would thus vote to add it as a dependency directly in scijava. Somewhere here ?
Maybe create a PR ? But then who is suppose to decide whether to include it or not ? @ctrueden ?
I suppose one drawback of adding it is that it will make Fiji heavier by about a 1MB. If only 5 people use it, is it worth it ? And who’s deciding ? We vote ? Personally I’d vote for. I’d love to parallelize my groovy scripts, without having to drag and drop a jar file or having to activate an update site.
Outside of this specific gpars case, IMHO, I would not choose this option:
- I feel that it is unreliable in the medium/long term
- If you need to reinstall / or install fiji somewhere, you may forget to add this jar
- since IJ is very active, I’m worried that putting such a “lonely” jar could break other dependencies in a rather incomprehensible way when Fiji is updating
BUT, if it’s for a quick and dirty test, I’d definitely do it! Otherwise I’d choose the complex option: an update site with my personal customizations. I’d share this to anyone interested in some fancy exotic libraries.
Not sure I answered exactly your questions, but anyway, I learned many things