<br><br><div class="gmail_quote">On Wed, Oct 5, 2011 at 12:29 AM, Talin <span dir="ltr"><<a href="mailto:viridia@gmail.com">viridia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Tue, Oct 4, 2011 at 5:08 PM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>></span> wrote:<br></div></div><div class="gmail_quote">
<div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div><br><div><div>On Oct 4, 2011, at 4:56 PM, Talin wrote:</div><br><blockquote type="cite"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">


<div>> LLVM isn't actually a virtual machine. It's widely acknoledged that the<br>> name "LLVM" is a historical artifact which doesn't reliably connote what<br>> LLVM actually grew to be. LLVM IR is a compiler IR.<br>


<br></div>It sounds like you're picking a very specific definition of what a VM is.  LLVM certainly isn't a high level virtual machine like Java, but that's exactly the feature that makes it a practical target for C-family languages.  It isn't LLVM's fault that people want LLVM to magically solve all of C's portability problems.<br>


<font color="#888888"><br></font></blockquote><div>I understand that the official goals of the LLVM project are carefully limited. A large number of LLVM users are perfectly happy to live within the envelope of what LLVM provides. At the same time, there are also a fair number of users who are aiming for things that appear to be just outside that envelope. These "near miss" users are looking at Java, at CLR, and constantly asking themselves "did I make the right decision betting on LLVM rather than these other platforms?" Unfortunately, there are frustratingly few choices available in this space, and LLVM happens to be "nearest" conceptually to what these users want to accomplish. But bridging the gap between where they want to go and where LLVM is headed is often quite a challenge, one that is measured in multiple man-years of effort.</div>


</span></blockquote></div><br></div><div>I completely agree, and I'm really interested in LLVM improving to solve these sorts of problems.  I'm not sure how this relates to Dan's email or my response though.</div>


<div><br></div></div></blockquote></div></div><div>Here's my position in a nutshell: The kind of things that Dan wants LLVM to do should really be a separate sub-project from LLVM proper, built on top of LLVM. I think it's unrealistic to expect LLVM proper to adopt Dan's stated objectives - but at the same time, it would be a awful shame if there wasn't something that could meet his needs, since I think many people other than Dan would benefit from such a thing.</div>


<div><br></div><div>For example, I don't expect that LLVM IR should suddenly become stable and usable as an archive format, but I think it entirely reasonable that someone could come up with a higher-level IR, translatable into LLVM IR, that does have those qualities. The fact that we have projects that convert JVM bytecode into LLVM IR is proof that such a thing is possible. (Except that any language implementer willing to live with the limitations of the JVM probably wouldn't be on this mailing list to begin with, but I digress.)</div>


<div><br></div><div>The question I am interested in exploring is whether the goals of the "near miss" users of LLVM are similar enough to each other to be worth having a conversation about how to achieve those goals collaboratively, or whether it is better that we should each continue to struggle with our own problems individually.</div>


<div></div></div><div><br></div><font color="#888888">-- <br>-- Talin<br>
</font><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div>As a would-be language implementer, I see a few choices:<div><br></div><div>JVM: Severe restrictions on generated code, no structs or stack objects or pass-by-reference of stack values, heavy runtime that generated code must run inside of, strict type hierarchy, very little control over optimization.</div>
<div>CLR: Lags behind the JVM on non-Microsoft platforms.  Also a heavy runtime.  However, it has more flexibility in its generated code.</div><div>LLVM: Much, much more flexibility and optimization hooks than either JVM or CLR, but with piecemeal GC support, ABI complications, portability issues, JIT issues, and all the rest.</div>
<div><br></div><div>From what I can tell, there's a *huge* gap between LLVM on the one hand and JVM/CLR on the other... and having *something* in that gap would allow/encourage the development of a huge array of useful languages and runtimes that don't exist right now.</div>
<div><br></div><div>It seems far more plausible to me for LLVM to evolve into that "something" than for the JVM or CLR to do so.</div>