From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 0B5B77EE99 for ; Mon, 20 Jan 2014 13:33:28 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of mshinwell@janestreet.com) identity=pra; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="mshinwell@janestreet.com"; x-sender="mshinwell@janestreet.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of mshinwell@janestreet.com designates 38.105.200.229 as permitted sender) identity=mailfrom; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="mshinwell@janestreet.com"; x-sender="mshinwell@janestreet.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@tot-dmz-mxout1.janestreet.com) identity=helo; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="mshinwell@janestreet.com"; x-sender="postmaster@tot-dmz-mxout1.janestreet.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8BAJsW3VImacjlnGdsb2JhbABZhBm7PYEFHg4BAQEBAQYWCTyCJQEBAQRAAQE3AQ8LCw0uIQESAQUBHAYTh3EDEQMCm2WLE4RSAQWSHw2FVhEGjGuCFAeEOJY6gWyMXYNOGCmEWQ X-IPAS-Result: Aq8BAJsW3VImacjlnGdsb2JhbABZhBm7PYEFHg4BAQEBAQYWCTyCJQEBAQRAAQE3AQ8LCw0uIQESAQUBHAYTh3EDEQMCm2WLE4RSAQWSHw2FVhEGjGuCFAeEOJY6gWyMXYNOGCmEWQ X-IronPort-AV: E=Sophos;i="4.95,690,1384297200"; d="scan'208";a="54005748" Received: from mx5.janestreet.com (HELO tot-dmz-mxout1.janestreet.com) ([38.105.200.229]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 20 Jan 2014 13:33:27 +0100 Received: from tot-oib-smtp1.delacy.com ([172.27.22.15] helo=tot-smtp) by tot-dmz-mxout1.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1W5E2f-0007wh-SP for caml-list@inria.fr; Mon, 20 Jan 2014 07:33:25 -0500 Received: from tot-dmz-mxgoog1.delacy.com ([172.27.224.14] helo=mxgoog2.janestreet.com) by tot-smtp with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1W5E2f-0003kl-RW for caml-list@inria.fr; Mon, 20 Jan 2014 07:33:25 -0500 Received: from mail-ve0-f179.google.com ([209.85.128.179]) by mxgoog2.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1W5E2f-0002JY-Om for caml-list@inria.fr; Mon, 20 Jan 2014 07:33:25 -0500 Received: by mail-ve0-f179.google.com with SMTP id jx11so487708veb.38 for ; Mon, 20 Jan 2014 04:33:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7PgoBjxeV0B5aKq+2EOQyH6R99Ad7m7gQFbM4luCGGs=; b=B5Yndz8lhTpO8/GCfOYoZBq/9jzivgaezs65B9GGAZTXxR3n4Dp656JFwoqOzP6RH+ dILWegbkvnh9xDz0fzoCeX8rO3nvMHtAkF4UEsonSV4HHn62eXeDseih+J3c+wiPxdVy sk8kejsN3plKPq7S6rw8m+qXafQSXq5unsU50= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=7PgoBjxeV0B5aKq+2EOQyH6R99Ad7m7gQFbM4luCGGs=; b=irIMLqdy9JJgPpueZ/yFK7v7j5AJ6AvPA7i5qOF3UoX51WHcHBEbtg0AoQMS002C69 Yb/zFY5FLFrSajEAckrqtyjM4SDZeW43+zu23acqEh3vf4tfEFzrRuRzUPR3ECrDPvwx Do37oNHyUrPALNj6bgEuwh1Z6UlYvn9Csh7JFdoRJtUhG4fstDxQ1Xv/UV0w7wis2b3p 06dIJqrbgLs5plHcTIysyX7VB4kdzM/BFtLB1qn48h/XDwQTOrGjStUEzkg/GC44VCli SVLaW6Gq0aKdsX1Uu2fcVL6RwlVrezxIZRhqOtagY/LZ5gPzBpn5v2xb/lX8k+UMvbWb epwA== X-Gm-Message-State: ALoCoQm+1CiYl+bQO4IeQPZTlbwezoKby45Mgt2gcBoDqtU12tzw9HTd1yZl906CAZZhRdZn8v8T5XJehS+WO6QqKxigUIE8mWuHz7R4mor18MiQn+s4zbsEsokTrq0MCk+9SkGtRKC5fdxvvd7ZIz3cRT5y+L7Ixw== X-Received: by 10.53.9.201 with SMTP id du9mr34692vdd.36.1390221205624; Mon, 20 Jan 2014 04:33:25 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.53.9.201 with SMTP id du9mr34688vdd.36.1390221205553; Mon, 20 Jan 2014 04:33:25 -0800 (PST) Received: by 10.58.152.106 with HTTP; Mon, 20 Jan 2014 04:33:25 -0800 (PST) In-Reply-To: References: Date: Mon, 20 Jan 2014 12:33:25 +0000 Message-ID: From: Mark Shinwell To: Bob Atkey Cc: "caml-list@inria.fr" Content-Type: text/plain; charset=ISO-8859-1 X-Validation-by: mshinwell@janestreet.com Subject: Re: [Caml-list] ANN: unboxed-arrays-0.1: Unboxed arrays for OCaml On 20 January 2014 12:24, Bob Atkey 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