From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA00943 for caml-redistribution; Wed, 12 Aug 1998 22:44:52 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA15175 for ; Wed, 5 Aug 1998 10:13:54 +0200 (MET DST) Received: from fritz.traverse.net (oliverhome.cablezone.com [207.140.231.102]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id KAA10384; Wed, 5 Aug 1998 10:13:50 +0200 (MET DST) Received: from oliver by fritz.traverse.net with local (Exim 1.90 #1) id 0z3yhh-0000cr-00; Wed, 5 Aug 1998 04:13:49 -0400 Subject: Re: Marshalling of floats To: Xavier.Leroy@inria.fr (Xavier Leroy) Date: Wed, 5 Aug 1998 04:13:49 -0400 (EDT) From: "Christopher Oliver" Cc: caml-list@inria.fr In-Reply-To: <19980805100018.38349@pauillac.inria.fr> from "Xavier Leroy" at Aug 5, 98 10:00:18 am X-Mailer: ELM [version 2.4 PL25 PGP3 *ALPHA*] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: Sender: weis > Floats are written in "native" endianness (the natural endianness of > the machine writing the file), but along with a flag telling which > endianness is used. Ouch! That will teach me to read only one piece of code. My common work usually has me dealing with standardized network representations, so I missed this strategy completely. [Chris sticks head in bucket.] > > Harder, does anyone have any good ideas besides conversion to > The next release of OCaml will use the same format for float arrays in > native-code and in bytecode, thus solving this problem. Both compact I hope. Any idea on when this might happen? -- Christopher Oliver Traverse Internet Systems Coordinator 223 Grandview Pkwy, Suite 108 oliver@traverse.net Traverse City, Michigan, 49684 let magic f = fun x -> x and more_magic n f = fun x -> f ((n f) x);;