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.3 required=5.0 tests=PORN_URL_SEX autolearn=disabled version=3.1.3 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 695ACBBC4 for ; Thu, 16 Apr 2009 21:15:23 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuIDAM8g50lYvxGEgWdsb2JhbACBU5R/AQEWIrpKg30G X-IronPort-AV: E=Sophos;i="4.40,200,1238968800"; d="scan'208";a="24710838" Received: from www.rastageeks.org (HELO mail.rastageeks.org) ([88.191.17.132]) by mail2-smtp-roc.national.inria.fr with ESMTP; 16 Apr 2009 21:15:23 +0200 Received: from leonard.localnet (bas1-montreal42-1178045840.dsl.bell.ca [70.55.141.144]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.rastageeks.org (Postfix) with ESMTPSA id AE34DABEBE for ; Thu, 16 Apr 2009 21:15:22 +0200 (CEST) From: Romain Beauxis To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] [ANN] ocamltarzan 0.1 Date: Thu, 16 Apr 2009 15:15:21 -0400 User-Agent: KMail/1.11.2 (Linux/2.6.29-1-amd64; KDE/4.2.2; x86_64; ; ) References: <87iql4tqgj.fsf@aryx.cs.uiuc.edu> In-Reply-To: <87iql4tqgj.fsf@aryx.cs.uiuc.edu> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200904161515.21327.toots@rastageeks.org> X-Spam: no; 0.00; camlp:01 camlp:01 foo:01 sexp:01 dependencies:01 ocaml:01 2009:98 incompatible:01 caml-list:01 dependency:01 generated:05 generated:05 fork:05 ecrit:06 useful:09 Hi ! Le Thursday 16 April 2009 14:15:40 Yoann Padioleau, vous avez =E9crit : > Sexplib and binprot by Jane Street are attractive, but they rely on > camlp4. I don't like camlp4. I like the metaprogramming facility it > offers but it has many disadvantages. So I've found a in-the-middle > solution where I use camlp4 to generate code (via the small script > ocamltarzan.ml), save the generated code in a file (e.g > test/foo_sexp.ml), which allows then to completely remove the > dependency to camlp4. Once the code has been generated, all > dependencies to camlp4 can be removed. If tomorrow an incompatible new > version of camlp4 arrives (e.g. camlp6 ...), your code will still > work, because it does not rely on the new behavior of this camlp4. > It's just regular plain good ocaml code. Shouldn't this just be a software/script independant from sexplib ? On the one hand, such a technique could be useful for other code using othe= r=20 camlp4 extensions, and on the other hand, this would avoid yet another fork= =2E.. Romain