Here's a link to some papers on STM: http://research.microsoft.com/en-us/um/people/simonpj/papers/stm/
A simple example: http://www.haskell.org/haskellwiki/Simple_STM_example Here's a tutorial: http://book.realworldhaskell.org/read/software-transactional-memory.html Here's a link to the docs: http://hackage.haskell.org/package/stm Cheers, Keean. 2011/1/6 Keean Schupke <ke...@fry-it.com> > Did you see section 7 in the link I posted? > > 7 Implementations > 7.1 C/C++ > 7.2 C# > 7.3 Common Lisp > 7.4 Haskell > 7.5 Java > 7.6 OCaml > 7.7 Perl > 7.8 Python > 7.9 Scala > 7.10 Smalltalk > > JavaScript as a functional language (first class functions, closures, > anonymous functions) has a lot in common with Haskell and other functional > languages (Lisp)... Although as you can see there are plenty of OO > implementations too. > > > Cheers, > Keean. > > > 2011/1/6 Jonas Sicking <jo...@sicking.cc> > > 2011/1/6 Keean Schupke <ke...@fry-it.com>: >> > There is always Software Transactional Memory that provides a safe model >> for >> > memory shared between threads. >> > http://en.wikipedia.org/wiki/Software_transactional_memory >> > This has been used very successfully in Haskell for overcoming threading >> / >> > state issues. Combined with Haskells Channels (message queues) it >> provides >> > for very elegant multi-threading. >> >> Can you provide a link to the Haskell API which you think has been >> working well for haskell. Or even better, considering that haskell is >> a vastly different language from javascript, could you propose a >> javascript API based on Software Transactional Memory. >> >> / Jonas >> > >