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

[Caml-list] [ANN] Uuidm 0.9.0

0 views
Skip to first unread message

Daniel Bünzli

unread,
Jun 11, 2008, 12:07:32 PM6/11/08
to caml-list caml-list, caml...@inria.fr
Hello,

I'd like to announce the existence of the following snippet of code.

Uuidm is an OCaml module implementing 128 bits universally unique
identifiers version 3, 5 (name based with MD5, SHA-1 hashing) and 4
(random based) according to RFC 4122.

Uuidm is made of a single, independent, module and distributed under
the new BSD license.

Module home page : http://erratique.ch/software/uuidm

Best,

Daniel


_______________________________________________
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

Dave Benjamin

unread,
Jun 12, 2008, 1:07:22 AM6/12/08
to Daniel Bünzli, caml-list caml-list
Daniel Bünzli wrote:
> I'd like to announce the existence of the following snippet of code.
>
> Uuidm is an OCaml module implementing 128 bits universally unique
> identifiers version 3, 5 (name based with MD5, SHA-1 hashing) and 4
> (random based) according to RFC 4122.

Thanks, Daniel!

I don't think you need Obj.magic for the md5 function - Digest.t is
equivalent to string in the interface. For instance:

# module M : sig val md5 : string -> string end = struct let md5 =
Digest.string end;;
module M : sig val md5 : string -> string end
# M.md5 "AsdfasdfasdF";;
- : string = "\248~\198\237v\220\165d\187\214\200\158\\\"=\133"

Cheers,
Dave

Daniel Bünzli

unread,
Jun 12, 2008, 4:01:15 AM6/12/08
to Dave Benjamin, caml-list caml-list

Le 12 juin 08 ą 07:08, Dave Benjamin a écrit :

> Digest.t is equivalent to string in the interface. For instance:

Thanks for pointing this out, I was going crazy the other day that
there was no Digest.to_bytes function... Didn't realize that Digest.t
wasn't abstract, have to learn to read. Corrected in the repository.

Best,

Daniel

0 new messages