Clojure's rand delegates to Java's Math.random(), which I am pretty  
sure has a synchronized block in it.

One problem with living on top of Java is calling into methods that  
have no (conceptual) need to be synchronized. This could hurt  
performance in an app carefully written in Clojure to avoid mutable  
state and locking. Since unsynchronized PRNGs exist, I would suggest  
we modify rand to use one. (I am willing to take the lead on writing  
one in Clojure if needed.)

Thoughts?

Stuart

--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to