From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 126A8BB84 for ; Fri, 19 May 2006 18:27:28 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k4JGRREY027261 for ; Fri, 19 May 2006 18:27:27 +0200 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 SAA24622 for ; Fri, 19 May 2006 18:27:27 +0200 (MET DST) Received: from osiris.uid0.sk (osiris.uid0.sk [62.168.97.100]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k4JGRQhO023441 for ; Fri, 19 May 2006 18:27:26 +0200 Received: from osiris.uid0.sk (localhost [127.0.0.1]) by nod32.uid0.sk (Postfix) with ESMTP id 4D5C187C127 for ; Fri, 19 May 2006 18:28:44 +0200 (CEST) X-Virus-Scanner: This message was checked by NOD32 Antivirus system NOD32 for Linux Mail Server. For more information on NOD32 Antivirus System, please, visit our website: http://www.nod32.com/ Received: by osiris.uid0.sk (Postfix, from userid 1002) id 3CADD87C124; Fri, 19 May 2006 18:28:44 +0200 (CEST) Date: Fri, 19 May 2006 18:28:44 +0200 From: Jozef Kosoru To: caml-list@inria.fr Subject: Re: [Caml-list] Array 4 MB size limit Message-ID: <20060519162844.GA32550@osiris.uid0.sk> References: <20060515141230.ajyupn2z28k0484s@horde.akalin.cx> <446986DF.1070308@inria.fr> <446D5E4A.8060005@akalin.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <446D5E4A.8060005@akalin.cx> User-Agent: Mutt/1.4.2.1i X-Miltered: at nez-perce with ID 446DF1EF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 446DF1EE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 bigarrays:01 vectors:01 arrays:01 2006:98 2006.:98 wrote:01 caml-list:01 data:02 caml:02 filesystem:02 floats:02 programming:03 explanation:03 library:03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Thu, May 18, 2006 at 22:57:30 -0700, Frederick Akalin wrote: > >Historical digression: this representation decision was initially > >taken when designing Caml Light in 1989-1990. At that time, even > >professional workstations ... Little did I know that the 32-bitters > >would survive so long. Now, it's 2006, and 64-bit processors are > >becoming universally available, in desktop machines at least. (I've > >been running an AMD64 PC at home since january 2005 with absolutely > >zero problems.) So, no the data representations of OCaml are not > >going to change to lift the array size limit on 32-bit machines. > > I see. This is a perfectly reasonable explanation. I ended up just > using Bigarrays of floats for now and converting from those to 3-d > vectors on demand (what I need), but it would be nice to have a type > that wraps around Array that can get around the 4M limit (using an > array of arrays like someone suggested earlier). It's sad, but I > think 32-bit is going to be around for a while, and surely I can't be > the only person to run up against this. :) Not that I mind writing > such a library and releasing it. I wonder if the Extlib guys would be > interested... Yes. 32-bit x86 platform is not going away anytime soon. Given that 512M RAM is now standard and 1G RAM is very common for an average PC - having a programming language with 4M limit for the array size is like to have an 8+3 characters filename limitation on a filesystem using a mainstream 300G disk in 2006. However I understand the techical difficulty to solve this issue - it's pretty annoying anyhow :) Jozef -- jozef kosoru http://zyzstar.kosoru.com