Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Caml-list] A web toolkit for OCaml (logging, RSS, etc)

4 views
Skip to first unread message

Joel Reymont

unread,
Mar 29, 2007, 7:38:29 PM3/29/07
to Caml List
Folks,

My forays into binding OCaml to Ruby have failed and I'm thinking
about going all OCaml.

Assuming that I'm running naked nethttpd as my web server, how should
I implement logging of HTTP requests to disk (a-la Apache)? Is this
something that exists somewhere?

Also, what XML package for OCaml is the easiest for publishing RSS
and parsing XHTML?

I looked at several possible options this week. On the one hand, Alex
Baretta graciously provided me with source code for AS/XCaml which I
found overwhelmingly complex and I totally dislike how OCaml code is
embedded in Ocsigen's templates. On the other hand, I managed to get
mod_caml up and running and compile ocamlnet.

I'm thinking of pairing Bruno De Fraine's "Toy implementation of
Zope's TAL" [1] with nethttpd and running my site on that. As an
alternative, I may be able to plug Bruno's templates into mod_caml or
Ocsigen.

I'm looking for advice here.

Thanks in advance, Joel

[1] http://tinyurl.com/28xvj8

--
http://wagerlabs.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

Jon Harrop

unread,
Mar 29, 2007, 7:50:35 PM3/29/07
to caml...@yquem.inria.fr
On Friday 30 March 2007 00:37, Joel Reymont wrote:
> My forays into binding OCaml to Ruby have failed and I'm thinking
> about going all OCaml.

I'd go for separate programs with message communication.

> Assuming that I'm running naked nethttpd as my web server, how should
> I implement logging of HTTP requests to disk (a-la Apache)? Is this
> something that exists somewhere?

I believe there are bindings for things like log4 but I can't remember where.

> Also, what XML package for OCaml is the easiest for publishing RSS
> and parsing XHTML?

I've only ever used XML-Light. It is great when it works but it doesn't handle
things like incremental parsing and whitespace. I believe Gerd's XML
libraries are more compliant but harder to use.

--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists

Richard Jones

unread,
Mar 30, 2007, 6:05:11 PM3/30/07
to Joel Reymont
On Fri, Mar 30, 2007 at 12:37:16AM +0100, Joel Reymont wrote:
> Also, what XML package for OCaml is the easiest for publishing RSS
> and parsing XHTML?

COCANWIKI (very recent versions) use OCamlRSS and xml-light.

Rich.

--
Richard Jones
Red Hat

0 new messages