<div dir="ltr"><div>Hi Steffi & Tobias,</div><div><br></div><div>> I am happy to discuss it with Tobias in detail when I am in Dresden in</div><div>> two weeks.</div><div><br></div><div>Thanks! I agree that ImgLib2 core has been quite stable lately. Hopefully there are not too many more API changes needed before a 2.0.0 release.</div>

<div><br></div><div>One thing that has been less stable (and still needs more API changes) is the imglib2-meta package. It is becoming increasingly clear to me that the imglib2-meta and ij-data components are redundant and should be merged. We especially should not have both ImgPlus *and* Dataset. So I want to merge them and call it something like "imagej-core" (since the current "ij-core" has nothing to do with images specifically and will be migrating up to the SciJava layer [1]). Then it would be one less component for the ImgLib2 team to worry about maintaining.</div>

<div><br></div><div>As an added benefit, the current ImgLib2 ROI class hierarchy could also be migrated into this combined "imagej-core" component, since that one will *not* be coming out of beta in June. That will give us freedom to improve it dramatically over the next few months.</div>

<div><br></div><div>If bringing ImgLib2 core out of beta by June is too difficult, then we could instead do it when we meet in October. That would be a very nice target for a hackathon!</div><div><br></div><div>What do you guys think?<br>

</div><div><br></div><div>Regards,</div><div>Curtis</div><div><br></div><div>[1] <a href="http://imagej.net/pipermail/imagej-devel/2014-March/001996.html">http://imagej.net/pipermail/imagej-devel/2014-March/001996.html</a></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 8, 2014 at 10:54 PM, Stephan Preibisch <span dir="ltr"><<a href="mailto:preibischs@janelia.hhmi.org" target="_blank">preibischs@janelia.hhmi.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi guys,<div><br></div><div>I definitely see the need to fix ImgLib2 core for a release, but that really did not change much recently I feel -- maybe we finally need to define what the core should actually be, we started with that on the hackathon in Madison but never really finished.</div>

<div><br></div><div>I support Tobias's position, I have only used ImgLib2 recently, not done any development on it. So he has a much better perspective on it than I have. I am happy to discuss it with Tobias in detail when I am in Dresden in two weeks. We have to do software integration anyways.</div>

<div><br></div><div>Cheers,</div><div>Steffi</div><div><br><div><div><div class="h5"><div>On Apr 9, 2014, at 7:24 , Curtis Rueden wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr">Hi Tobias,<div>

<br></div><div>> <span style="font-family:arial,sans-serif;font-size:13px">I must have missed that. Can you send a link?</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>

</span></div><div><font face="arial, sans-serif"><a href="https://list.nih.gov/cgi-bin/wa.exe?A2=IMAGEJ;8570535e.1404" target="_blank">https://list.nih.gov/cgi-bin/wa.exe?A2=IMAGEJ;8570535e.1404</a></font><br></div><div>

<font face="arial, sans-serif"><br>

</font></div><div><font face="arial, sans-serif"><div>> I would just ask that Curtis or you explain for a half hour or so</div><div>> these magic release engineering helpers over skype.</div><div><br></div><div>Happy to do it, once it is all in place. Early progress is here:</div>



<div>* <a href="https://github.com/scijava/pom-scijava/compare/developer-profiles" target="_blank">https://github.com/scijava/pom-scijava/compare/developer-profiles</a></div><div>Though in general we are moving toward this:</div>

<div>* <a href="https://github.com/scijava/scijava-maven-plugin" target="_blank">https://github.com/scijava/scijava-maven-plugin</a></div>

<div><br></div><div>The idea being to have a Maven plugin that eliminates tediousness in various ways.</div><div><br></div><div>Unfortunately, developing this infrastructure cannot be our priority before June 1.</div><div>



