Re:Google j2objc, a Java to iOS Objective-C translation tool...
by cromwellian on Friday October 24, 2014 @05:34AM
(#8502850)
If you only have trivial business logic, then yes, no benefit. But you can create common libraries that interface with native Cocoa frameworks.
Google's new Inbox by Gmail was delivered on three platforms simultaneously. It was not written from scratch 3 times.
Re:Google j2objc, a Java to iOS Objective-C translation tool...
by duaneb on Friday October 24, 2014 @04:11PM
(#8505698)
> It was not written from scratch 3 times.
No, but did it also use java translation? That would involve writing wrappers for many of the native libraries. They would also have to do View/Controllers in objective-c (or some equivalent translator). And finally, they would have to special-case operating systems everywhere. This framework would not at all suffice to do multi-platform development; xamarin, robovm, cordova, and titanium all get much closer to this goal.
Re:Google j2objc, a Java to iOS Objective-C translation tool...
by thewarrior on Friday October 24, 2014 @06:24AM
(#8502960)
Is there any way to use this to write the entire data handling layer ?
Re:Google j2objc, a Java to iOS Objective-C translation tool...
by ZitchDog on Friday October 24, 2014 @11:10AM
(#8504058)
My guess is you'd write j2objc wrappers around sqlite and HTTPUrlConnection/NSURLConnection and expose API for business logic elements.
edit: here is an example: https://groups.google.com/forum/#!topic/j2objc-discuss/8u2Si...
Re:Google j2objc, a Java to iOS Objective-C translation tool...
by talloaktrees on Friday October 24, 2014 @05:33AM
(#8502847)
For something like that you can use RoboVM. It's a java bytecode (which means clojure, scala, et al are also usable) to native code compiler
If we're only going to write the very limited business logic in Java I don't really see the benefit.