From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,958ed45cc4906b53 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-30 05:06:22 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!HSNX.atgi.net!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Distributed system portability Message-ID: References: <3B644557.C599A03C@san.rr.com> <3B654382.B885CE20@canal-plus.fr> Organization: LJK Software Date: 30 Jul 2001 08:05:59 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 996494761 216.44.122.34 (Mon, 30 Jul 2001 12:06:01 GMT) NNTP-Posting-Date: Mon, 30 Jul 2001 12:06:01 GMT Xref: archiver1.google.com comp.lang.ada:10725 Date: 2001-07-30T08:05:59-05:00 List-Id: In article <3B654382.B885CE20@canal-plus.fr>, Thierry Lelegard writes: >> Is it generally the case that a distributed system compiled on two >> different architectures can talk to itself? In other words, if I write a >> distributed system with GNAT, and I compile one portion on Windows and >> another portion on Linux, are these two systems likely to talk to each >> other? If not, are the stream formats likely to be compatible? If not, >> is there a way to redefine the low-level stream operators for things >> like Integer to ensure that the same format is used at both ends? Or do >> I need to write translation routines to some architecture-independent >> format? > > In pratice, GNAT/GLADE seems to handle this (but I never used it). > > In theory (although there is no other implementation of DSA than GLADE), > there is absolutely no guarantee in the ARM about that. Interoperability > is, in my opinion, the biggest hole in Ada95 and writing "open" software > in Ada95 is much harder that it could have been if the default representation > of streams were standardized. When streams go to a file, wouldn't there be a problem with differences between record-oriented file systems and bag-of-bytes oriented file systems ? While the distributed annex may be the topic of this discussion, some may be more interested in making it possible for their streams to be interpreted by other languages. Or is the idea of streams that one should never try to access them from a non-Ada language ?