From: skaller <skaller@users.sourceforge.net>
To: Martin Jambon <martin.jambon@ens-lyon.org>
Cc: Diego Olivier FERNANDEZ PONS <diego.fernandez_pons@etu.upmc.fr>,
caml-list@inria.fr
Subject: Re: new+old Camlp4 (was Re: [Caml-list] Bug in ocamlyacc)
Date: Wed, 25 Apr 2007 11:03:45 +1000 [thread overview]
Message-ID: <1177463025.6862.26.camel@rosella.wigram> (raw)
In-Reply-To: <Pine.LNX.4.58.0704241231220.19902@localhost>
On Tue, 2007-04-24 at 13:17 -0700, Martin Jambon wrote:
> On Wed, 25 Apr 2007, skaller wrote:
> I wanted to start this as dedicated thread, but let's do it now.
> The current situation with camlp4 3.10-beta is terrible. Not
> because the new camlp4 is not good or anything, but because it is not
> compatible with the old one and yet replaces it. Replacing the old one by
> the new one in the next release of OCaml is practically unmanageable
> because:
>
> 1) Source duplication is unavoidable
> 2) Upgrading to the new camlp4 is not automatic
Curious, but can't you run camlp4 (old) to generate pure Ocaml text?
Then, you have no macros and can re-introduce them.
> A smooth transition would be much preferrable. I acknowledge that I don't
> know how make it possible to use syntax extensions using the old and the
> new camlp4 on a same ocaml source file, but for those using only one
> extension or several extensions using the same version of camlp4, it would
> be convenient if it just works.
An alternative is a translator from old to new syntax, I guess that
would be HARD otherwise it would have been done?
> * It means two versions of camlp4 would be distributed and installed with
> ocaml 3.10.
> * Command names for the new camlp4 would be distinct from the old camlp4.
> * Old programs would still compile and work without having to patch
> makefiles.
> * Upgraded programs could add new features only to the 3.10 version, while
> maintaining minimal support (bug fixes) for the 3.09 version, without
> forcing the camlp4 programmer to use ocaml 3.09 for testing.
> * New programs could support only the new camlp4.
>
> Does that make sense?
I wonder if a pipeline would work, so you can multi-stage
pre-processors?
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
next prev parent reply other threads:[~2007-04-25 1:03 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-23 22:03 Bug in ocamlyacc David Allsopp
2007-04-24 5:29 ` [Caml-list] " skaller
2007-04-24 10:23 ` Diego Olivier FERNANDEZ PONS
2007-04-24 12:06 ` ls-ocaml-developer-2006
2007-04-24 18:25 ` skaller
2007-04-24 20:17 ` new+old Camlp4 (was Re: [Caml-list] Bug in ocamlyacc) Martin Jambon
2007-04-24 21:38 ` Yaron Minsky
2007-04-24 22:53 ` new+old Camlp4 ls-ocaml-developer-2006
2007-04-25 1:03 ` skaller [this message]
2007-04-25 2:29 ` new+old Camlp4 (was Re: [Caml-list] Bug in ocamlyacc) Daniel de Rauglaudre
2007-04-25 17:11 ` Markus Mottl
2007-04-26 3:00 ` skaller
2007-04-27 9:15 ` new+old Camlp4 Xavier Leroy
2007-04-27 13:43 ` Markus Mottl
2007-05-02 8:03 ` [Caml-list] " Hendrik Tews
2007-04-24 14:32 ` [Caml-list] Bug in ocamlyacc Francois Pottier
2007-04-24 18:59 ` skaller
2007-04-24 19:59 ` Francois Pottier
2007-04-27 15:56 ` brogoff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1177463025.6862.26.camel@rosella.wigram \
--to=skaller@users.sourceforge.net \
--cc=caml-list@inria.fr \
--cc=diego.fernandez_pons@etu.upmc.fr \
--cc=martin.jambon@ens-lyon.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox