3 ms·
If Google were to provide an Android SDK for Go I bet the usage would grow exponentially and that would assure a bright future.
by cliveowen 13y ago
If Google were to provide an Android SDK for Go I bet the usage would grow exponentially and that would assure a bright future.
- saljam 13y agoI 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.
- jdiez17 13y agoMapping 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.
- mseepgood 13y agoIt is already growing exponentially. Did you mean Ackermann function growth?
- steeve 13y agoIt's been done: https://github.com/eliasnaur/goandroid https://github.com/eliasnaur/goandroid Hackish, but it works.