caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [ANN] Uuidm 0.9.0
@ 2008-06-11 16:06 Daniel Bünzli
  2008-06-12  5:08 ` [Caml-list] " Dave Benjamin
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Bünzli @ 2008-06-11 16:06 UTC (permalink / raw)
  To: caml-list caml-list; +Cc: caml-hump

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



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

* Re: [Caml-list] [ANN] Uuidm 0.9.0
  2008-06-11 16:06 [ANN] Uuidm 0.9.0 Daniel Bünzli
@ 2008-06-12  5:08 ` Dave Benjamin
  2008-06-12  8:00   ` Daniel Bünzli
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Benjamin @ 2008-06-12  5:08 UTC (permalink / raw)
  To: Daniel Bünzli; +Cc: 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


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

* Re: [Caml-list] [ANN] Uuidm 0.9.0
  2008-06-12  5:08 ` [Caml-list] " Dave Benjamin
@ 2008-06-12  8:00   ` Daniel Bünzli
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Bünzli @ 2008-06-12  8:00 UTC (permalink / raw)
  To: Dave Benjamin; +Cc: 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


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

end of thread, other threads:[~2008-06-12  8:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-11 16:06 [ANN] Uuidm 0.9.0 Daniel Bünzli
2008-06-12  5:08 ` [Caml-list] " Dave Benjamin
2008-06-12  8:00   ` Daniel Bünzli

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).