From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id D5BF1BC69 for ; Mon, 13 Aug 2007 19:55:07 +0200 (CEST) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7DHt7ii007889 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 13 Aug 2007 19:55:07 +0200 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1IKe85-0006UE-00; Mon, 13 Aug 2007 18:55:01 +0100 Date: Mon, 13 Aug 2007 18:55:01 +0100 To: Jon Harrop Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Int32 and boxing Message-ID: <20070813175501.GA24394@furbychan.cocan.org> References: <200708130508.10023.jon@ffconsultancy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200708130508.10023.jon@ffconsultancy.com> User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at concorde with ID 46C09AFB.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; 0100,:01 bool:01 interfacing:01 wrote:01 caml-list:01 marshal:01 int:01 int:01 sys:03 languages:03 repr:04 guess:04 size:95 types:05 aug:07 On Mon, Aug 13, 2007 at 05:08:09AM +0100, Jon Harrop wrote: > > Are int32s are boxed on a 64-bit machine? Unfortunately yes: # Obj.is_block (Obj.repr 1_l);; - : bool = true # Sys.word_size;; - : int = 64 I deal a lot with int32 and int64 types when interfacing with other languages, so this causes an annoyance. I'm not sure what the implications would be of having a different representation on 32 and 64 bit machines. I guess Marshal would have to go through hoops for a start. Rich. -- Richard Jones Red Hat