I need UUIDs in my CLJS code…

cljs.core does include a UUID type, but no generator.

I found a couple of efforts and example code at 
https://github.com/davesann/cljs-uuid and 
http://catamorphic.wordpress.com/2012/03/02/generating-a-random-uuid-in-clojurescript,
but they didn't work with cljs.core/UUID or were too slow.

There are many javascript versions out there, but that would require another 
external js-lib.
(really surpising that I couldn't find a UUID generator in closure-lib…)
 
Please take a look at my UUID-playground at "https://gist.github.com/4159427";,
which includes a few implementations with some rudimentary timing results.

Appreciate any comments or suggestions, or maybe a pointer to a faster, cleaner 
implementation...

Thanks, FrankS.

PS. I would think that the cljs-community would love to have a UUIDv4 generator 
as part of the clojurescript distro...


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to