caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Markus Mottl" <markus.mottl@gmail.com>
To: "Stefano Zacchiroli" <zack@upsilon.cc>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Core has landed
Date: Mon, 5 May 2008 11:01:00 -0400	[thread overview]
Message-ID: <f8560b80805050801u12e28506ka5dce6287552791d@mail.gmail.com> (raw)
In-Reply-To: <20080505064238.GC29236@aquarium.takhisis.invalid>

On Mon, May 5, 2008 at 2:42 AM, Stefano Zacchiroli <zack@upsilon.cc> wrote:
>  Sounds like a reasonable solution indeed. Way better than not having
>  bin-prot on some archs (this is particularly annoying in Debian, where
>  we support several big endian machines; the status quo would mean no
>  Core on them and in turn no application using Core on them. Currently we
>  patched Core on that architecture to remove the bin-prot dependency, but
>  is a rather hackish solution I would like to get rid off).
>
>  Do you plan to implement such a solution in forthcoming releases?

We currently do not have any immediate need and man power to fully
support big-endian machines (we also don't have access to any), but
we'll gladly accept patches.  This could be implemented using
platform-specific macros as is the case with 32/64bit.

This is what works / doesn't work as of now:

  *) Big-endian and little-endian machines cannot communicate with
each other for anything but very specific cases.  Don't use the binary
protocol in such heterogeneous environments.

  *) 32 and 64 bit, little-endian architectures can communicate
freely, assuming, of course, that integers do not overflow on 32bit.
This is tested at runtime to prevent hard to debug errors.

  *) 32bit big-endian machines can communicate with each other freely.
 64 bit big-endians can communicate with each other freely, too, but
not necessarily with 32bit big-endians: values of type int64, etc.,
may not necessarily be communicated correctly.  Note, too, that you
should exclusively use the automatically generated converters on
big-endian machines.  The hand-written (slower) ones for the basic
types are intended mostly for testing purposes only, and will not work
when mixed with a different endianness (they assume little-endians).

Thus, it certainly makes sense to package the binary protocol for
big-endians, too, as long as people are informed of what works.  Since
almost nobody uses big-endian machines, most users won't care.  But
I'd surely be happy to see a patch to fully support all
architectures...

Regards,
Markus

-- 
Markus Mottl http://www.ocaml.info markus.mottl@gmail.com


  reply	other threads:[~2008-05-05 15:01 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-02 21:39 Yaron Minsky
2008-05-02 23:40 ` [Caml-list] " Shivkumar Chandrasekaran
2008-05-02 23:51   ` Yaron Minsky
2008-05-03  8:07     ` Berke Durak
2008-05-03  8:22       ` Richard Jones
2008-05-03  8:54         ` Berke Durak
2008-05-03  9:08           ` Richard Jones
2008-05-03  9:18             ` David Teller
2008-05-03  9:50               ` Stefano Zacchiroli
2008-05-03 10:27                 ` Daniel Bünzli
2008-05-03 15:42                   ` Stefano Zacchiroli
2008-05-03 16:51                     ` Sylvain Le Gall
2008-05-03 17:24                     ` [Caml-list] " Daniel Bünzli
     [not found]             ` <b903a8570805030214i2c3a39a7t442209514f8df3a@mail.gmail.com>
2008-05-03  9:47               ` Richard Jones
2008-05-03 10:17                 ` Berke Durak
2008-05-03 10:55       ` Yaron Minsky
2008-05-05  1:44       ` Markus Mottl
2008-05-05  1:36   ` Markus Mottl
2008-05-03  8:19 ` Richard Jones
2008-05-03 10:56   ` Yaron Minsky
2008-05-03 15:10     ` Ashish Agarwal
2008-05-03 16:21       ` Ralph Douglass
2008-05-05  2:22       ` Markus Mottl
2008-05-06 20:38         ` Ashish Agarwal
2008-05-06 21:02           ` Markus Mottl
2008-05-09 12:17             ` Stefano Zacchiroli
2008-05-15 12:27     ` Richard Jones
2008-05-15 12:40       ` Stefano Zacchiroli
2008-05-15 15:59         ` Markus Mottl
2008-05-15 16:03           ` Markus Mottl
2008-05-15 19:06             ` Richard Jones
2008-05-16 10:16               ` Richard Jones
2008-05-16 17:36                 ` Markus Mottl
2008-05-05  2:14   ` Markus Mottl
2008-05-05  6:42     ` Stefano Zacchiroli
2008-05-05 15:01       ` Markus Mottl [this message]
2008-05-03  8:21 ` Richard Jones
2008-05-03 21:02 ` Dmitry Bely
2008-05-03 21:37   ` Richard Jones
2008-05-03 23:27     ` Yaron Minsky
2008-05-07  5:10 ` Erick Tryzelaar
2008-05-07 13:37   ` Yaron Minsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f8560b80805050801u12e28506ka5dce6287552791d@mail.gmail.com \
    --to=markus.mottl@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=zack@upsilon.cc \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).