<div dir="ltr">+1 from me.  I think this is a great idea.  A few things I've been thinking about recently:<br><div><br></div><div>1) What are best practices for developing 'out-of-tree' projects like this?  In addition to coding guidelines, code of conduct, etc., these projects would probably benefit from common structures on cmake integration (e.g LLVM_EXTERNAL_PROJECT vs. live in llvm/projects vs. cmake configuration export?), buildbots, and code review.  Of course projects should probably be allowed approach these things in new ways if they desire.</div><div><br></div><div>2) Managing dependencies is often tricky, and could arise between several incubated projects.  Even the 'simple' dependency on LLVM can be tricky to manage.  I've often done this by using git-submodules, but this is far from perfect.  Some projects put effort into supporting lots of different LLVM versions, with varying levels of success.</div><div><br></div><div>3) Some LLVM projects have nice extensibility interfaces (e.g. "Targets") which are relatively easy to live out of tree.  Others LLVM projects lack such well-defined interfaces and commonly result in merge conflicts.   Some projects could be relatively tightly integrated, whereas others (MLIR) might not.</div><div><br></div><div>Steve</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 20, 2020 at 3:43 PM Chris Lattner via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi all,<div><br></div><div>Today, we maintain a high bar for getting a new subproject into LLVM: first a subproject has to be built far enough along to “prove its worth” to be part of the LLVM monorepo (e.g. demonstrate community, etc).  Once conceptually approved, it needs to follow all of the policies and practices expected by an LLVM subproject.</div><div><br></div><div>This is problematic for a couple reasons: it implicitly means that projects have to start *somewhere else* but proactively decide to follow LLVM design methodology and principles in the hope of being accepted.  It is sometimes socially difficult to get these projects going because there are many other forces that could encourage other practices.  For example, I personally encountered this at Google with MLIR - “why aren’t you using Google coding standards?”, several of us are currently discussing this in a new skunkworks project in the “compilers for hardware” world, and the Flang and other projects have found this challenging in the past.  Once the project gets to a point of critical mass with the “wrong” approach, it is very difficult and expensive to convert to the LLVM style, and from a social perspective, inertia sometimes leads to forking off to separate projects instead of folding back in to LLVM.</div><div><br></div><div>A former colleague recently suggested the idea of introducing an incubator process of some sort (e.g. xref the <a href="https://incubator.apache.org/" target="_blank">Apache version of this idea</a>).  I think this is a really interesting idea, and it is much easier now that the majority of the “official” code is in the LLVM monorepo.</div><div><br></div><div>Here is a sketch of how this could work:</div><div><br></div><div> - We maintain the same high bar to get into the LLVM monorepo, LLVM CI etc.  No change here.</div><div><br></div><div> - We have a very light-weight proposal process that allows people to create incubator projects in the LLVM organization, with no code up front.  The project would be required to have e.g. a charter document and README.</div><div><br></div><div> - Such projects are required to follow the LLVM developer policy, coding standards, CoC, etc, but can define their own stability and evolution process, code owners, etc.</div><div><br></div><div> - When the project is ready to graduate, it would follow the existing process for becoming a first-class part of the mono repo.</div><div><br></div><div> - We have some policy on when to retire/delete projects, which can be ironed out the first time it comes up (e.g. start with a nomination).</div><div><br></div><div> - We could even try to help encourage new projects to include a ‘mentor’ that has experience with the LLVM project to help nudge things in the right direction and encourage proper development approach.</div><div><br></div><div>What do you think?  Is anyone interested in helping to write up a more detailed proposal?</div><div><br></div><div>-Chris</div><div><br></div><div><br></div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>