I've heard Go is like C with channels and a lot of conveniences. I do very little C, but when I do it's to make small extensions to other languages. Can Go be a safe way to create extensions in other languages? Are people doing this?
-
2I think it boils down to interfacing with C code (specifically, making the Go compiler's output adhere to the platform's default ABI, or at least putting it behind a layer that does). I don't know enough Go to say if and how that can be done. But either way, it probably won't be easy enough (especially when you need to do it portably) to be an option for most people.user395760– user3957602011-10-23 15:25:59 +00:00Commented Oct 23, 2011 at 15:25
-
2These might be helpful stackoverflow.com/questions/6125683/call-go-functions-from-c stackoverflow.com/questions/1760468/…nicerobot– nicerobot2011-10-23 16:25:19 +00:00Commented Oct 23, 2011 at 16:25
Add a comment
|
2 Answers
For Python there is goPy: https://github.com/qur/gopy
For Perl there is Campher: https://github.com/bradfitz/campher
For Lua there is golua: https://github.com/afitz/golua
Comments
For PHP there are a few options: