caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
To: "forum@x9c.fr" <forum@x9c.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] [ANN] Kaputt 1.0 alpha
Date: Mon, 24 Nov 2008 22:49:56 +0100	[thread overview]
Message-ID: <492B2184.4010300@univ-savoie.fr> (raw)
In-Reply-To: <B12DFA30-1C90-42A7-A4C8-BB1A9E18B221@x9c.fr>


[-- Attachment #1.1: Type: text/plain, Size: 3152 bytes --]

forum@x9c.fr a écrit :
>
> Le 24 nov. 08 à 17:52, Yoann Padioleau a écrit :
>
>> forum@x9c.fr writes:
>>
>> Hi Xavier,
>>
>>> Selon Stefano Zacchiroli <zack@upsilon.cc>:
>>>
>>>> (...)
>>>
>>> I was indeed aware of oUnit when I started working on Kaputt.
>>> The initial intent was to provide OCaml with something along
>>> the lines of the QuickCheck library developed for Haskell
>>> (http://www.cs.chalmers.se/~rjmh/QuickCheck/). Clones of QuickCheck
>>> exist for various languages (caml-list@inria.fr) but not for OCaml,
>>
>> Actually I posted a few years ago a small module imitating parts of
>> quicheck:
>>
>> http://aryx.kicks-ass.org/~pad/ocaml/quickcheck.ml
>
> Sorry, I failed to remember this.
>
>
>> Apparently they even now use my ugly file in the Janet Street Core
>> Library.
>>
>>
>>> even if a QuickCheck equivalent is provided by the Reins library
>>> (http://ocaml-reins.sourceforge.net/).
>>
>> I didn't find much in this ocaml reins library ... and it
>> looks quite heavy in functors ...
>
> Yes, I indeed wanted to rely upon functions/combinators instead.
> It seems lighter this way.
>
>
>> Your library looks very good, very clean. I just noticed you missed
>> the 'pair' and 'tuple' random generators.
>
> Well, maybe their names are not intuitive but Generator.zip{1..5}
> allows to combine n generators into a generator returning tuples
> of order n (zip1 being the identity function).
>
>
>> One criticism is that like many other libraries, such as oUnit,
>> ocamlcalendar, they seem a little bit heavyweight. You got hundreds
>> of functions, 5 modules ...
>
> That's true but it seems hard to have a combinator-based library with
> few functions/combinators. With too few combinators, you leave too
> much work to the developer (including a lot a boilerplate code).
> With too many combinators, you request the developer to take more
> time in order to use the library. I find it hard to calibrate the size of
> the library.
>
> Maybe things could be done in a lighter way by using objects ?
Or a camlp4 extension to build the intended function(s) by induction on
the type definition.
you could include that as part of deriving
(http://code.google.com/p/deriving/)

Hope this helps,
Christophe
>
>
> Xavier
>
> _______________________________________________
> 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
>


-- 
Christophe Raffalli
Universite de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex

tel: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI
---------------------------------------------
IMPORTANT: this mail is signed using PGP/MIME
At least Enigmail/Mozilla, mutt or evolution 
can check this signature. The public key is
stored on www.keyserver.net
---------------------------------------------


[-- Attachment #1.2: Christophe_Raffalli.vcf --]
[-- Type: text/x-vcard, Size: 310 bytes --]

begin:vcard
fn:Christophe Raffalli
n:Raffalli;Christophe
org:LAMA (UMR 5127)
email;internet:christophe.raffalli@univ-savoie.fr
title;quoted-printable:Ma=C3=AEtre de conf=C3=A9rences
tel;work:+33 4 79 75 81 03
note:http://www.lama.univ-savoie.fr/~raffalli
x-mozilla-html:TRUE
version:2.1
end:vcard


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

  reply	other threads:[~2008-11-24 21:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-23 20:57 barista
2008-11-23 21:30 ` [Caml-list] " Stefano Zacchiroli
2008-11-23 23:14   ` forum
2008-11-23 23:22     ` forum
2008-11-24 16:52     ` Yoann Padioleau
2008-11-24 17:08       ` Sylvain Le Gall
2008-11-24 19:13       ` [Caml-list] " forum
2008-11-24 21:49         ` Christophe Raffalli [this message]
2008-11-24 22:05           ` Yoann Padioleau
2008-11-24 22:52           ` forum
2008-11-25  9:55             ` Jeremy Yallop

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=492B2184.4010300@univ-savoie.fr \
    --to=christophe.raffalli@univ-savoie.fr \
    --cc=caml-list@inria.fr \
    --cc=forum@x9c.fr \
    /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;
as well as URLs for NNTP newsgroup(s).