Hacker News new | past | comments | ask | show | jobs | submit login

If Google were to provide an Android SDK for Go I bet the usage would grow exponentially and that would assure a bright future.



I see this request very frequently, but I wonder how feasible it really is. The Android API is very Javasque, a 1:1 mapping to Go would just be unnatural.

Or are you suggesting they rewrite the API for Go? My knowledge of the internals of the Java parts of Android is limited, so I could be wrong, but that feels like a huge task.


Mapping a Javaesque (strange word, but I know what you mean) is not super hard. Encapsulate the Java stuff as opaque pointers and provide a functions that act on the objects. I actually think you could represent the Android API as a Go API fairly elegantly, although it would require a fair amount of glue code with some nontrivial hooks into the Go runtime.


It is already growing exponentially. Did you mean Ackermann function growth?


It's been done: https://github.com/eliasnaur/goandroid

Hackish, but it works.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: