🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #73813

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

#73813
From: Joe Wells
Date: Fri, 19 Jul 1991 23:48
30 lines
2492 bytes
In article <1747@opus.NMSU.Edu> sitze@nmsu.edu (Richard Sitze) writes:

   In article <RYAN.91Jul17225230@ra.cs.umb.edu> ryan@ra.cs.umb.edu
   (Daniel R. Guilderson) writes:

   >Your assignment for the day, should you choose to accept it Mr.
   >Phelps, is to transfer exactly one 32-bit word between a VAX and a
   >68000 computer.  The word must represent the same integer on both
   >architectures.  How do you do it without byte-swapping?

   You are looking at this from a narrow point of view.

   By byte-swapping (as done by Sun NFS (and thus I assume the patent
   that Sun has supposedly infringed on declares a similar approach))
   I would transfer a 32-bit word from a VAX to an Intel 386 by
   converting VAX ordering to Motorola (NFS standard matches the Motorola
   68000 byte ordering I recall), send it over the network to the Intel 386,
   and convert to local Intel byte ordering - a round about way one must
   admit, and certainly not the obvious solution to your original
   question (though 'prehaps' obvious when one looks at the larger
   picture).  Even worse, if I follow the NFS standard, I send from VAX A
   to VAX B by converting to Motorola 68000 as a middle step....

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.

-- 
Joe Wells <jbw@uswest.com>
Technical Details
Message-ID: <JBW.91Jul19164859@maverick.uswest.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!cherokee!newsat!jbw
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>

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-19 18:53:30 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!cherokee!newsat!jbw
From: jbw@maverick.uswest.com (Joe Wells)
Newsgroups: gnu.misc.discuss
Subject: Re: Patent on a standard-byte order for intermachine communication
Message-ID: <JBW.91Jul19164859@maverick.uswest.com>
Date: 19 Jul 91 23:48:59 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>
Sender: news@cherokee.uswest.com (Telegraph Row)
Organization: U S West Advanced Technologies
Lines: 30
In-Reply-To: sitze@nmsu.edu's message of 18 Jul 91 18: 29:04 GMT
Nntp-Posting-Host: maverick.uswest.com