5 ms·
Perhaps flatbuffers would be better?
by cjbgkagh 1y ago
Perhaps flatbuffers would be better?
- tomrod 1y agoI love learning from folks on HN -- thanks! Will check it out.
- notpushkin 1y agoTake a look at https://capnproto.org/ https://capnproto.org/ as well, while at it. Neither solve the copying problem, though.
- deleted 1y ago[deleted]
- frollogaston 1y agoAh, I forgot capnproto doesn't let you edit a serialized proto in-memory, it's read-only. In theory this should be possible as long as you're not changing the length of anything, but I'm not surprised such trickery is unsupported. So this doesn't seem like a versatile solution for sharing data structs between two Python processes. You're gonna have to reserialize the whole thing if one side wants to edit, which is basically copying.
- tinix 1y agolet me introduce you to quickle.