On Mon, Dec 1, 2008 at 8:16 PM, Chouser <[EMAIL PROTECTED]> wrote: > > On Mon, Dec 1, 2008 at 1:01 PM, puzzler <[EMAIL PROTECTED]> wrote: >> >> Clojure is designed for concurrency, but I don't see any functions in >> the API to spin off new threads. > > See 'send' and 'send-off'. send-off in particular will start a new > thread if there are not idle threads available in its pool. If that > abstracts away details you'd rather have your hand on, you may find > this tutorial useful: > > http://java.sun.com/docs/books/tutorial/essential/concurrency/executors.html > >> So I assume you're expected to know >> and use Java libraries for this. For those of us who are coming to >> Clojure without knowing a whole lot of Java, it would be useful if >> someone could provide pointers to the most essential libraries, >> especially a tour of the concurrency primitives that work well with >> Clojure's approach. > > Here are some classes I've heard mentioned or have used myself with Clojure: > http://java.sun.com/javase/6/docs/api/java/util/concurrent/BlockingQueue.html > http://java.sun.com/javase/6/docs/api/java/util/concurrent/atomic/package-summary.html > >> As for other libraries, I've already located the documentation for the >> String class at http://java.sun.com/javase/6/docs/api/java/lang/String.html. >> It would also be helpful to know which File I/O libraries are most >> relevant, and a couple short examples of how to use them. Any other >> critical libraries? > > http://java.sun.com/docs/books/tutorial/essential/io/
See also the Apache Commons libraries as mentioned in these threads: http://groups.google.com/group/clojure/browse_thread/thread/986e8b246f296bd2/92df3cacd6111f71 http://groups.google.com/group/clojure/browse_thread/thread/979fe987ef046110/de59307741e39ba6 -- Michael Wood <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---