TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

JUniversal: A new, Java-based approach to cross-platform mobile apps

73 pointsby imarihantnahataover 10 years ago

9 comments

cromwellianover 10 years ago
This is how Google Inbox and Google Spreadsheets works. See the slides from my recently produced GWT Create Session (<a href="http://t.co/ZvoaHxCoZT" rel="nofollow">http:&#x2F;&#x2F;t.co&#x2F;ZvoaHxCoZT</a>). J2ObjC slide deck here (<a href="https://docs.google.com/presentation/d/1mW_Plm5jAygELf7qjVK7ZSIFjha0Q3TjOttX4x8oVWY/pub?start=false&amp;loop=false&amp;delayms=3000&amp;slide=id.g6c99c794a_2_26" rel="nofollow">https:&#x2F;&#x2F;docs.google.com&#x2F;presentation&#x2F;d&#x2F;1mW_Plm5jAygELf7qjVK7...</a>) Videos of the conference will be online soon.<p>Prior to that, some 20% Googlers also produced the PlayN library (<a href="https://github.com/threerings/playn" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;threerings&#x2F;playn</a>) This was taken over by Michael Bayne who added an iOS backend by Bytecode -&gt; IKVM -&gt; Mono conversion. I beleive j2objc and RoboVM backends exist now as well.<p>The major benefit of the j2objc approach is the avoidance of GC in favor of ARC, the conversion of message-sends into C-method calls when possible, and integration with existing iOS toolchain.<p>When we started, it seemed like an iffy idea, but after developing a product delivered to millions of users on a high volume site (gmail) that has 70% code sharing, and being able to simultaneously develop, test, and deploy across the platforms reasonably efficiently, a lot of skeptics have become converts to the concept.
评论 #8998899 未加载
bsimpsonover 10 years ago
The architecture (shared business logic with platform-specific UI) sounds a lot like React Native. The difference is that in RN, your UI is primarily specified in JSX on all platforms. This means you can even reuse a lot of your non-platform-specific UI.<p>I expect that in a year or two, there will be a React Native UI library that implements Material Design on Android and the Web, perhaps even with iOS bindings for things that are similar across platforms. It will always be a best practice to adopt the conventions of the platform you&#x27;re on, but it does nobody any good to implement the same UI three times. Reuse your &lt;Text&gt;, your &lt;Image&#x2F;&gt;, your &lt;ProductListing&#x2F;&gt;, etc. and save the platform-specific UI for things that change across platforms (like navigation paradigms).
评论 #8998403 未加载
评论 #8998607 未加载
pjmlpover 10 years ago
Nice to know about it.<p>Sadly Oracle seems more keen in pushing the brain dead idea of Oracle Mobile Application Framework[0].<p>Regardless of the Google vs Oracle situation on Android, they could provide JIT and AOT compilers for the remaining mobile platforms, instead of leaving it in the hands of third parties.<p>I have turned to Qt&#x2F;C++ and Xamarin for my hobby mobile development as cause of that.<p>[0]<a href="http://www.oracle.com/technetwork/developer-tools/maf/overview/index.html" rel="nofollow">http:&#x2F;&#x2F;www.oracle.com&#x2F;technetwork&#x2F;developer-tools&#x2F;maf&#x2F;overvi...</a>
valevkover 10 years ago
Another great (though not free) framework is Tabris: <a href="http://developer.eclipsesource.com/tabris/" rel="nofollow">http:&#x2F;&#x2F;developer.eclipsesource.com&#x2F;tabris&#x2F;</a>
passfreeover 10 years ago
Well, those who have done some iOS or Android development know that any good app requires extensive hacking. Unfortunately this doesn&#x27;t work in a cross-platform manner. For the simplest applications having a cross-platform framework is fine but if you really want to make an immersive app for iOS or Android you need to go native. Now this is not to say that some applications will work perfectly fine under this framework.
评论 #8998844 未加载
funkybroover 10 years ago
This is similar to Kirin framework (<a href="http://github.com/futureplatforms/kirin" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;futureplatforms&#x2F;kirin</a>)<p>Cross platform development in Java is compiled to JS via GWT and can be deployed anywhere Java or JS is available.<p>It powers apps with hundreds of thousands of users on iOS, Android, Windows, Windows Phone and Xbox One.
registerover 10 years ago
The approach is similar to the one chosen by Haxe. I would keep a close eye on the progresses made by this open source language. For the moment the most mature translation target is the C++ one, however there are also targets for Java and C#. Sadly the community seems to be 95% focused on mobile gaming.
评论 #9000376 未加载
smrtinsertover 10 years ago
libgdx also uses robovm for ios, but prefers gwt for web. since its &#x27;just java&#x27; desktop and android dev comes free.<p>If you&#x27;re into build *gl based guis it&#x27;s a great cross platform toolkit in disguise (especially with scene2d).
评论 #8998474 未加载
mwcampbellover 10 years ago
This looks awesome! I can hardly wait for the promised C++ and ObjC++ support. I wonder how much gtime the main committer, Bret Johnson, is able to devote to this project.
评论 #9002121 未加载