Hacker News new | ask | show | jobs
by beerbaron23 3306 days ago
Errrr Android ART is a VM and no you can't write games in C/C++ on Android. While technically it can be done it's pretty much impossible to get it off the ground and running because of the VM in place.

There is a website that lists the games people have created to try it successfully, they give links to couple of them which made it into the Android store and basically you can tell by all the feedback that the game won't load. You can try to run the games too and see if you're lucky, I wasn't....

Objective-C is very quite fast, several notches faster then Java apps

2 comments

That's completely wrong I'm afraid. ART is a standards compliant JVM and Android has supported the native development kit (NDK) for C/C++ apps for years. You can't do everything you can with the Java APIs, but you can open windows and get a GL context with it, which is all most games care about.

The speed of Java is very dependent on the sophistication of the compilers used. Java will walk all over Objective-C if run on a fast server class machine with an advanced JVM like HotSpot.

I didn't say ART was not a VM. I said ART is not a JVM. There is a difference.

>and no you can't write games in C/C++ on Android

Of course you can. All of the high end games are written in C/C++. Java, Kotlin, C/C++ are the official languages of Android.

>While technically it can be done it's pretty much impossible to get it off the ground and running because of the VM in place.

Apps that use NDK do not use ART.

>Objective-C is very quite fast, several notches faster then Java apps

No it's not. Please provide proof that Objective-C is several notches faster than Java apps.