News for hackers. Stuff that matters.
Re:Ferret: An Experimental Clojure Compiler by markokocic on Thursday June 30, 2011 @09:50AM (#2713992)
Correct me if I'm wrong, but to me in looks more like a C++ code generation than real compiler.

I would like to see real effort to have Clojure on the bare metal, but that will probably have to wait until "Clojure in Clojure" get more priority on clojure core.

Re:Ferret: An Experimental Clojure Compiler by nakkaya on Thursday June 30, 2011 @10:15AM (#2714095)
This is how most Lisp compilers work. Gambit, Stalin, Chicken they all use C as the intermediate language. Currently this works on my MacBook, beagleboard and any avr microcontroller with enough ram and flash memory. If I were to use machine code I would have to output 3 completely different instructions sets.
Re:Ferret: An Experimental Clojure Compiler by CurtHagenlocher on Thursday June 30, 2011 @10:22AM (#2714123)
Have you considered LLVM?
Re:Ferret: An Experimental Clojure Compiler by sbt on Thursday June 30, 2011 @07:12PM (#2716133)
Compiling to LLVM is an interesting prospect, because if you could make the language dovetail nicely with, meaning compile functions into LLVM functions and use their datatypes fully you could presumably be highly interoperable with other languages(?). Sounds like it could be a serious departure from the Clojure standard though, but perhaps another Clojure inspired LISP. Still, LLVM won't give you a run-time, which seems to be the main problem.
Re:Ferret: An Experimental Clojure Compiler by nakkaya on Thursday June 30, 2011 @10:49AM (#2714235)
No, I didn't know there was a llvm backend for avr.
Re:Ferret: An Experimental Clojure Compiler by pwpwp on Thursday June 30, 2011 @10:53AM (#2714256)
Per Wikipedia, a compiler is "a computer program ... that transforms source code written in a programming language ... into another computer language".