From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by c5ff346549e7 (Postfix) with ESMTP id 2814C5D4 for ; Sat, 29 Jun 2019 09:44:09 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.63,431,1557180000"; d="scan'208";a="389677778" Received: from sympa.inria.fr ([193.51.193.213]) by mail2-relais-roc.national.inria.fr with ESMTP; 29 Jun 2019 11:44:08 +0200 Received: by sympa.inria.fr (Postfix, from userid 20132) id 3420A826E3; Sat, 29 Jun 2019 11:44:08 +0200 (CEST) Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id B32317ED69 for ; Sat, 29 Jun 2019 11:43:57 +0200 (CEST) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=rich@annexia.org; spf=Pass smtp.mailfrom=rich@annexia.org; spf=Pass smtp.helo=postmaster@annexia.org IronPort-PHdr: =?us-ascii?q?9a23=3ApTpW5hTbl1iE901lHxYQWFLdGtpsv+yvbD5Q0YIu?= =?us-ascii?q?jvd0So/mwa69Yx2N2/xhgRfzUJnB7Loc0qyK6vqmAzZLuMbJ8ChbNsAVDlld0Y?= =?us-ascii?q?RetjdjKfbNMVf8Iv/uYn5yN+V5f3ghwUuGN1NIEt31fVzYry76xzcTHhLiKVg9?= =?us-ascii?q?fbytScbdgMutyu+95YDYbRlWizqhe7NyKwi9oRnMusUMjoZuN7g9xgHXrndWdO?= =?us-ascii?q?ha2GBlLk+Xkxrg+8u85pFu/zlNt/4768JMTaD2dLkkQLJFCzgrL3o779DxuxnZ?= =?us-ascii?q?SguP6HocUmEInRdNHgPI8hL0UIrvvyXjruZy1zWUMsPwTbAvRDSt9LxrRwPyiC?= =?us-ascii?q?cGLDE27mfagdFtga1BoRKhoxt/w5PIYIyQKfFzcL/Rcc8cSGFcRctaSTBPDZ2g?= =?us-ascii?q?YIsOF+oBPPhXr4/hp1sVsBCyARCgCP7zxjNUg3P727Ax3eY8HgHcxAEuEdIAvm?= =?us-ascii?q?rJotv2OqcdXvy6w7TKwjrNdP5WxSvx5ZLUfhw9u/yAQ7R9etfRx0k1EAPFi02d?= =?us-ascii?q?pYL5MTOUyusNs3KU7/B9Wumyi2ErsQZ/riKyzckojYnJgJwaykvK+S5kx4s1P9?= =?us-ascii?q?y4R1J7YdO/CpRQsSeaOJV5Q8MjWW5koiE6yqcJuZOieiUB1ZcpxwbHZvGEb4SE?= =?us-ascii?q?+BPuWeWLLTp8mX5pYq+zihSz/EWm1+byTNO70ExQoSpAitTMtm4C1xjU6sWfUP?= =?us-ascii?q?R9+EGh1iiA1gDS8O5IO0c0lbDUK5I5w74wkIQcsVjbEyL1hEn6lq6be0Y+9uWs?= =?us-ascii?q?9ujreKjqq52dOoNsjwHxKKUumsixAeQiNQgOWnCW+f691LL//U30W69Fjvswkq?= =?us-ascii?q?bHv5HaJN4UqrS+Aw9P3YYv8wy/ACu+0NQEgXkHK0pIdw6dgIjsP1HCOfT4Dfak?= =?us-ascii?q?g1Swizpr3PDHPrj5AprXNHTDkbHhfax860FG0gYzw8pftNpoDeQoJvP3Emr4uN?= =?us-ascii?q?zREBYhPgC40q6zAdN80qsEVGmIA6vfN7nd5wym/OUqdqO2ZYQVsSzxY8djwrim?= =?us-ascii?q?r3g/lERXNf2z3JAXQHm+GPl2IkzfZmDj1IRSWVwWtxYzGbS5wGaJViReMjPrB/?= =?us-ascii?q?plumMLTbm+BIKGfbiDxaSb1X7gTJRQYG1WC1nKFm3nJd3dBqU8LRmKK8okqQQq?= =?us-ascii?q?ELisT4h4jkOnsgn327tuaO3O9X9B7MOx5J1O/+TW0CoK23lxBsWZ3XuKSjgvzG?= =?us-ascii?q?oOQTIm3ak5plZymA6O?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0D6BQDjMRddW7BbRFBmHQEBBQEHBQGBZ?= =?us-ascii?q?4IXJgFDUTMog1WTPE0BAQEBAQEGgTaabQkBAwEMGxEBAgEBgUuCdQKDABwGAQQ?= =?us-ascii?q?0EwEDAQEEAQECAQIDAQYaFSKKWII6KQGCZgEBAQECATo/BQsLGAkTEg8tBxQGE?= =?us-ascii?q?4MjgXYFE6d5hUeEeoE0i18RBng+SYERgxI+iiYEqi8HAgKCFoZTjRsnl2mke4F?= =?us-ascii?q?ngXl9CDuCbAmCRBeOIkEwgQQBjwsBAQ?= X-IPAS-Result: =?us-ascii?q?A0D6BQDjMRddW7BbRFBmHQEBBQEHBQGBZ4IXJgFDUTMog1W?= =?us-ascii?q?TPE0BAQEBAQEGgTaabQkBAwEMGxEBAgEBgUuCdQKDABwGAQQ0EwEDAQEEAQECA?= =?us-ascii?q?QIDAQYaFSKKWII6KQGCZgEBAQECATo/BQsLGAkTEg8tBxQGE4MjgXYFE6d5hUe?= =?us-ascii?q?EeoE0i18RBng+SYERgxI+iiYEqi8HAgKCFoZTjRsnl2mke4FngXl9CDuCbAmCR?= =?us-ascii?q?BeOIkEwgQQBjwsBAQ?= X-IronPort-AV: E=Sophos;i="5.63,431,1557180000"; d="scan'208";a="389677687" X-MGA-submission: =?us-ascii?q?MDHj9PUHxG4mIdBPzcqCfyBApYPF5+1HF2374S?= =?us-ascii?q?HUAY3I6OdVnN2Fs74Dedx9aRb7Bvjuix306igyY5hnnBe9QknUkCHTX4?= =?us-ascii?q?uLoggHoh7OyWK+zTRQ1cfBDo3XybYKvUM/C+GqmMdiRXsOct8JY5NCsK?= =?us-ascii?q?E/JziRJNkDJwTWTJ0Ldm1lYA=3D=3D?= Received: from annexia.org ([80.68.91.176]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 29 Jun 2019 11:43:52 +0200 Received: from rich by annexia.org with local (Exim 4.89) (envelope-from ) id 1hh9te-0000iW-WE; Sat, 29 Jun 2019 10:43:50 +0100 Date: Sat, 29 Jun 2019 10:43:50 +0100 From: "Richard W.M. Jones" To: Anil Madhavapeddy Cc: caml-list@inria.fr, sylvain@le-gall.net Message-ID: <20190629094350.7mw6gif3vz2qxqwp@annexia.org> References: <20190627134517.hzhbmjkihidxlnkz@annexia.org> <45419C48-63D3-4981-B54C-3EEA1F4A6FE6@recoil.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45419C48-63D3-4981-B54C-3EEA1F4A6FE6@recoil.org> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [Caml-list] camlp4 & OCaml 4.08 Reply-To: "Richard W.M. Jones" X-Loop: caml-list@inria.fr X-Sequence: 17655 Errors-to: caml-list-owner@inria.fr Precedence: list Precedence: bulk Sender: caml-list-request@inria.fr X-no-archive: yes List-Id: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Sat, Jun 29, 2019 at 10:06:15AM +0100, Anil Madhavapeddy wrote: > On 27 Jun 2019, at 14:45, Richard W.M. Jones wrote: > > > > > > I know camlp4 is dead and all that, but we've got some software which > > still uses it. I will probably port it to camlp5 when I have the > > time, but has anyone got the patch to make camlp4 work with 4.08? > > > To fork the thread slightly, how big are the camlp4 dependencies remaining > in your codebase, and is there anything we can do to help migrate? The dependencies that I care about run through ocaml-gettext. Gettext is a specific method to make code internationalized and by its nature it involves deep changes throughout our codebase, so porting away from ocaml-gettext isn't an option any time soon. However porting ocaml-gettext to use something else might be. ocaml-gettext has a tool which runs over the OCaml source code and extracts the magic translatable strings, and it's my understanding that this is the only reason it uses camlp4. AIUI this cannot be done using ppx's (maybe I'm wrong about that?) but could be done using camlp5. In fact it was me who did the original port of ocaml-gettext from old camlp4 (ie. camlp5) to camlp4(!) (see libgettext-ocaml/pr_gettext.ml in the OCaml sources) > It's pretty exhausting trying to keep camlp4 maintained with a skeleton > crew, and there appears to be a stubborn tail of packages which aren't > migrating despite it having been quite a few years since the deprecation. I agree, however also changing working code is always a pain and there's never a good time. Rich.