Go 1.4 gets Android support
Written by Kay Ewbank   
Tuesday, 16 December 2014

A new version of Go has been announced by Google with support for developing native Android apps along with better garbage collection.

 

Go

 

The Android support is still at the ‘heavy development’ stage, according to the Go blog. Writing about the new release on the blog, Andrew Gerrand said that using the support in the core and the libraries in the repository, it is now possible to write simple Android apps using only Go code. However, he says that at this stage,

“the support libraries are still nascent and under heavy development. Early adopters should expect a bumpy ride, but we welcome the community to get involved.”

The Android support is provided via the golang.org/x/mobile repository. This has packages that generate language bindings to enable the calling of Go code from Java to create a fully native app. The repository also has example code and bindings for OpenGL. The release notes  say that the focus will be on supporting games written in Go, and that this much smaller subset of Android apps will be written against the much smaller C-based Games API surface.

The plan is that the app will use OpenGL to draw to the entire screen without exposing any of the Android screen management infrastructure. Once the Android support is released in the final version, all the APIs supported by the Android NDK will be exposed via a Go package.

The other major change to Go 1.4 is to the garbage collector. This is partially to form the basis of a fully concurrent collector that is undergoing development over the next few releases. There’s also a change to the syntax of for-range loops.

You may now write "for range s {" to loop over each item from s, without having to assign the value, loop index, or map key. O

ther changes are detailed in the release notes. This release also coincides with the project's move from Mercurial to Git (for source control), Rietveld to Gerrit (for code review), and Google Code to Github (for issue tracking and wiki). The move affects the core Go repository and its sub-repositories.

You can find the canonical Git repositories at go.googlesource.com, and the issue tracker and wiki at the golang/go GitHub repo.

 

goicon1

 

More Information

Go 1.4 is released

Related Articles

Go 1.3 Released

A Programmer's Guide To Go

Why invent a new language? Go creator explains

Go Is Four

Go with Google - Yet Another Language!

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, FacebookGoogle+ or Linkedin,  or sign up for our weekly newsletter.

 

Banner


Ai-Da's Portrait of Alan Turing At Auction
01/11/2024

Sotheby's Digital Art Day Action, now underway, features a large-scale portrait of  Alan Turing created by Ai-Da, the humanoid robot artist whose work, including this canvas, was exhibited at the [ ... ]



Mastering LLMs With Experts
22/10/2024

A freely available set of workshops and talks on the essentials of LLMs, taught by practitioners. The topics include Evals, Retrieval-augmented-generation (RAG), Fine-tuning etc.


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Monday, 24 September 2018 )