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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,35d56f705b196731 X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Building portable data structure (NOT a newbie question?) Date: 1996/12/27 Message-ID: <1996Dec27.133657.1@eisner>#1/1 X-Deja-AN: 206254915 x-nntp-posting-host: eisner.decus.org references: x-nntp-posting-user: KILGALLEN x-trace: 851711822/11941 organization: LJK Software newsgroups: comp.lang.ada Date: 1996-12-27T00:00:00+00:00 List-Id: In article , afniii@hades.arl.psu.edu writes: > There are a pile load of classes and records which are shared among > machines. They are recorded to a movable medium (such as disk) and > moved to the other machine for access in some cases. In others they > are sent via a TCP/IP socket. In all cases the machine distribion is > heterogenous (sorry, but this is the part that makes it a challenge). > So I need a way to convert the lowest primitives (ie: discrete types > and floating point types) into a platform indepenent form. Still need > to minimize memory and disk allocation (cpu resources are cheap and > abundant) so converting everything to a string is out (but has been > considered). > > Oh yeah. I almost forgot. No CORBA, IDL's or such either. I can't > afford them and I want the compiler to catch most of my errors for > me. If I didn't want that, I would program in C. :) If you eventually give up and convert everything to a string, I would recommend the ASN.1 format as it has enough self-checking to make afficianados of C run in terror. Larry Kilgallen