Like Per says, if you want to compile Clojure to LLVM code that's
probably a huge project, have you looked at VMKit? I think that's a
JVM/CLR implementation based on LLVM, perhaps it could run Clojure?

If you just want to use LLVM from Clojure however, you can use my C
FFI clj-native with the C interface for LLVM. I actually made it
because I wanted to play around with LLVM but I never got around to
actually doing that again once I had a working version of clj-native.
It would be very interesting to see if clj-native is suitable for the
task.

http://github.com/bagucode/clj-native

/Markus

On 24 mar, 05:56, Per Vognsen <per.vogn...@gmail.com> wrote:
> Clojure depends on aggressive dynamic optimization for performance.
> It's a very different set of techniques than what is used in the
> ahead-of-time static compilation world from which LLVM hails. The
> Google guys working on Unladen Swallow seem to have had enough
> problems getting it to work well even as a basic JIT code generator;
> the layers of abstraction make it very slow. There's a good reason V8
> is using unlayered, direct code generation.
>
> In my judgement it would be a multi-year project for an experienced
> specialist in the field. Mike Pall took several years to do just the
> x86 version of LuaJIT 2.0, but he had already done LuaJIT 1.0, and he
> is arguably one of the world's top experts in this area.
>
> Besides, one of the Clojure's main raisons d'etre is the vast pool of
> existing libraries in the JVM (and now CLR) world to draw from.
>
> -Per
>
>
>
> On Wed, Mar 24, 2010 at 11:42 AM, Antony Blakey <antony.bla...@gmail.com> 
> wrote:
> > Has anyone looked at driving LLVM from Clojure and then doing code 
> > generation to LLVM? I've had some experience doing it in a JIT context for 
> > VisualWorks Smalltalk, but I'd rather not reinvent the wheel. I'd love to 
> > be able to use Clojure on the iPad.
>
> > Antony Blakey
> > -------------
> > CTO, Linkuistics Pty Ltd
> > Ph: 0438 840 787
>
> > Did you hear about the Buddhist who refused Novocain during a root canal?
> > His goal: transcend dental medication.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient with 
> > your first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/clojure?hl=en
>
> > To unsubscribe from this group, send email to 
> > clojure+unsubscribegooglegroups.com or reply to this email with the words 
> > "REMOVE ME" as the subject.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to