From: Gavin Thomas Nicol (email@example.com)
Date: Fri May 19 2000 - 08:58:59 PDT
> Implementing a single message type for a single platform (as above) is
> obviously much simpler than writing an XML parser. Implementing a
> single message type portably --- which requires byteswapping,
> correcting for data type sizes, etc. --- is an order of magnitude or
> two harder, but still much easier than writing an XML parser.
The question is though, is it easier/simpler to implement
void call(int method, int argument)
int f = connect(....);
using a put/get that uses a plaintext format or one that uses
a 32 bit long on the wire (4 bytes).
I would argue that parsing 4 bytes is probably less code, especially
given the large number of libraries for dealing with this
(like how hard is htonl and ntohl?).
Of course, dealing with text on the wire in a portable manner
might also be fun. How about dealing with machines with
6 bit bytes for example.
This archive was generated by hypermail 2b29 : Fri May 19 2000 - 08:59:22 PDT