Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp4 -I and shared libs
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Benedikt Grundmann <benedikt@c...>
Subject: Re: [Caml-list] camlp4 -I and shared libs
Hi everybody,

At the risk of sounding harsh, I do not like this wiki at all, due to
several reasons:

1) Default style sheet is a partial user interface nightmare, a lot of
the links are embedded in  titles, which happen to have nearly the
same styling... So you actually have to hover above each title to find
the links.

2) Structure is a mess...  Camlp4 can do a lot and that is great.  But
I do believe that the primary motivation is the extension of OCaml and
some simple examples, or even better yet some kind of tutorial is
needed. It definitely should start simple maybe even over simplifying
things and very very gradually introduce the true power...

Anyway I personally learned more from the extremely short page at:

http://www.ocaml-tutorial.org/camlp4_3.10

In particular the link to json_static was helpful.

In that spirit here is a link to a syntax extension that I am writing
as part of the OCaml Summer Project:
http://osprepo.janestcapital.com/trac/osp2007/browser/osp/2007/econcurrency/trunk/src/pa_receive.ml

Cheers,

Bene

PS: I do not want to start a flame war, or offend the creators of the
Wiki.  I just wanted to point out that right now the wiki is not
helpful, unless you already now a lot about camlp4...

PPS: My syntax extension captures the identifier msg.  How is one
supposed to write hygienic macros?  Should I just store a counter
somewhere and generate identifiers like "msg__32432" and hope that
nobody else uses the same prefix, or is there some support for things
like that in camlp4?



2007/6/29, Robert Roessler <roessler@rftp.com>:
> Nicolas Pouillard wrote:
> > On 6/29/07, Hendrik Tews <H.Tews@cs.ru.nl> wrote:
> >> "Nicolas Pouillard" <nicolas.pouillard@gmail.com> writes:
> >>
> >>    No major change is planned for Camlp4. I think that's reasonable to
> >>    start translating extensions.
> >>
> >> Where is the documentation?
> >
> > http://brion.inria.fr/gallium/index.php/Camlp4
>
> Ah, it's the old "You do not like our docs?  Here is the wiki - feel
> free to contribute" trick. ;)
>
> Robert Roessler
> roessler@rftp.com
> http://www.rftp.com
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>


-- 
Calvin: I try to make everyone's day a little more
surreal.

(From Calvin & Hobbes)