J2ObjC: A Java to iOS Objective-C translator by Google

[quote]We are proud to announce the open source release of J2ObjC, a Google-authored translator that converts Java source code into Objective-C source for iPhone/iPad applications.
[/quote]
http://google-opensource.blogspot.nl/2012/09/j2objc-java-to-ios-objective-c.html

Looks pretty interesting.

:o :o :o

Why do I feel like this is … somehow huge?

Aren’t there already java-to-iphone engines and stuff? Or can you actually copy and paste the code that comes out of this?

As the main page states it is pretty limited. You can translate the code, but you can’t automagically make it API compatible. Basically this allows you to share some low level core stuff between applications, a large chunk of it you’ll still have to develop yourself in objective C with Apple specific APIs.

damn you china, why do you have to block all the interesting blogs(no blogspot wordpress here :()

Y U NO use proxy?

haha proxy,
like every proxy I tried is also banned:) vtunnel.com works, but somehow don’t show anything for this google blog(youtube works a bit)

Other thing is^^ I bought a VPN access before my trip started, but the connection I’m using here needs an VPN of the Chinese IPS to access the internet first. And I don’t know if it is possible to use a VPN in a VPN(Inception :))

This thread got derailedquickly.

On topic: it’s interesting, but probably only useful for simple bean translation. Translates source lime GWT, has an extremely minimal JRE emulation layer, no real GC but reference counting, no JNI support but something similar to GWT’s JSNI.

Not sure this will be of use for many people,but it’s an interesting small project.

edit: summarized my findings in this blog post http://www.badlogicgames.com/wordpress/?p=2593

Hmm yes well I do hope Jack bears extremely juicy fruit. I’m actually quite intrigued about using Jack for desktops too if it turns out to be fast and reliable…

Cas :slight_smile:

Don’t hold your breath.

Meh. If it’s not machine code, C, or C++ I don’t see much potential for translating from Java to any other language. And even then you need to support most of the language and standard libraries and find a way to efficiently and robustly handle Java’s type system and memory management system. There must be some other application besides translations. I don’t know much about iOS, but it seems like it would kind of be like translating from Java to .NET. Maybe there is some utility as a short term solution to targeting a specific platform, but no long term benefit.