From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 2E1D2BBCA for ; Mon, 5 May 2008 04:14:29 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoYFAEcKHkjAXQIniGdsb2JhbACDHY5YAQEBDyCTK4Nw X-IronPort-AV: E=Sophos;i="4.27,435,1204498800"; d="scan'208";a="11828954" Received: from concorde.inria.fr ([192.93.2.39]) by mail1-smtp-roc.national.inria.fr with ESMTP; 05 May 2008 04:14:29 +0200 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m452ESi4028027 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 5 May 2008 04:14:28 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjEIAEcKHkjRVcivc2dsb2JhbACDHY5YAQwDBAQJDwWTKINw X-IronPort-AV: E=Sophos;i="4.27,435,1204498800"; d="scan'208";a="10376660" Received: from wf-out-1314.google.com ([209.85.200.175]) by mail2-smtp-roc.national.inria.fr with ESMTP; 05 May 2008 04:14:27 +0200 Received: by wf-out-1314.google.com with SMTP id 25so860703wfa.0 for ; Sun, 04 May 2008 19:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=OEsFqXy5yl8sZ5KEgjYZyt0XwSELQJU5bHJVflVgQzI=; b=tP8+ZhTlMMgnISaRW6f0N3RyVDcZ+HhADbC8nc0GzYh23sj2Q/Ci66afaK5A7yTsy4mfJkAq8OQqLIRva1hNw0ztXIl5cdVysgZJgJ68ddL3WgokpzUkB9m0SvQdvVPn6Zshr1w+dLgeShiV1BnXIU03vexdfCxSwADd6m4y5B4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=whsEQNLfStCKQQwZCgGnFpYYo9iSri9gn7zl/aho7Y0NbZ2XjMMkAqZfaNxwEb2T12zS/l2FwB7wzP5YDDWPRi5aco37nGY4P3wCILpdyjLYLDsceyyHGDX14Nec1xGAwW/Ig/zcKQV5aj5yefQ88eJS17JAAuEJgD4Pqnj09SQ= Received: by 10.142.172.12 with SMTP id u12mr2275579wfe.16.1209953666621; Sun, 04 May 2008 19:14:26 -0700 (PDT) Received: by 10.143.19.2 with HTTP; Sun, 4 May 2008 19:14:26 -0700 (PDT) Message-ID: Date: Sun, 4 May 2008 22:14:26 -0400 From: "Markus Mottl" To: "Richard Jones" Subject: Re: [Caml-list] Core has landed Cc: "Yaron Minsky" , "Caml List" In-Reply-To: <20080503081946.GA30935@annexia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1209764381.8680.38.camel@nyc-qws-018.delacy.com> <20080503081946.GA30935@annexia.org> X-Miltered: at concorde with ID 481E6D84.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; markus:01 mottl:01 markus:01 mottl:01 endian:01 endian:01 ocaml:01 byte:01 ocaml:01 wrote:01 caml-list:01 portability:02 data:02 binary:02 supported:02 On Sat, May 3, 2008 at 4:19 AM, Richard Jones wrote: > It would be nice to have bin-prot working on all architectures ... The biggest obstacle to this is that the current implementation assumes little endian machines. Both 64bit and 32bit are fully supported on these platforms. It would certainly be possible to support other architectures, but good portability and performance are not easily combined here. If performance does not matter, it would be easiest to just convert all data to the protocol already used by little endian machines. This would noticably slow down communication with/among machines that are not little endians. Since the vast majority of computers are little endians, this won't matter for most people. OCaml takes a similar approach. Note that communication _among_ machines with different endianness, assuming that they all have the same byte layout, should work, too, with the current binary protocol. At least if you do not mix 32/64bit machines there... Regards, Markus -- Markus Mottl http://www.ocaml.info markus.mottl@gmail.com