English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Ocaml-Weblib?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-24 (13:39)
From: Gerd Stolpmann <info@g...>
Subject: Re: [Caml-list] Ocaml-Weblib?

Am 2002.08.24 01:38 schrieb(en) Oliver Bandel:
> Hello Gerd,
> On Thu, 22 Aug 2002, Gerd Stolpmann wrote:
> > 
> > Am 2002.08.21 20:49 schrieb(en) Oliver Bandel:
> > > Hello,
> > > 
> > > is there a Library for parsing/analysing Webpages?
> > > 
> > > I want to write a tool, that helps me searching
> > > on websites, and I don't want to rewrite such a library from scratch.
> > > 
> > > Is there something for Ocaml, similar (or even better :))
> > > like Web-/CGI-Libs for Perl?
> > 
> > You may have a look at ocamlnet, http://sourceforge.net/projects/ocamlnet.
> > It includes an HTML parser, and CGI support. For HTTP operations, netclient
> > http://www.ocaml-programming.de/programming/netclient.html may be helpful.
> Well I think it is designed to be used under bigger
> programming environments (gtk is necessary).
> Isn't there a lib, which does not require such GUI-stuff like
> gtk?
> Isn't there a pure lib for handling the networkstuff?

This is wrong. Neither ocamlnet nor netclient require gtk. (I really wonder
where you have found this; there is no published piece of code from me that
uses gtk.)

Of course, these libraries have requirements, mostly because of coding 
economy. I try to avoid to program functions twice, or to distribute the
same function twice under different names. (Nevertheless this happens, e.g.
there are parsers for mail (RFC822) messages in both ocamlnet and netclient.)
You are right that "bigger programming environments" profit more from this
approach, because code is shared. It makes it also simpler for me, the author,
because I need to maintain smaller amounts of code.

In particular, ocamlnet needs PCRE, and netclient needs (besides ocamlnet) 
equeue, and optionally xstr (for multi-threaded apps). A quite short 
dependency chain, IMHO. It might be possible that netclient and equeue are 
integrated into ocamlnet in the future, but a lot of consolidation is needed

Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners