Re: Natively Compiled Clojure

2013-02-12 Thread Aaron
I have been working on a library for ClojureCLR that actually uses a Clojure DSL to generate, compile, and load C code live into a running REPL. It's called c-in-clj (see https://github.com/aaronc/c-in-clj). It works quite well for me so far, but is still in what I would call Alpha stage. Ev

Re: Natively Compiled Clojure

2013-01-28 Thread Konrad Hinsen
Mikera writes: > On this general topic: the following project (VMKit) looks very interesting: > > - http://vmkit.llvm.org/index.html > > It basically implements a full JVM on top of LLVM, which should in theory be > sufficient > to run Clojure on the LLVM. I tried this a while ago and

Re: Natively Compiled Clojure

2013-01-28 Thread Paul deGrandis
I personally have no limitations with Clojure and the JVM for general development. Like Mark mentioned, I have a need to embed runtimes within C systems, with a small memory footprint (ideally less than 5 Mb) fast execution, and a solid FFI. Giving up some raw performance to get some benefits o

Re: Natively Compiled Clojure

2013-01-28 Thread Mikera
On Tuesday, 22 January 2013 00:29:54 UTC+8, octopusgrabbus wrote: On this general topic: the following project (VMKit) looks very interesting: - http://vmkit.llvm.org/index.html It basically implements a full JVM on top of LLVM, which should in theory be sufficient to run Clojure on the LLVM.

Re: Natively Compiled Clojure

2013-01-28 Thread Konrad Hinsen
Timothy Baldridge writes: > That's why I think it's a good idea to ask what the goals are for native > Clojure. The > ClojureScript and Clojure-Py options while nice both don't allow for a good > concurrency > story. On top of that, I'm not sure either of those would actually run on > iOS

Re: Natively Compiled Clojure

2013-01-27 Thread Mikera
On Monday, 28 January 2013 07:56:58 UTC+8, tbc++ wrote: > That's why I think it's a good idea to ask what the goals are for native > Clojure. The ClojureScript and Clojure-Py options while nice both don't > allow for a good concurrency story. On top of that, I'm not sure either of > those would

Re: Natively Compiled Clojure

2013-01-27 Thread AtKaaZ
although I'm sure everybody's seen this, I believe it is relevant here, this clojureconj by Chris Granger https://www.youtube.com/watch?v=V1Eu9vZaDYw maybe only applies to clojurescript(that is, being slow in this case) the important stuff is at from 13:59 On Mon, Jan 28, 2013 at 1:53 AM, Mark Ra

Re: Natively Compiled Clojure

2013-01-27 Thread Mark Rathwell
I haven't hit any hard limits at this point, but you hit on a use case where Python and Lua currently hit a sweet spot that I think would be nice to use Clojure: C/C++ systems that want to expose scripting capabilities to users (e.g. game engines, robotics systems). For these types of use cases,

Re: Natively Compiled Clojure

2013-01-27 Thread Timothy Baldridge
That's why I think it's a good idea to ask what the goals are for native Clojure. The ClojureScript and Clojure-Py options while nice both don't allow for a good concurrency story. On top of that, I'm not sure either of those would actually run on iOS. However, a pure, from-scratch option has a mu

Re: Natively Compiled Clojure

