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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id EA5ED7EE49 for ; Thu, 19 Sep 2013 10:47:34 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of rossberg@mpi-sws.org) identity=pra; client-ip=139.19.1.49; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="rossberg@mpi-sws.org"; x-sender="rossberg@mpi-sws.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of rossberg@mpi-sws.org designates 139.19.1.49 as permitted sender) identity=mailfrom; client-ip=139.19.1.49; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="rossberg@mpi-sws.org"; x-sender="rossberg@mpi-sws.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@hera.mpi-klsb.mpg.de) identity=helo; client-ip=139.19.1.49; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="rossberg@mpi-sws.org"; x-sender="postmaster@hera.mpi-klsb.mpg.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlYCAOe4OlKLEwExemdsb2JhbABbxT6BOA4BAQsHDQk8giUBAQVAAQE3AQ8LGC5XBhOIA6ZXhEwBBY5DBo80MweDHoEAnjCOag X-IPAS-Result: AlYCAOe4OlKLEwExemdsb2JhbABbxT6BOA4BAQsHDQk8giUBAQVAAQE3AQ8LGC5XBhOIA6ZXhEwBBY5DBo80MweDHoEAnjCOag X-IronPort-AV: E=Sophos;i="4.90,936,1371074400"; d="scan'208";a="27366531" Received: from hera.mpi-sb.mpg.de (HELO hera.mpi-klsb.mpg.de) ([139.19.1.49]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 19 Sep 2013 10:47:34 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mpi-sws.org; s=mail200803; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Content-Type:Mime-Version:Subject; bh=wUocwWHcivnwvyM1hHRx+JyQcdQjfbqXuJzHgvH8HxA=; b=rtUoBtETtE7EMCSU/eXmPJi9nosLrxBLbwhMLeDu6S0YkN+u0CvhCZty054BLPwX0mDnof2Vzm0dSXXyKtKHbHSVLYZRZ9r7TxhBIbC/GyD/kZALPK2z7z1hwCituoAFSpq9DCjwSWPfLCugENyZ+1wfrVukRid28aHOP8lwRcU=; Received: from zak.mpi-klsb.mpg.de ([139.19.1.29]:43287) by hera.mpi-klsb.mpg.de (envelope-from ) with esmtp (Exim 4.72) id 1VMZta-0003Ck-6g; Thu, 19 Sep 2013 10:47:32 +0200 Received: from [66.181.92.190] (port=51858 helo=[10.1.199.183]) by zak.mpi-klsb.mpg.de (envelope-from ) with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) id 1VMZtZ-0003yK-Kp; Thu, 19 Sep 2013 10:47:29 +0200 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=iso-8859-1 From: Andreas Rossberg In-Reply-To: <560D4746649B40B9A0008658FAC292C5@erratique.ch> Date: Thu, 19 Sep 2013 10:47:30 +0200 Cc: Alain Frisch , Gour , caml-list@inria.fr Content-Transfer-Encoding: quoted-printable Message-Id: <5EF7A3B1-7404-446E-8602-44C06E2EAC8D@mpi-sws.org> References: <20130910230928.2d51cd39@atmarama.noip.me> <20130911073854.GA4499@kerneis.info> <20130911102024.6a311672@atmarama.noip.me> <1378899769.11824.15.camel@thinkpad> <20130918134229.37a0df52@atmarama.noip.me> <523AB1C7.1050509@frisch.fr> <560D4746649B40B9A0008658FAC292C5@erratique.ch> To: =?iso-8859-1?Q?Daniel_B=FCnzli?= X-Mailer: Apple Mail (2.1499) X-MPI-Local-Sender: true Subject: Re: [Caml-list] OCaml vs Ada and/or GUI options On Sep 19, 2013, at 10:30 , Daniel B=FCnzli w= rote: > Le jeudi, 19 septembre 2013 =E0 10:11, Alain Frisch a =E9crit : >> - The lack of weak hash tables, which we use quite a lot. I wonder if >> Firefox's experimental WeakMap could be used to simulate them (and if=20= =20 >> other browsers will get similar features). >=20 > AFAIK, the answer is no. I explain why in this message [1]. As you say, WeakMap is a feature of the upcoming EcmaScript 6 standard, and= hence will be supported by all browsers sometime soon. (FWIW, Chrome also= has supported WeakMap for a while, albeit you still need to turn on the 'E= xperimental JavaScript' flag on the chrome://flags page. And IIRC, other ve= ndors are working on it already.) But yes, WeakMap is carefully designed to not make GC observable, so it can= not implement weak references. Weak references are on the agenda for ES7, b= ut that will take another two years at least. /Andreas