Pros:
- (against stdin/stdout usage) Leaves stdin for request data, stdout for response and stderr for logging.
- Uses standard Node
child_process.spawn
options.stdio[3]='ipc'
technique.
Cons:
- Right now uses '\n' as separator - it's original flaw of Node
'ipc'
implementation. - Unportable: Node
'ipc'
uses different implementation for different OSes. I.e. on Windows it uses named pipes and I've failed to fix child.py to work on windows. I can't ever imagine what it will be on Mac. - Incompatible: Node
'ipc'
can send handle via this socket. I had not yet found how it's implemented.