Re: Java-to-Clojure source translation?

2012-11-05 Thread Stuart Sierra
On Sunday, November 4, 2012 4:18:27 PM UTC-5, Vladimir Tsichevski wrote: That's why I'm looking for means which could HELP me rewrite my code base to Clojure, not to produce compilable and runnable code. Just parse Java syntax tree and pretty-print it back as Clojure-like text. Even if

Java-to-Clojure source translation?

2012-11-04 Thread Vladimir Tsichevski
Hi gurus, I wonder if there are any means that'd help me translate Java sources to Clojure? I do not expect getting working Closure code OOTB, just anything to start from. Regards, Vladimir -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: Java-to-Clojure source translation?

2012-11-04 Thread Maik Schünemann
Why do you want this? If you have java code you can just call it from clojure.no need for translation Am 04.11.2012 19:39 schrieb Vladimir Tsichevski tsichev...@gmail.com: Hi gurus, I wonder if there are any means that'd help me translate Java sources to Clojure? I do not expect getting

Re: Java-to-Clojure source translation?

2012-11-04 Thread Vladimir Tsichevski
Hi Maik, no, I need to re-implement existing code in Clojure. Why do you want this? If you have java code you can just call it from clojure.no need for translation Am 04.11.2012 19:39 schrieb Vladimir Tsichevski tsich...@gmail.comjavascript: : Hi gurus, I wonder if there are any means

Re: Java-to-Clojure source translation?

2012-11-04 Thread Maik Schünemann
A direct translation is often not a good idea because java uses so much mutable stateand this is really not idiomatic in clojure.but it will be a helpful experience to make the java code to functional clojure code. IMO calling java code from clojure is better as a direct translation with all that

Re: Java-to-Clojure source translation?

2012-11-04 Thread Stuart Sierra
Hello, It is not really possible to make a direct translation from Java to Clojure. Java has mutable variables and imperative flow-control, for which there is no equivalent in Clojure. -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: Java-to-Clojure source translation?

2012-11-04 Thread Vladimir Tsichevski
Hi Stuart. On Monday, November 5, 2012 1:10:36 AM UTC+4, Stuart Sierra wrote: Hello, It is not really possible to make a direct translation from Java to Clojure. Java has mutable variables and imperative flow-control, for which there is no equivalent in Clojure. -S That's why I'm

Re: Java-to-Clojure source translation?

2012-11-04 Thread Stephen Compall
On Sun, 2012-11-04 at 13:18 -0800, Vladimir Tsichevski wrote: That's why I'm looking for means which could HELP me rewrite my code base to Clojure, not to produce compilable and runnable code. Just parse Java syntax tree and pretty-print it back as Clojure-like text. I think the thesis of this

Re: Java-to-Clojure source translation?

2012-11-04 Thread Andy Fingerhut
On Nov 4, 2012, at 1:10 PM, Stuart Sierra wrote: Hello, It is not really possible to make a direct translation from Java to Clojure. Java has mutable variables and imperative flow-control, for which there is no equivalent in Clojure. -S First, some suggestions that are not