Re: clojure code to java

2014-05-01 Thread Atamert Ölçgen
Hi Julio, There is a difference between `converting Clojure code to Java code` and `compiling Clojure into .class files`. Can you clarify which one are you trying to accomplish? Also if you can provide some more context we might be able to make better suggestions. On Thu, May 1, 2014 at 4:56 AM

Re: clojure code to java

2014-05-01 Thread Phillip Lord
Really, try procyon. Of course, it depends on whether you mean "java code that you can look at, and get an idea of what is going on easier than looking at bytecode", or "java code that you can compile to get the same thing that you decompiled". The latter no, but the former works. Phil Alex Mil

Re: clojure code to java

2014-05-01 Thread Alex Miller
In general, the bytecode the Clojure compiler produces is not directly transformable back into Java source by any decompiler I'm aware of. On Wednesday, April 30, 2014 11:56:08 PM UTC-5, Andy Fingerhut wrote: > > Leiningen can convert Clojure source code to Java .class files (compiled > Java by

Re: clojure code to java

2014-05-01 Thread Phillip Lord
I've used procyon https://bitbucket.org/mstrobel/procyon/wiki/Java%20Decompiler It decompiles all of clojure.core and produces nicely laid out code (see below). package clojure; import clojure.lang.*; public final class core$first extends AFunction { public Object invoke(Object coll) {

Re: clojure code to java

2014-05-01 Thread henry w
for understanding what goes on in clojure to class file compilation, i have found this blog series very interesting: http://blog.guillermowinkler.com/blog/2014/04/27/decompiling-clojure-iii/ On Thursday, May 1, 2014 5:56:08 AM UTC+1, Andy Fingerhut wrote: > > Leiningen can convert Clojure source

Re: clojure code to java

2014-04-30 Thread Colin Fleming
You could also check https://github.com/galdolber/clojure-objc, which uses a modified Clojure compiler to output Java source instead of bytecode. It's been subsequently modified to work with ObjC, I'm not sure whether that affects its ability to execute the program as Java or not. On 1 May 2014 1

Re: clojure code to java

2014-04-30 Thread Andy Fingerhut
Leiningen can convert Clojure source code to Java .class files (compiled Java byte code, not Java source code), with the help of the Clojure compiler. I don't know of a way Leiningen can convert that to Java source code, unless there is some feature of Leiningen I haven't learned about yet, or som