3 ms·
> trying to beat C into a form that does IPC protocol-handling well. The opposite worked at least once: have Erlang code deal with C-friendly structures. Last
by yuubi 10y ago
> trying to beat C into a form that does IPC protocol-handling well.
The opposite worked at least once: have Erlang code deal with C-friendly structures.
Last time I got to work on an Erlang project, we needed an external C program to do some network stuff we couldn't do in Erlang. We just defined a simplistic protocol easy to parse from C, with {packet, 4} framing (each message was preceded by a 4-byte length) wrapped around the messages. Pretty much any format easy to parse or generate in C is trivial to deal with in Erlang.