News for hackers. Stuff that matters.
Re:See Android Go by tosseraccount on Friday July 24, 2015 @10:24AM (#9942158)
No doubt it's potentially portable. Can I compile a GO only program and run on ios?
Re:See Android Go by fit2rule on Friday July 24, 2015 @10:57AM (#9942406)
I did it, its trivial. The magic sauce is all in the use of the #cgo directive, which gives you a way of exporting Go to iOS code and vice versa. I ported IPFS (http://ipfs.io/) as a test, and it runs quite well on iOS:

https://github.com/seclorum/ios-go-ipfs/blob/master/ipfsios/...

Re:See Android Go by tosseraccount on Friday July 24, 2015 @12:25PM (#9943090)
Is see stuff like 'cgo' and 'import "C"'.

What's going on here?

Re:See Android Go by fit2rule on Friday July 24, 2015 @12:53PM (#9943336)
This is the glue that the Go compiler needs to export its symbols in a way that they can be used from the C side of things in Objective-C, and vice versa. Think of it like a toll-free bridge [ * ] between the ObjC and Golang runtimes.

[ * - See https://en.wikipedia.org/wiki/Bridging_(programming) ]

Re:See Android Go by rhodysurf on Friday July 24, 2015 @01:19PM (#9943560)
You dont need to do any of the cgo stuff manually anymore with gomobile