<br></div><div><div>> My fear with splitting subprojects is that this will make it harder to</div><div>> consistently refactor across subprojects, (or clean up behind commits</div><div>> that don't), see this discussion</div>



<div>> <a href="https://github.com/imglib/imglib/pull/23" target="_blank">https://github.com/imglib/imglib/pull/23</a> (last 10 messages or so). How</div><div>> can we pull this off consistently?</div></div><div><br>

</div><div>That is a fair concern. However, as long as all affected projects are open in Eclipse, and coupled with project couplings at the time, the refactoring will cover everything. If someone does a refactoring while excluding a downstream project, the easiest solution I know to "fix it" later is to check out the old version of the code prior to performing the refactoring and reperform it with the project linkage in place this time.</div>



<div><br></div><div><div>> Also I image that we will require quite a bit more of "git logistics"</div><div>> with split projects. For example, assume that I want to make a new</div><div>> topic branch that touches more than one subproject (which easily</div>



<div>> happens when refactoring).</div></div><div><br></div><div>This is actually a larger concern to me. However, it comes down to how mature the project is. When you are in the incubation phase (pre-release), then these refactorings are common, and SNAPSHOT couplings with a multi-module Maven project are desirable. However, once you become released and stable, there is an increased need to maintain backwards compatibility. In that case, you really want to *avoid* those sorts of refactorings in the future. I mean sure, you can do them, but you must also maintain backwards compatibility, meaning that you leave the old API there too (often @Deprecated). In that common scenario, you probably actually want to alter only one project at a time, then make sure the changes in a "low-level" project like imglib2 core do not adversely affect downstream "higher-level" projects such as imglib2-realtransform.</div>



<div><br></div><div><div>> How will Jenkins deal with this decoupled situation: I will merge my</div><div>> topic branches into master in each of the subprojects sequentially.</div><div>> This will produce a lot of failing intermediate builds in Jenkins,</div>



<div>> right?</div></div><div><br></div><div>No, because each component is pinned to release versions of other components. So changing master of one component will have no effect on the Jenkins builds of other components. You would need to do a release of component A, then update component B's dependency to the new version of A, before the Jenkins build would be affected.</div>



<div><br></div><div>It is useful locally to pin a bunch of components together temporarily using SNAPSHOTs. But you never want that pin to make it onto the master branch, or else the build will be irreproducible. So one of our goals is to make it as easy as possible to toggle your local developer configuration between release and snapshot couplings, while simultaneously making it as difficult as possible to accidentally commit and push code that uses or requires the SNAPSHOT bindings to work.</div>



<div><br></div><div><div>> How about doing decoupled versions without splitting up the git</div><div>> repository? It seems to me that this would be an easy way to avoid the</div><div>> downsides mentioned before.</div>



</div><div><br></div><div>It would avoid some of them, and cause others...</div><div><br></div><div><div>> One more thing: If you want to bring imglib core out of beta, we</div><div>> should probably do a clean-up. There are things that are in core now,</div>



<div>> I would not consider ready for release (ROIs come to mind). So either</div><div>> we live with rapidly growing major version numbers due to frequent API</div><div>> breaks (fine with me) or split out the not-quite-ready parts into</div>



<div>> their own subprojects (also fine with me).</div></div><div><br></div><div>It is not a matter of "if" but "when". We simply cannot leave ImgLib2 in beta forever. That said, ImgLib2 does not need to be released before ImageJ 2.0.0's June 1 deadline, because that deadline has very limited scope. The new N-dimensional data model is not included with that. But we will need to bite the bullet eventually, possibly even later this year...</div>



<div><br></div><div><div>> either we live with rapidly growing major version numbers due to</div><div>> frequent API breaks (fine with me)</div></div><div><br></div><div>To a limited extent I am also fine with that. But I think we should impose a limit; e.g., "no more than one major release bump per year" or some such. Ideally much less often, if ever. Keep in mind that in a highly extensible framework like ImageJ, every breaking change can have enormous disruptive consequences. The fact that ImgLib2 is not stable and released with a guaranteed-not-to-break-later API has surely stunted its adoption. We can discuss and refine more as the projects continue to mature.</div>



</font><font face="arial, sans-serif"><div><br></div><div>Regards,</div><div>Curtis</div></font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 8, 2014 at 1:49 AM, Tobias Pietzsch <span dir="ltr"><<a href="mailto:pietzsch@mpi-cbg.de" target="_blank">pietzsch@mpi-cbg.de</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Johannes and Curtis,<div><br><div><div><blockquote type="cite">certainly you saw Curtis' recent mail about our plans for ImageJ2?<br>



</blockquote></div>I must have missed that. Can you send a link?<br><br></div><div>First of all: in principle, I have no problem with that if it is necessary.</div><div>I would just ask that Curtis or you explain for a half hour or so these magic release engineering helpers over skype. (It would by the way also be nice to know how this currently works. I have no idea, how I would do a "proper beta release" if I wanted to do so… I would appreciate some pointers to documentation or scripts etc.)</div>



<div><br></div><div>That being said, here are my concerns and questions:</div><div><br></div><div>My fear with splitting subprojects is that this will make it harder to consistently refactor across subprojects, (or clean up behind commits that don't), see this discussion <a href="https://github.com/imglib/imglib/pull/23" target="_blank">https://github.com/imglib/imglib/pull/23</a> (last 10 messages or so).</div>



<div>How can we pull this off consistently?</div><div><br></div><div>Also I image that we will require quite a bit more of "git logistics" with split projects. For example, assume that I want to make a new topic branch that touches more than one subproject (which easily happens when refactoring). Will I have to make topic branches in all subprojects? Is there a way to relate these other than manually by using the same branch names across projects, etc?</div>



<div>How will Jenkins deal with this decoupled situation: I will merge my topic branches into master in each of the subprojects sequentially. This will produce a lot of failing intermediate builds in Jenkins, right? I think this will complicate hunting down errors.</div>



<div>Overall, I'm a bit afraid of the additional overhead.</div><div><br></div><div>How about doing decoupled versions without splitting up the git repository? It seems to me that this would be an easy way to avoid the downsides mentioned before.</div>



<div><br></div><div><br></div><div>One more thing: If you want to bring imglib core out of beta, we should probably do a clean-up.</div><div>There are things that are in core now, I would not consider ready for release (ROIs come to mind).</div>



<div>So either we live with rapidly growing major version numbers due to frequent API breaks (fine with me) or split out the not-quite-ready parts into their own subprojects (also fine with me).</div><div><br></div><div>


Stephans, what do you think?</div>
<div><br></div><div><br></div><div>best regards,</div><div>Tobias</div><div><div><div><br><div><div>On Apr 7, 2014, at 11:06 PM, Johannes Schindelin <<a href="mailto:schindelin@wisc.edu" target="_blank">schindelin@wisc.edu</a>> wrote:</div>



<br><blockquote type="cite">Hi Tobias, Stephan & Stephan,<br><br>certainly you saw Curtis' recent mail about our plans for ImageJ2?<br>Basically, we want to release a version of ImageJ whose user interface<br>looks like ImageJ1, but internally uses all the goodies on which we worked<br>



so hard these past years.<br><br>That includes ImgLib2, of course, so we would need to bring parts of<br>ImgLib2 out of beta. In particular, we found it unwise to always version<br>all of ImgLib2 in unison. Rather, there should be releases of the<br>



individual components whenever there should be new releases: bug fixes,<br>API enhancements, API-breaking major new developments.<br><br>As always, Curtis & I are ready to help with all of that stuff, in<br>particular with helpers making release engineering close to fun. Our<br>



central goal in that respect is to make it as easy as possible to switch<br>between A) reproducible builds with release couplings; and B)<br>tightly-coupled builds with snapshot couplings for rapid development<br>across components.<br>



<br>The first step would be to break the multi-module ImgLib2 repository apart<br>(much in the way we split out imglib2-tests and friends, except that we<br>split out *all* of the individual projects). We do not see any other way<br>



to get only that part of ImgLib2 out of beta that we really need for the<br>ImageJ2 release...<br><br>Are you okay with that plan?<br><br>Ciao,<br>Dscho<br><br>P.S. We are planning to split up imagej.git in very much the same way.<br>



<br></blockquote></div><br></div></div></div></div></div></blockquote></div><br></div></div></div><div class="">
_______________________________________________<br>ImageJ-devel mailing list<br><a href="mailto:ImageJ-devel@imagej.net" target="_blank">ImageJ-devel@imagej.net</a><br><a href="http://imagej.net/mailman/listinfo/imagej-devel" target="_blank">http://imagej.net/mailman/listinfo/imagej-devel</a><br>

</div></blockquote></div><br></div></div></blockquote></div><br></div>