Re: What is the status of Clojure on LLVM or C?

2013-05-30 Thread Dax Fohl
(or the slightly hackier but probably easier version: create a tool that translates a subset of Clojure to RPython) On Friday, May 31, 2013 10:26:56 AM UTC+8, Dax Fohl wrote: > > So what I'm gathering (I'm still trying to grok) is that clojure-metal is > an approach that some

Re: What is the status of Clojure on LLVM or C?

2013-05-30 Thread Dax Fohl
So what I'm gathering (I'm still trying to grok) is that clojure-metal is an approach that somewhat parallels PyPy, except in Clojure, and except that instead of defining a type-inferrable subset RClojure, you instead define an internal DSL via mjolnir that allows you to specify the types withi

Re: What is the status of Clojure on LLVM or C?

2013-05-30 Thread Dax Fohl
So what do you see as the advantage in going the clojure-metal path? Is it that RPython is such a pain to debug that it ends up not being worth it in the end? Is the tradeoff essentially being able to do things exactly how you want in LLVM versus having to put up with warts that might not quit

Re: What is the status of Clojure on LLVM or C?

2013-05-30 Thread Dax Fohl
wrote: > > 2013/5/30 Dax Fohl > > >> Am I missing something? What are the downsides of this approach? > > > is RPython garbage collected? Key ideas in Clojure pretty much assume > memory management is not something you > have to worry about. > > What about co

Re: What is the status of Clojure on LLVM or C?

2013-05-29 Thread Dax Fohl
Would an alternate approach be to write a Clojure interpreter in RPython and have the PyPy toolchain create everything for you? That way you get an interpreter with a tracing JIT for free, plus it looks like they've got STM working now. It seems like that could save a lot of work. Am I missin

Re: Clojure on PyPy

2012-08-27 Thread Dax Fohl
Wow I can't believe my silly question actually led to a whole independent project! On Friday, February 10, 2012 9:36:53 AM UTC-6, tbc++ wrote: > > >> I have some set of algorithms that needs such-and-such operations to > be as fast as possible. Can I create a VM that is tailored for that? > > Yes

Clojure on PyPy

2011-11-16 Thread Dax Fohl
Would Clojure have anything to gain by having something like PyPy's JIT-generator create a custom JIT for it, a'la http://morepypy.blogspot.com/2011/04/tutorial-part-2-adding-jit.html? Or does the JVM already do the stuff that is mentioned in that article? (Or does none of that stuff apply to Cloj