2013-01-27 Thread Paul deGrandis
Additionally, you might also consider ClojureScript itself. With a little work you could embed V8 into your application (https://developers.google.com/v8/embed). Martin Trojer just wrote a really nice blog post on embedded runtimes - http://martinsprogrammingblog.blogspot.co.uk/ All that said

Re: Natively Compiled Clojure

2013-01-27 Thread Mark Rathwell
On Sun, Jan 27, 2013 at 1:31 PM, Paul deGrandis wrote: > As far as embedding Clojure is concerned, another option is > ClojureScript-Lua + LuaJit + C. > I've recently started going through the CLJS-Lua source to see how viable > this is. Thanks, I had forgotten about ClojureScript-Lua. (And hope

Re: Natively Compiled Clojure

2013-01-27 Thread Paul deGrandis
gt; > >>> Check the clojure-py2 project, they plan to use LLVM to generate > native modules (as C compiled) for Python. When that objective is reached > probably you will have almost all the machinery to compile python-less > native binaries: > >>> > >>>

Re: Natively Compiled Clojure

2013-01-27 Thread Mark Rathwell
compile python-less native >>> binaries: >>> >>> http://lanyrd.com/2013/clojurewest/sccgmm/ >>> >>> >>> Saludos, >>> Nahuel Greco. >>> >>> >>> On Fri, Jan 25, 2013 at 12:18 PM, Marko Kocić wrote: >>

Re: Natively Compiled Clojure

2013-01-27 Thread Konrad Hinsen
Timothy Baldridge writes: > The important question to ask yourself (and I'll cover this in my talk), is > why do > you want native Clojure? ... > Interop with systems - Java has one of the biggest ecosystems on the planet The Java ecosystem is big but concentrated on some application domain

Re: Natively Compiled Clojure

2013-01-25 Thread John Gabriele
On Friday, January 25, 2013 11:28:32 AM UTC-5, tbc++ wrote: > > The important question to ask yourself (and I'll cover this in my talk), > is why do you want native Clojure? > > * easy direct access to C libs * fast startup time * minimal footprint Well, that's what would attract *me* to a

Re: Natively Compiled Clojure

2013-01-25 Thread Timothy Baldridge
n 25, 2013 at 12:18 PM, Marko Kocić wrote: >> >>> >>> >>> On Friday, January 25, 2013 6:12:07 AM UTC+1, Mikera wrote: >>>> >>>> A natively compiled Clojure would be very very interesting (perhaps >>>> targeting LLVM?) >>

Re: Natively Compiled Clojure

2013-01-25 Thread Tony Pitluga
> > Saludos, > Nahuel Greco. > > > On Fri, Jan 25, 2013 at 12:18 PM, Marko Kocić wrote: > >> >> >> On Friday, January 25, 2013 6:12:07 AM UTC+1, Mikera wrote: >>> >>> A natively compiled Clojure would be very very interesting (perhaps >>

Re: Natively Compiled Clojure

2013-01-25 Thread Nahuel Greco
. On Fri, Jan 25, 2013 at 12:18 PM, Marko Kocić wrote: > > > On Friday, January 25, 2013 6:12:07 AM UTC+1, Mikera wrote: >> >> A natively compiled Clojure would be very very interesting (perhaps >> targeting LLVM?) >> >> However it would also be very hard to im

Re: Natively Compiled Clojure

2013-01-25 Thread Marko Kocić
On Friday, January 25, 2013 6:12:07 AM UTC+1, Mikera wrote: > > A natively compiled Clojure would be very very interesting (perhaps > targeting LLVM?) > > However it would also be very hard to implement. Clojure depends on a lot > of features provided by the JVM (JIT compila

Re: Natively Compiled Clojure

2013-01-24 Thread Mikera
A natively compiled Clojure would be very very interesting (perhaps targeting LLVM?) However it would also be very hard to implement. Clojure depends on a lot of features provided by the JVM (JIT compilation, interop with Java libraries, garbage collection being the most significant ones). It

Re: Natively Compiled Clojure

2013-01-21 Thread Philip Potter
vely". What >>> >> problems have you encountered that pique your intrest in this area? >>> >> >>> >> Timothy >>> >> >>> >> >>> >> >>> >> >>> >> On Mon, Jan 21, 2013 at 9:29 AM, octopusg

Re: Natively Compiled Clojure

2013-01-21 Thread Bronsa
t;> your >> >> needs, why are you interested in making the code run "natively". What >> >> problems have you encountered that pique your intrest in this area? >> >> >> >> Timothy >> >> >> >> >> >> >> >&

Re: Natively Compiled Clojure

2013-01-21 Thread Chouser
n Mon, Jan 21, 2013 at 9:29 AM, octopusgrabbus > >> wrote: > >>> > >>> I use Clojure primarily as a very reliable tool to aid in data > >>> transformations, that is taking data in one application's database and > >>> transforming it

Re: Natively Compiled Clojure

2013-01-21 Thread Philip Potter
gt; >>> I use Clojure primarily as a very reliable tool to aid in data >>> transformations, that is taking data in one application's database and >>> transforming it into the format needed for another applications' database. >>> >>> So, my question is

Re: Natively Compiled Clojure

2013-01-21 Thread octopusgrabbus
Thanks. I took your link and posted it as a comment on stackoverflow. On Monday, January 21, 2013 1:15:05 PM UTC-5, Shantanu Kumar wrote: > > > What triggered this was this morning I saw something on > stackoverflow.comabout Clojure's possibly interacting with C code, and the > natively compiled

Re: Natively Compiled Clojure

2013-01-21 Thread Shantanu Kumar
> What triggered this was this morning I saw something on > stackoverflow.comabout Clojure's possibly interacting with C code, and the > natively compiled > question just popped into my head. Could Clojure-JNA help there, or is it some other use-case? https://github.com/Chouser/clojure-jna Shan

Re: Natively Compiled Clojure

2013-01-21 Thread octopusgrabbus
; On Mon, Jan 21, 2013 at 9:29 AM, octopusgrabbus > > > wrote: > >> I use Clojure primarily as a very reliable tool to aid in data >> transformations, that is taking data in one application's database and >> transforming it into the format needed for anothe

Re: Natively Compiled Clojure

2013-01-21 Thread Timothy Baldridge
te: > I use Clojure primarily as a very reliable tool to aid in data > transformations, that is taking data in one application's database and > transforming it into the format needed for another applications' database. > > So, my question is would a natively compiled C

Natively Compiled Clojure

2013-01-21 Thread octopusgrabbus
I use Clojure primarily as a very reliable tool to aid in data transformations, that is taking data in one application's database and transforming it into the format needed for another applications' database. So, my question is would a natively compiled Clojure make sense or turn the