3 ms·
Which fails if I am using two different compilers are sending a structure over a network connection! That is why I am familiar with struct packing actually, fo
by com2kid 13y ago
Which fails if I am using two different compilers are sending a structure over a network connection!
That is why I am familiar with struct packing actually, for creating protocols it is essential each end has the structure defined and laid out in the exact same way.
- midas007 13y agoErlang's type system with binary data-type is pretty awesome. Example: https://groups.google.com/d/msg/erlang-programming/s39IQlk-do0/za4eyVWkPwEJ https://groups.google.com/d/msg/erlang-programming/s39IQlk-d... I wished more programming languages had baked in support for bitfields, bit arrays and endian conversion, because building interoperable, efficient binary clients without icky code generation is currently a PITA.