1. 21

  2. 6

    See also XDR, which has the advantages of a more C-like syntax and a compiler (rpcgen) that’s probably already on your system.

    1. 2

      Finally an article about ASN.1. Thanks for sharing.

      It was never clear to me why this format never found broader adoption, despite being well defined and space efficient.

      1. 1

        Maybe it needed a catchier name?

      2. 1

        The article names two drawbacks of JSON:

        • you will be using generic parsers at run-time – causing memory and CPU overhead
        • your messages will be encoded in verbose representations – causing network overhead

        You can fix the second problem, though not the first, by using the MessagePack format. MessagePack is basically non-human-readable JSON that achieves greater compression by being a binary format.