From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA12685; Thu, 9 Sep 2004 10:23:58 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA13612 for ; Thu, 9 Sep 2004 10:23:57 +0200 (MET DST) Received: from annexia.force9.co.uk (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i898Nufh003645 for ; Thu, 9 Sep 2004 10:23:57 +0200 Received: from rich by annexia.force9.co.uk with local (Exim 3.36 #1 (Debian)) id 1C5KDi-0005th-00 for ; Thu, 09 Sep 2004 09:23:54 +0100 Date: Thu, 9 Sep 2004 09:23:54 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Gripes with array Message-ID: <20040909082354.GA22512@annexia.org> References: <200409090310.29295.jon@jdh30.plus.com> <16704.901.571258.566181@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <16704.901.571258.566181@gargle.gargle.HOWL> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at concorde with ID 4140131C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 filliatre:01 pointers:01 byterun:01 mlvalues:01 92.:99 type-safe:01 arrays:01 ltd:98 ocaml:01 caml:01 caml:01 garbage:01 0200,:01 X-Attachments: type="application/pgp-signature" name="signature.asc" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 09, 2004 at 09:17:25AM +0200, Jean-Christophe Filliatre wrote: >=20 > Jon Harrop writes: > >=20 > > Does anyone have any pointers to information about the origin of the s= ize=20 > > limit for arrays? I assume it is something to do with the garbage coll= ector=20 > > using a fixed-size tag instead of a variable-size one but I'd be inter= ested=20 > > in the details. >=20 > In ocaml sources, the file byterun/mlvalues.h gives all details about > the block header structure. There you can see that, on 32 bits > architecture, the block size (in words) is stored on 22 bits. And > indeed Sys.max_array_length is equal to 2^22-1. >=20 > But I must agree with you: this is definitely too small and we could > imagine that, when the tag says a block is an array, the size is > stored within the first (or the last) field instead. I have a similar problem with the maximum size of strings. In practical terms, it limits the size of file uploads to COCANWIKI to around 6 MB (ie., not very much) [not the full 16 MB because of character escaping, but even 16 MB would be far too small]. Does the tag field need to be so wide? What does the tag mean if it has different values < No_scan_tag (251)? Agree with the comment about us all migrating to 64 bit architectures very soon, although I've been waiting to do this since around '92. Rich. --=20 Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment MOD_CAML lets you run type-safe Objective CAML programs inside the Apache webserver. http://www.merjis.com/developers/mod_caml/ --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFBQBMa4le1M6q9pzoRAlxiAJ9u+8SGSxTJOr7Tb32HUpF9FM7a8QCgxJaP 6U+RAr3Nc/MOeDayzHo/ii8= =VnGA -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners