Re:Show HN: Primitive for macOS
by AsyncAwait on Tuesday November 15, 2016 @02:44PM
(#12961483)
Aren't you limited then to C datatypes?
[ Parent
| on HN ]
Re:Show HN: Primitive for macOS
by icebraining on Tuesday November 15, 2016 @03:44PM
(#12962037)
A pipe transmits bytes. You can transmit bytes in C datatypes, hence they're equivalent. Whatever serialization is used right now can be reused.
Or even better, actual bools and strings like a real API.
I don't know what the Go library looks like in terms of an API, but the pipes are already requiring serialization. This at least makes that hookup slightly easier, although CGO bridge has some overhead to it, so it wouldn't completely surprise me if a FIFO unix buffer was in fact faster especially if there's serialization in both situations.