News for hackers. Stuff that matters.
Re:On Go by kodablah on Sunday June 02, 2013 @12:38AM (#5807332)
My biggest issues with Go are compatibilities with the C ABI and the lack of shared library support. I have not looked in a while, so I may be wrong, but here are my big questions: 1. Can C invoke a Go-compiled and exported callback/function? 2. Can I build a Go .so/.dll invokable via C or other non-Go FFI methods? 3. If I build a commercial Go lib for others to link with, how can I distribute it without distributing the Go source?
Re:On Go by MetaCosm on Sunday June 02, 2013 @12:59AM (#5807378)
I suspect unless someone gets real exciting about this and modifies one of the toolchains, this won't happen in the near future. You can do (1) with some ugly syntax. Regarding (2) and (3) -- I know some projects are happening in both those spaces, but haven't kept up with them.
Re:On Go by zellyn on Sunday June 02, 2013 @02:45AM (#5807607)
As far as I know, you can call from C(++) into go, as long as the outermost layer (main) is go.
Re:On Go by dsymonds on Sunday June 02, 2013 @05:15AM (#5807841)
In fact all three of those things are being worked on, or planned for the medium term.
Re:On Go by dualogy on Monday June 03, 2013 @04:51AM (#5812100)
For 3. couldn't you just "compile but not link" your library packages and distribute the binary (non-source) .a object files for all platforms? Other Go code can then fully import and link those afaik.