🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #73821

Re: Patent on a standard-byte order for intermachine communication

#73821
From: Thomas M. Breuel
Date: Sat, 20 Jul 1991 14:16
28 lines
2308 bytes
In article <JBW.91Jul19164859@maverick.uswest.com> jbw@maverick.uswest.com (Joe Wells) writes:
   Wrong!  It is obvious, when "one looks at the larger picture".  Your
   method would require every computer to know what byte order every other
   computer used, which is impractical.  The only practical solution is to
   use a canonical byte order, and it doesn't matter which one you pick.

You have the choice of describing byte order along with the data,
or picking a canonical byte order.

The first method has the advantage that data transfer between similar
machines requires no byte swapping and, thus, is faster. A library of
vision utilities that I wrote uses this method (should I patent it? :-).
However, it makes the reading routines more complex, since they must
be able to deal with both byte orders.

The second method saves the storage overhead of indicating the byte
order, and it means that any I/O library only needs to have code
for the one standard byte order (in terms of programming effort,
there is no savings, since you need to write code for reading and
writing for machines of either byte order anyway). The disadvantage
is that for transfers between machines of identical byte order
(the usual case!), you often incur unnecessary overhead for byte
swapping.

The first method is clearly preferable if you want highest
performance. The second method is a little simpler in practice.

						Thomas.
Technical Details
Message-ID: <TMB.91Jul20101623@volterra.ai.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!olivea!mintaka!ai-lab!life!tmb
References: <gnusenet9107131607.AA14833@mole.gnu.ai.mit.edu> <1727@opus.NMSU.Edu> <709@silence.princeton.nj.us> <1738@opus.NMSU.Edu> <RYAN.91Jul17225230@ra.cs.umb.edu> <1747@opus.NMSU.Edu> <JBW.91Jul19164859@maverick.uswest.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,9a4c815047ed049b
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1991-07-20 07:41:40 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!olivea!mintaka!ai-lab!life!tmb
From: tmb@ai.mit.edu (Thomas M. Breuel)
Newsgroups: gnu.misc.discuss
Subject: Re: Patent on a standard-byte order for intermachine communication
Message-ID: <TMB.91Jul20101623@volterra.ai.mit.edu>
Date: 20 Jul 91 14:16:23 GMT
References: <gnusenet9107131607.AA14833@mole.gnu.ai.mit.edu>
 <1727@opus.NMSU.Edu> <709@silence.princeton.nj.us> <1738@opus.NMSU.Edu>
 <RYAN.91Jul17225230@ra.cs.umb.edu> <1747@opus.NMSU.Edu>
 <JBW.91Jul19164859@maverick.uswest.com>
Sender: news@ai.mit.edu
Organization: MIT Artificial Intelligence Lab
Lines: 28
In-reply-to: jbw@maverick.uswest.com's message of 19 Jul 91 23:48:59 GMT