2 ms·
I have thought of an alternative to a C FFI by using a schema based binary serialisation format but protobuffers is useless because of the serialisation and cop
by imtringued 4y ago
I have thought of an alternative to a C FFI by using a schema based binary serialisation format but protobuffers is useless because of the serialisation and copying overhead. Something like capnproto or flatbuffers would be much better.
The goal would be to use Capnproto RPC but rip the asynchronous part out by dynamically linking the library and rather than using a thread pool you just execute some sort of "message_receive" function with the serialised data in the library. Alternatively, regular capnproto RPC is used over TCP but in this case it wouldn't matter if the library is in the same process or a standalone executable on a different computer with which you can communicate over the network.