The go language will support Android

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

In the last few days, Google released in 2009, the second home language go language has just released 1.3 official version, a significant solution to the GC problem, recently Google development version has a new explosion: Google finally in the 1.4 version of the official support for Android system development, you can compile the compiler to publish directly to the Android platform

Overview

We recommend introducing the go language into the Android platform, with the emphasis on programming in the Go language, and the API will be defined in the Android NDK.

Background

The Android platform is set up as a multi-application operating system, an operating system that relies more on network libraries and services relative to traditional UNIX systems, which means we will open more APIs for Go runtime.

Bringing Golang into the Android platform is a very bad thing, because Android itself is built in Java and has a huge API, and any attempt to replace these APIs with Go will result in a very bad result. Whether you create a wrapper class manually or automatically, it can cause the program to run very slowly.

However, if you use the C-based API, writing some game programs through ANDROIDNDK may bring unexpected gains.

Proposal

During the Golang 1.4-week period, the Android platform compilation will be included in the go source and contains Android-supported CGO (contributed by Elias Naur). Support for dalvik-loadable. So external connection files is also provided by the Android NDK.

We still provide cross-platform compilation on the release and support the ADB tool on the Linux host to test the program on the Android device.
We will provide a child version called Go.mobile, which contains:

    • Support for Opengl,opensl and OpenMAX via the Android NDK.
    • A java->go tool that supports calling the go package through Java, so many game menu UIs can be built with the standard SDK. (It is possible to support calling go in other languages, such as objective-c.) )
    • Integrated Androidstudio

The new feature will be available in the Go1.4 stable version.
Poke here to see the original

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.