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 2499A7EF21 for ; Wed, 18 Jun 2014 18:23:28 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of yminsky@janestreet.com) identity=pra; client-ip=38.105.200.115; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="yminsky@janestreet.com"; x-sender="yminsky@janestreet.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of yminsky@janestreet.com designates 38.105.200.115 as permitted sender) identity=mailfrom; client-ip=38.105.200.115; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="yminsky@janestreet.com"; x-sender="yminsky@janestreet.com"; 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@mxout1.mail.janestreet.com) identity=helo; client-ip=38.105.200.115; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="yminsky@janestreet.com"; x-sender="postmaster@mxout1.mail.janestreet.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApEBAP67oVMmachznGdsb2JhbABahDmCbKctBpkoAYECHg8BAQEBAQYWCTyEAwEBAQQSER0BATcBDwsLDQICJgICIhIBBQEcBhMIEweIIAMCoX5qijB3hQEBBZl2EQaBKoQ4g2CFADMHgneBTAGaRpFnGCmFDg X-IPAS-Result: ApEBAP67oVMmachznGdsb2JhbABahDmCbKctBpkoAYECHg8BAQEBAQYWCTyEAwEBAQQSER0BATcBDwsLDQICJgICIhIBBQEcBhMIEweIIAMCoX5qijB3hQEBBZl2EQaBKoQ4g2CFADMHgneBTAGaRpFnGCmFDg X-IronPort-AV: E=Sophos;i="5.01,501,1400018400"; d="scan'208";a="67781102" Received: from mxout2.mail.janestreet.com (HELO mxout1.mail.janestreet.com) ([38.105.200.115]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 18 Jun 2014 18:23:27 +0200 Received: from tot-smtp.delacy.com ([172.27.22.15] helo=tot-smtp) by mxout1.mail.janestreet.com with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82) (envelope-from ) id 1WxIdw-0003Ag-Nz for caml-list@inria.fr; Wed, 18 Jun 2014 12:23:24 -0400 Received: from tot-dmz-mxgoog1.delacy.com ([172.27.224.14] helo=mxgoog2.janestreet.com) by tot-smtp with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WxIdw-0001xn-LL for caml-list@inria.fr; Wed, 18 Jun 2014 12:23:24 -0400 Received: from mail-lb0-f170.google.com ([209.85.217.170]) by mxgoog2.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1WxIdw-0000xA-GJ for caml-list@inria.fr; Wed, 18 Jun 2014 12:23:24 -0400 Received: by mail-lb0-f170.google.com with SMTP id 10so688740lbg.15 for ; Wed, 18 Jun 2014 09:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=9f3rat0KltmKPbBcTyC1MeNj+BRnDh7aIbRxgOZX8O8=; b=GI0Yj9mJDr1TsdAd7WAfbC5FjdwZUI33XqzVmIVnoNEeIVWuYHPmwRkIXnkYAR4exF qdLpqZBjZhuXaKK7CBuf3hQGyPPD3nF5yQCrqtgLr+jgYvwGCiZTx99h25XaBheVzfHF /gfa0YDyydOiQiKCKKiVzlV0qEnE0H4YVQU78= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=9f3rat0KltmKPbBcTyC1MeNj+BRnDh7aIbRxgOZX8O8=; b=Rd5CZbrYTjfhL+rY+cR1tY840EuiT6P6+ioxsVGKJzHkvOAgsx1m+QQDXNGGjawZt+ K1r/iRDFEgc+HTruVVhMSPijrGk5bXa+cZEwobBt1qkX8aEV7jaJAzk0p04bRpmZXX7q t/rdw1vmpqK8NAoa77EhndDObPkHj506vr4IKMLi9cV+t/nOvLYk/YTuEtgIf0pR6Xhi tR7rLaytRP7b8F6G2ewaHVw953jlnPf7uUrNeoCYhhJPOnXLiYxRzaeuqzeRp3Ac6rFI 1un5QX3b6Rz+cJq8N2dbs7j+ieuaDKG3Xt6HKnsxE7zDGJphZLgeADAv6RmcqxrLnoTQ 3sZg== X-Gm-Message-State: ALoCoQlA3noq9XiGluV7rYonlFWbN9MwkVgdCJ4kVsQ9LtS5AWZYrbEVuyz6azOuDoXHseWqKurQe247lnfMX08UCN66cP8aVgfuAgizBUx6lX1Hxi4Hpg07F6WoakXzqYRCQ2Jzg/RS X-Received: by 10.152.207.11 with SMTP id ls11mr2002316lac.62.1403108603823; Wed, 18 Jun 2014 09:23:23 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.207.11 with SMTP id ls11mr2002312lac.62.1403108603741; Wed, 18 Jun 2014 09:23:23 -0700 (PDT) Received: by 10.112.3.39 with HTTP; Wed, 18 Jun 2014 09:23:23 -0700 (PDT) In-Reply-To: <53A18CA3.7030402@cea.fr> References: <53A14140.2060502@cea.fr> <53A18CA3.7030402@cea.fr> Date: Wed, 18 Jun 2014 12:23:23 -0400 Message-ID: From: Yaron Minsky To: =?UTF-8?Q?Fran=C3=A7ois_Bobot?= Cc: "caml-list@inria.fr" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] [ANN] Core Suite 111.17.00 We actually had a discussion about this internally, and I was mostly convinced that my transition plan is the wrong one --- that it's probably better to leave the old camlp4 based syntax extensions as they are, and just mothball them; leave them around, but stop improving them. And then people who want to use the new and better-supported extensions will need to flip to using ppx. And you can use the camlp4-based solution to straddle the gap if you need to support both new and old compilers. y On Wed, Jun 18, 2014 at 8:57 AM, Fran=C3=A7ois Bobot wrote: > On 18/06/2014 11:28, Yaron Minsky wrote: >> This change isn't really part of that transition, but that transition wi= ll likely be necessary. My >> sense is that the right thing is to rewrite the syntax extensions using = extension points, and then >> write a shim camlp4 extension that converts "with sexp" to the correct a= nnotation. That said, this >> is a long and tricky process that won't happen immediately on 4.02's rel= ease. > > Thank you for the quick answer. That seems the right transition path for = the code of a project, but > I wonder what happen at a bigger scale. > > After the transition projects will need to support older versions of ocam= l that perhaps don't have > extension points. Moreover every projects will not do the transition at t= he same time. > > It seems, IMHO, that type-conv will have to work for the following cases = transparently: > > - camlp4 (with ocaml < 4.02 or >=3D 4.02) old syntax > - camlp4 (with ocaml < 4.02 or >=3D 4.02) new syntax > > - extension point (with ocaml >=3D 4.02) new syntax > > > Do you agree with that? Do you think it is doable/maintainable until ocam= l < 4.02 are not used anymore? > > > Best, > > -- > Fran=C3=A7ois