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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id DCF5EBBAF for ; Tue, 22 Dec 2009 19:02:38 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhIBAO+YMEvRVdOskGdsb2JhbACRZYIXhw0/AQEBAQkJDAcTA6srgTKFOohVAQIDBYQuBA X-IronPort-AV: E=Sophos;i="4.47,437,1257116400"; d="scan'208";a="39195136" Received: from mail-yw0-f172.google.com ([209.85.211.172]) by mail2-smtp-roc.national.inria.fr with ESMTP; 22 Dec 2009 19:02:38 +0100 Received: by ywh2 with SMTP id 2so6663893ywh.27 for ; Tue, 22 Dec 2009 10:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=7xRzv/tpUgeK1BrbDDmeIo5ca4+BS2MmEJxIdjB0tEE=; b=ppdBYj0yMGTe64sBBrZ1Ks2FutqGH/R2MpDln8eoElDFfUxQBVi1eKDNjLYGWN++FC T5z4wtkc/zL0js2Vw1u7GIgRHZJ80G54XSP9LCEpaacjM3+4FxDiJNGRgm2sf3WO9RSm 4xohUKZL/BHUEG4hnX93qP9aG4nNmviDghb6w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=s142AU7nVroemxQR4SIxfORBOWQeOeVak5j3eCnsKPt2iRpJ4thF6963L6ObXxf+i/ lJTne40QSPsqR2NAUNuk22GtMJpnBwBjfhG6kHHYvA//+mtlsBjoGh4DZsZIG4VUyHxj s2TGBxeVng0quOTs+vWV0PcI2lb6ibL9zdmEU= Received: by 10.150.45.36 with SMTP id s36mr13616546ybs.334.1261504957212; Tue, 22 Dec 2009 10:02:37 -0800 (PST) Received: from ?192.168.0.11? (ppp-70-243-138-240.dsl.stlsmo.swbell.net [70.243.138.240]) by mx.google.com with ESMTPS id 22sm5682357iwn.8.2009.12.22.10.02.34 (version=SSLv3 cipher=RC4-MD5); Tue, 22 Dec 2009 10:02:34 -0800 (PST) Message-ID: <4B3109B8.1090406@gmail.com> Date: Tue, 22 Dec 2009 12:02:32 -0600 From: Edgar Friendly User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7pre) Gecko/20091209 Shredder/3.0.1pre MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Re: multicore wish References: <4B2D2BC1.6020204@msu.edu> <200912211953.23880.jon@ffconsultancy.com> <87oclrrw8o.fsf@frosties.localdomain> <200912221912.51017.jon@ffconsultancy.com> In-Reply-To: <200912221912.51017.jon@ffconsultancy.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 pointers:01 ocaml:01 pointers:01 structs:01 pointer:01 edgar:98 2009:98 2009:98 wrote:01 wrote:01 avoids:01 caml-list:01 tuples:01 complex:05 On 12/22/2009 01:12 PM, Jon Harrop wrote: > On Tuesday 22 December 2009 13:09:27 Goswin von Brederlow wrote: > >> The advantage with ocaml though is that you never have pointers into a >> structure. Makes thinks a lot simpler for the GC and avoids large >> overheads in memory. >> > I don't understand what you mean by OCaml "never has pointers into a > structure". Half the problem with OCaml is that OCaml almost always uses > pointers and the programmer has no choice, e.g. for complex numbers. > > I think he means that ocaml structs (records, tuples) will only ever have pointers pointing to their beginning - you can't have a pointer to somewhere in the middle of a structure. E