Linked by Thom Holwerda on Fri 26th Jun 2009 13:30 UTC
PDAs, Cellphones, Wireless A native application development kit has been released for Android developers, offering a way to create certain kinds of high-performing applications for handsets running the Google platform. Android applications run through the Dalvik virtual machine, which emulates a Java virtual machine. On Thursday, the Android Native Development Kit (NDK) was released, allowing coders to create parts of their Android 1.5 applications outside Dalvik, using native-code languages such as C and C++.
Order by: Score:
Other languages on Dalvik
by bsharitt on Fri 26th Jun 2009 13:52 UTC
bsharitt
Member since:
2005-07-07

This is a good first step, but I actually like the VM idea, so I'd rather see an SDK allowing other languages like Python to nativity target Dalvik and the associated Google libraries.

Reply Score: 3

RE: Other languages on Dalvik
by kragil on Fri 26th Jun 2009 14:09 UTC in reply to "Other languages on Dalvik"
kragil Member since:
2006-01-04

There already is a scripting env or you could use Scala.

Reply Score: 2

why wouldnt you link to...
by sn0n on Fri 26th Jun 2009 18:31 UTC
sn0n
Member since:
2005-08-09

the original release, or blog post news,... instead of another news site?

something like

http://android-developers.blogspot.com/2009/06/introducing-android-...
or
http://developer.android.com/sdk/ndk/1.5_r1/index.html

Reply Score: 1

Fantastic!
by braddock on Fri 26th Jun 2009 22:34 UTC
braddock
Member since:
2005-07-08

Now you can finally leverage the Linux in your Linux phone.

Way overdue, but glad it is here. The Linux developer community who didn't care to learn some non-standard Java mutant can finally be unleashed!

Reply Score: 0

RE: Fantastic!
by Znark on Fri 26th Jun 2009 23:44 UTC in reply to "Fantastic!"
Znark Member since:
2006-01-09

It looks like the NDK doesn't let you write whole applications in C or C++. It lets you call native libraries and include them in your application. Basically, JNI for Android's Java dialect. Hopefully, the interface is compatible with JNI.

Most applications won't make use of this but it is important for applications that want to do more computation efficiently. Also, it will allow using open source libraries which would be hard to port to Java. For example, writing an entire X server in Java would be hard but doing Xnest with an Android GUI around it would be much easier.

Reply Score: 2

RE[2]: Fantastic!
by Mark Williamson on Sat 27th Jun 2009 01:45 UTC in reply to "RE: Fantastic!"
Mark Williamson Member since:
2005-07-06

For example, writing an entire X server in Java would be hard but doing Xnest with an Android GUI around it would be much easier.


I don't disagree with this but thought you may find these interesting: http://www.jcraft.com/weirdx/ and http://www.jcraft.com/wiredx/

I imagine they wouldn't be straightforward to run on Android so it doesn't negate your point (also they are probably not as full-featured as the "real" code would be) but I thought folks might be interested anyhow.

Reply Score: 2