caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Mark Shinwell <mshinwell@janestreet.com>
To: Bob Atkey <bob.atkey@gmail.com>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] ANN: unboxed-arrays-0.1: Unboxed arrays for OCaml
Date: Mon, 20 Jan 2014 12:33:25 +0000	[thread overview]
Message-ID: <CAM3Ki75U3WHQPhbNaCGiGVrFLgFqacM5KPBiOFaxb8TZiM=PJw@mail.gmail.com> (raw)
In-Reply-To: <CA+aevF854qoh03w9dhbso3QLWSqY9UvKcDjZpgob-u3ccg=_aw@mail.gmail.com>

On 20 January 2014 12:24, Bob Atkey <bob.atkey@gmail.com> wrote:
>> (In case you are wondering,
>> if you put some other variety of value in the array, then it's
>> probably safe but won't be useful---since in particular there
>> is no "set" method provided.)
>
> Unfortunately, Flat_array seems to go a bit awry when you put strings
> or arrays in as the default element

Ah, yeah, so thinking about this: any value whose accessors
depend on the size of the value [that is stored within the
value itself] isn't going to work.  The "sub-values" (e.g.
the individual records) inside a single [Flat_array] value
don't have the usual size field in the header.  Strings are
an example that will hit this problematic case.

Mark

      reply	other threads:[~2014-01-20 12:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-19 18:01 Bob Atkey
2014-01-20  8:47 ` Mark Shinwell
2014-01-20 12:24   ` Bob Atkey
2014-01-20 12:33     ` Mark Shinwell [this message]

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='CAM3Ki75U3WHQPhbNaCGiGVrFLgFqacM5KPBiOFaxb8TZiM=PJw@mail.gmail.com' \
    --to=mshinwell@janestreet.com \
    --cc=bob.atkey@gmail.com \
    --cc=caml-list@inria.fr \
    /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).