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.

Avian: a lightweight alternative to Java that runs on iOS and Android

87 pointsby dkharratover 9 years ago

10 comments

nickmainover 9 years ago
How does it JIT on iOS given that normal apps cannot write to executable memory ?
评论 #10442257 未加载
评论 #10442187 未加载
oscargrouchover 9 years ago
A java jitted VM built from scratch.. i wonder if we have a way to see how it performs, compared to other jits (specially the Android ART)?<p>By a very crude look at the source, looks very lightweight indeed<p>&gt; Just-In-Time (JIT) compilation for fast method execution<p>&gt; Generational, copying garbage collection ensures short pause times and good spatial locality<p>&gt; Thread-local heaps provide O(1) memory allocation with no synchronization overhead<p>&gt; Null pointer dereferences are handled via OS signals to avoid unecessary branches
评论 #10442301 未加载
评论 #10443608 未加载
mkesperover 9 years ago
Please change the title to something less misleading: as specified by a contributor below, this does NOT run on Android.
twicover 9 years ago
I don&#x27;t understand what this is for. Could someone suggest some use cases?<p>Is the idea that you can write an app in a language which is a subset of Java, then deploy it onto multiple different platforms? Given that you can already do that with actual Java, what&#x27;s the advantage? Is it just that you can deploy on iOS, where there&#x27;s no JVM?
评论 #10443798 未加载
dingdingdangover 9 years ago
Is it possible for Avian to support the java.awt.Robot class? (<a href="http:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;6&#x2F;docs&#x2F;api&#x2F;java&#x2F;awt&#x2F;Robot.html" rel="nofollow">http:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;6&#x2F;docs&#x2F;api&#x2F;java&#x2F;awt&#x2F;Robot.html</a>) Would be superb in terms of cross platform automation use, currently the only other cross OS compatible solutions are to use Lazarus&#x2F;Free Pascal or full blown Java VM.
评论 #10459109 未加载
bluesilver07over 9 years ago
How does this compare with RoboVM (<a href="https:&#x2F;&#x2F;robovm.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;robovm.com&#x2F;</a>)?
评论 #10442855 未加载
评论 #10442491 未加载
dprattover 9 years ago
As an interesting aside, Avian has native support for coroutines through stack de&#x2F;re-hydration. I have yet to use it, but it looks quite interesting.
评论 #10442617 未加载
latjover 9 years ago
Anyone have any examples? Only documentation is javadoc and the examples links are all 404.
评论 #10442229 未加载
anonymousDanover 9 years ago
Does it support the full jdk?
评论 #10442700 未加载
评论 #10442068 未加载
rattrayover 9 years ago
what are the advantages of this over Kotlin?
评论 #10441850 未加载