Live data from Hacker News

C to Java Translation. Automatic, Complete, Correct. Free for Open-Source.

mtsystems.ch

1–10 of 55 posts

Re: C to Java Translation. Automatic, Complete, Correct. Free for Open-Source.

#4
post #2

I think I saw this the other day in the VIM discussion. Great job! Are the other examples, e.g. micro http, also available for download?

We translated dozens of open-source projects and decided to list only the interesting ones on the website and upload only the most interesting ones; The ones that are very well known and have a nice GUI.

Feel free to send us an email and we'll be happy to send you the other programs you're interested in.

You can also ask for translations of open-source software we didn't translate yet if you want to see the translation of a specific project.

Re: C to Java Translation. Automatic, Complete, Correct. Free for Open-Source.

#6
Interesting how gotos are translated to switches

90% of C should be pretty easy to translate, but of course, the devil (and a lot of functionality in existing libraries) is in the details.

There would be probably money in translating COBOL to Java, but maybe there are solutions already?

Re: C to Java Translation. Automatic, Complete, Correct. Free for Open-Source.

#7

Is there any tool that does the opposite?

I've seen many research papers on Java -> C translation during my PhD. Some of them came with a prototype tool. But as with previous work on C -> Java translation, none of the tools actually really worked completely.

I actually wrote a Java -> Eiffel translator:

http://se.inf.ethz.ch/research/j2eif

Based on that experience I can say it would be quite a big effort to write a Java -> C translator. But not impossible.

Re: C to Java Translation. Automatic, Complete, Correct. Free for Open-Source.

#9

Interesting how gotos are translated to switches 90% of C should be pretty easy to translate, but of course, the devil (and a lot of functionality in existing libraries) is in the details. There would be probably money in translating COBOL to Java, but maybe there are solutions already?

The main problem being undefined behaviour that is actually undefined and varies from compiler to compiler!

Re: C to Java Translation. Automatic, Complete, Correct. Free for Open-Source.

#10

Is there any tool that does the opposite?

I've seen many research papers on Java -> C translation during my PhD. Some of them came with a prototype tool. But as with previous work on C -> Java translation, none of the tools actually really worked completely. I actually wrote a Java -> Eiffel translator: http://se.inf.ethz.ch/research/j2eif Based on that experience I can say it would be quite a big effort to write a Java -> C translator. But not impossible.

Thanks for the post. What was the big sticking point with the Java -> C translators?
Post reply on HN