caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Perl-like Regexps implemented in Ocaml?
@ 2005-09-22 22:43 Oliver Bandel
  2005-09-27 16:05 ` [Caml-list] " Jerome Vouillon
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Bandel @ 2005-09-22 22:43 UTC (permalink / raw)
  To: caml-list

Hello,


recently I read a security warning about perlre-library.

As there is a binding to this Library to OCaml (Markus Mottl's),
this means: a security risk for applications which use this library.

Is there any Perl-like regexp-library written in OCaml?


Regards, 
   Oliver Bandel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Perl-like Regexps implemented in Ocaml?
  2005-09-22 22:43 Perl-like Regexps implemented in Ocaml? Oliver Bandel
@ 2005-09-27 16:05 ` Jerome Vouillon
  2005-09-27 16:39   ` Gerd Stolpmann
  0 siblings, 1 reply; 4+ messages in thread
From: Jerome Vouillon @ 2005-09-27 16:05 UTC (permalink / raw)
  To: Oliver Bandel; +Cc: caml-list


Hello,

On Fri, Sep 23, 2005 at 12:43:43AM +0200, Oliver Bandel wrote:
> Is there any Perl-like regexp-library written in OCaml?

I wrote a fairly powerful regular expression library some years ago.
You can find it on <http://sourceforge.net/projects/libre/>.

Regards,

-- Jerome


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Perl-like Regexps implemented in Ocaml?
  2005-09-27 16:05 ` [Caml-list] " Jerome Vouillon
@ 2005-09-27 16:39   ` Gerd Stolpmann
  2005-10-03 19:15     ` Jerome Vouillon
  0 siblings, 1 reply; 4+ messages in thread
From: Gerd Stolpmann @ 2005-09-27 16:39 UTC (permalink / raw)
  To: Jerome Vouillon; +Cc: Oliver Bandel, caml-list

Am Dienstag, den 27.09.2005, 18:05 +0200 schrieb Jerome Vouillon:
> Hello,
> 
> On Fri, Sep 23, 2005 at 12:43:43AM +0200, Oliver Bandel wrote:
> > Is there any Perl-like regexp-library written in OCaml?
> 
> I wrote a fairly powerful regular expression library some years ago.
> You can find it on <http://sourceforge.net/projects/libre/>.

Very interesting, did not know this library exists. Are you still
interested in developing it?

I like that it is the only regexp library around that gives direct
access to the regexp constructors (i.e. Re.alt, Re.seq, etc.). And there
are several parsers for regexp strings. One could, for example, easily
build a camlp4 frontend for easier syntax.

You mention in TODO.txt that you also have a generic interface in mind.
That would be really great. An application of that could be
Unicode-capable regexp executor that directly operates on int arrays (as
representation of Unicode strings). None of the other libraries has
that.

And finally to mention, libre has a thread-safe API. Other people did
not succeed in making one.

To encourage the usage of your library, I'll immediately make a GODI
package.

Gerd
-- 
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
Telefon: 06151/153855                  Telefax: 06151/997714
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Perl-like Regexps implemented in Ocaml?
  2005-09-27 16:39   ` Gerd Stolpmann
@ 2005-10-03 19:15     ` Jerome Vouillon
  0 siblings, 0 replies; 4+ messages in thread
From: Jerome Vouillon @ 2005-10-03 19:15 UTC (permalink / raw)
  To: Gerd Stolpmann; +Cc: caml-list

On Tue, Sep 27, 2005 at 06:39:49PM +0200, Gerd Stolpmann wrote:
> Am Dienstag, den 27.09.2005, 18:05 +0200 schrieb Jerome Vouillon:
> > On Fri, Sep 23, 2005 at 12:43:43AM +0200, Oliver Bandel wrote:
> > > Is there any Perl-like regexp-library written in OCaml?
> > 
> > I wrote a fairly powerful regular expression library some years ago.
> > You can find it on <http://sourceforge.net/projects/libre/>.
> 
> Very interesting, did not know this library exists. Are you still
> interested in developing it?

It's not a high priority at the moment, but I'm at least ready to fix
any reported bug.

> And finally to mention, libre has a thread-safe API. Other people did
> not succeed in making one.

It is not quite thread-safe, actually, as it uses a mutable
datastructures internally (a DFA is built lazily).  Still, you can use
it simultaneously in different threads as long as no compiled regular
expression is used simultaneoously by several threads.

> To encourage the usage of your library, I'll immediately make a GODI
> package.

You should package the CVS version of the library.  It has several bug
fixed compare to version 0.1.

-- Jerome


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-03 19:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-22 22:43 Perl-like Regexps implemented in Ocaml? Oliver Bandel
2005-09-27 16:05 ` [Caml-list] " Jerome Vouillon
2005-09-27 16:39   ` Gerd Stolpmann
2005-10-03 19:15     ` Jerome Vouillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).