[ANN] ClojureC 0.1

2013-04-21 Thread Mark Probst
Dear Clojurians, I'm happy to announce ClojureC 0.1: https://github.com/schani/clojurec ClojureC is a Clojure to C compiler that's based off of ClojureScript. It's still in its infancy, not ready for real use, but at this point almost all of ClojureScript's core library has been ported - mo

Re: [ANN] ClojureC 0.1

2013-04-22 Thread Mark Probst
On Monday, April 22, 2013 6:18:56 PM UTC-7, John Gabriele wrote: > > I'm curious: what (if any) differences do you see happening between > Clojure(Script) and ClojureC? How close do you expect them to be? > I'd like them to be as close as reasonably possible. Some differences that exist today a

[ANN] ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Mark Probst
Dear Clojurians, I'm excited to announce ClojureC, an effort to produce a Clojure implementation that targets C: https://github.com/schani/clojurec My personal goals with this are to be able to write self-contained (command-line) Clojure programs that have (essentially) zero start-up time,

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Mark Probst
On Mon, Jul 9, 2012 at 4:05 PM, Paulo Pinto wrote: > A question that I also mentioned on the HN thread, any idea to bypass > C and > compile directly to native, for example via LLVM? No particular plans. Why would you prefer that? Mark -- You received this message because you are subscribed t

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Mark Probst
On Mon, Jul 9, 2012 at 4:44 PM, Timothy Baldridge wrote: >> No particular plans. Why would you prefer that? > > Simplicity for one thing, self hosting for another. Self-hosting is orthogonal to this question. In principle one can make the ClojureC compile run on ClojureC and be self-hosting. >

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Mark Probst
On Mon, Jul 9, 2012 at 5:47 PM, Paul Stadig wrote: > I checked out the code and followed the instructions to setup glib2 > and the GC. When I run `lein test` "I get Exception in thread "main" > java.io.FileNotFoundException: Could not locate clojurec/ > core__init.class or clojurec/core.clj on cla

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Mark Probst
On Mon, Jul 9, 2012 at 6:05 PM, Paul Stadig wrote: > On Mon, Jul 9, 2012 at 11:50 AM, Mark Probst wrote: >> On Mon, Jul 9, 2012 at 5:47 PM, Paul Stadig wrote: >>> I checked out the code and followed the instructions to setup glib2 >>> and the GC. When I run `lei

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Mark Probst
On Mon, Jul 9, 2012 at 6:58 PM, Paul Stadig wrote: > On Mon, Jul 9, 2012 at 12:12 PM, Paul Stadig wrote: >> On Mon, Jul 9, 2012 at 12:07 PM, Mark Probst wrote: >>> Yes. I'm sorry I forgot to mention that. Please let me know if it >>> works and I'll update

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-10 Thread Mark Probst
On Mon, Jul 9, 2012 at 7:03 PM, Adam King wrote: > However, thanks for your work on this! In the next couple of days, I'll > see if I can get it compiling and running under iOS. Wonderful! If you're interested in working on Objective-C interop, let me know - I have a few ideas. Mark -- You

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-10 Thread Mark Probst
Hey Adam, > I've spent a couple of hours on this - and have run into a snag. I've got > libgc compiling/linking with arm iOS and the Xcode project compiles cljc.c > fine. The problem is glib. From what I've read, iOS can not use glib as it > must be statically linked into the app - but the LGP

Re: [ANN] ClojureC - A Clojure to C compiler - Work in Progress

2012-07-11 Thread Mark Probst
On Wed, Jul 11, 2012 at 11:57 AM, John Szakmeister wrote: > Nice work! Are you looking to support multiple threads, STM, agents, > etc.? I've been debating on working on a native Clojure > implementation for a while, and that was one of my goals... I'm > interested if it's one of yours. Yes, it

Re: [ANN] ClojureC - A Clojure to C compiler - Work in Progress

2012-07-11 Thread Mark Probst
On Wed, Jul 11, 2012 at 3:05 PM, Timothy Baldridge wrote: >>> I've been debating on working on a native Clojure > > I've also been debating this for over two years now,y but I keep > coming back to the same problems over and over again: > > 1) A from-scratch native Clojure either needs to be just

Re: [ANN] ClojureC - A Clojure to C compiler - Work in Progress

2012-07-11 Thread Mark Probst
>>> 3) Unless you plan on staying strictly AOT, and igoring the REPL, then >>> we're going to need a JIT, that's not exactly something you can hack >>> together in an afternoon >> >> I don't follow. > > With a AOT compiler like this project, you don't have the ability to > play at a repl. I guess i

ICFP Contest in ClojureC

2012-07-13 Thread Mark Probst
Hey ho! If anybody's up for entering the ICFP programming contest http://icfpcontest2012.wordpress.com/task/ with a ClojureC program, email me mark.probst at gmail Obviously most of the work would be getting ClojureC up to the task :-) Mark -- You received this message because you are s

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-13 Thread Mark Probst
Adam, > Just a quick iOS update. I grabbed the latest from your git repo and from > my initial work at implementing the required glib methods that you're using, > I now have it running on both my iPad and iPhone4S. I don't look at the > glib source - I just google the missing function name and