Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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.


> 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.


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.


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.


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.


> both written in C

JNI


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.


There are Android apps in the Play Store that use Go extensively, e.g. Camlistore.


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/


Someone on the Android team must be reading this, can someone make an official comment?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: