I have a Go program that starts a C/Lua process. Now I'd like to communicate between those two. For example, in the middle of the run of the child (the c/lua process), I'd like to ask the parent (the Go program) to do some calculations and wait for the result. I am not keen to use stdin/stdout for communication, as this is already used for regular output. Now I am thinking of using sockets for the communication, but I don't want to reinvent the wheel.
- What are the obvious choices for this kind of communication?
- Is there a (more or less) simple standard way to pass objects between Lua and Go? If not, text blobs would suffice.
- Are Protocol Buffers suitable for this? Looks like overkill, but I have no experience here.