A new interface coming with the forthcoming Honeycomb version of Android will open up a new ability for programmers who want to tap into hardware power unlocked by low-level programming.
The new interface, is called Renderscript, an Android performance and graphics programmer at Google.The goal for the feature has to be better games on Android. It’s a broader feature, though: it’s used in Honeycomb’s YouTube and Books apps.
The target audience is the set of developers looking to maximize the performance of their applications and is comfortable working closer to the metal to achieve this. The target use is for performance-critical code segments where the needs exceed the abilities of the existing APIs.
To that end, Renderscript exposes two hardware-accelerated interfaces, one for rendering 3D graphics and one for for power-efficient computing operations. To use it, Renderscript relies on a variant of the C99 programming language that itself is related to C. And the Renderscript plumbing that comes along with Honeycomb, aka Android 3.0, makes the decisions about whether to run the computing jobs on regular or graphics processors.
The Native Developer Kit Google offers for Android already lets programmers directly access low-level hardware features. Renderscript has an important difference, though: it’s cross-platform. Instead of coming with software coded just for a specific chip, it comes with scripts that are compiled into an intermediate format that is then translated for a specific device only when it runs.