News for hackers. Stuff that matters.
Re:Go and Android by pjmlp on Sunday March 30, 2014 @02:06AM (#7495387)
This is nothing more than a pure hack as it is not supported by Google and does not allow distribution via Play Store.

The ticket for Go support is open since 2012, so clearly there isn't any interest from Android team to do so.

https://code.google.com/p/android/issues/detail?id=39482

Re:Go and Android by RyanZAG on Sunday March 30, 2014 @03:39AM (#7495522)
You didn't read his post to the end - you can include the Go binary into your normal Android app and then manually execute it. It certainly does allow distribution via Play Store and many apps currently available through the Play Store do similar things with Python and other languages.

Many apps also use this method as a way to get around GPL'd code by distributing the GPL executable as a separate runnable application inside the .apk (.zip) file which allows their app to be closed source while containing GPL code.

Re:Go and Android by pjmlp on Sunday March 30, 2014 @04:02AM (#7495554)
> You didn't read his post to the end - you can include the Go binary into your normal Android app and then manually execute it.

Yep, you are right, as I have seen too many of these workarounds.

And what is the benefit? Bending ourselves just not to touch Java?!

I rather be productive with the officially supported tools.

Re:Go and Android by RyanZAG on Sunday March 30, 2014 @04:05AM (#7495561)
I wouldn't confuse productive with officially supported - sometimes an unofficially supported tool can be far more productive.

I agree completely with productive though. Anybody choosing a language for any reason but the quality of the output is just wasting their own time. Nobody really cares what language you used at the end of the day, only what you produce with it.

Re:Go and Android by ithkuil on Sunday March 30, 2014 @08:12AM (#7495951)
sometimes its just the fun. If I could write android apps in Go I would play with it, and perhaps I would get some ideas about what to build on mobile platforms.
Re:Go and Android by vbsteven on Sunday March 30, 2014 @06:05AM (#7495726)
It's not about avoiding Java, it's about not having to rewrite your already written Go code in Java. I've used both Tor and pjsip libraries (both written in C) this way.
Re:Go and Android by pjmlp on Sunday March 30, 2014 @06:41AM (#7495790)
> both written in C

JNI

Re:Go and Android by coldtea on Sunday March 30, 2014 @07:02AM (#7495822)
Of course, there's an answer for anything. But I'd take Gos FFI over JNI any day of the week.

Plus, he also mentioned he has Go code he wanted to reuse.

Re:Go and Android by 4ad on Sunday March 30, 2014 @06:17AM (#7495746)
There are Android apps in the Play Store that use Go extensively, e.g. Camlistore.
Re:Go and Android by e12e on Sunday March 30, 2014 @10:59AM (#7496313)
Thanks for the mention of Camlistore[1]. Wasn't aware of the project -- it seems to mirror many of the ideas I've been mulling about concerning storage.

[1] http://camlistore.org/

Re:Go and Android by buffyreen on Sunday March 30, 2014 @02:08AM (#7495391)
Someone on the Android team must be reading this, can someone make an official comment?