Personal tools

Software transactional memory

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(+stm projects)
(Projects using STM: Fix broken links.)
Line 21: Line 21:
 
As of April 2011, there were more than 200 projects on Hackage with dependencies on GHC's STM implementation, including:
 
As of April 2011, there were more than 200 projects on Hackage with dependencies on GHC's STM implementation, including:
   
* [http://darcs.haskell.org/~lemmih/conjure/ Conjure] (a bittorrent client) is using STM quite heavily.
+
* [http://hackage.haskell.org/package/conjure Conjure] (a bittorrent client) is using STM quite heavily.
   
* [http://www.eecs.tufts.edu/~rdocki01/shellac.html Shellac] is a framework for building read-eval-print style shells. It uses STM, but in a pretty limited way.
+
* [http://www.cs.princeton.edu/~rdockins/shellac/home Shellac] is a framework for building read-eval-print style shells. It uses STM, but in a pretty limited way.
   
 
* [http://www.pugscode.org Pugs] (an implementation of Perl 6 in Haskell) uses STM, and also exposes STM to the Perl 6 programmer via a similar interface to STM Haskell.
 
* [http://www.pugscode.org Pugs] (an implementation of Perl 6 in Haskell) uses STM, and also exposes STM to the Perl 6 programmer via a similar interface to STM Haskell.
Line 29: Line 29:
 
* [http://happstack.com/index.html Happstack], a web framework
 
* [http://happstack.com/index.html Happstack], a web framework
   
* [http://bifunctor.homelinux.net/~roel/cgi-bin/hackage-scripts/package/TCache-0.8.0.2 TCache], a transactional cache with configurable persitence.
+
* [http://hackage.haskell.org/package/TCache TCache], a transactional cache with configurable persitence.
   
* [http://bifunctor.homelinux.net/~roel/cgi-bin/hackage-scripts/package/Barracuda-1.0.2 Barracuda], An ad-hoc chat program
+
* [http://hackage.haskell.org/package/Barracuda Barracuda], An ad-hoc chat program
   
* [http://bifunctor.homelinux.net/~roel/cgi-bin/hackage-scripts/package/Combinatorrent-0.3.2 Combinatorrent], a BitTorrent client, based on STM for concurrency
+
* [http://hackage.haskell.org/package/Combinatorrent Combinatorrent], a BitTorrent client, based on STM for concurrency
   
* [http://bifunctor.homelinux.net/~roel/cgi-bin/hackage-scripts/package/Scurry-0.0.3 Scurry], P2P VPN implementation.
+
* [http://hackage.haskell.org/package/Scurry Scurry], P2P VPN implementation.
   
 
== Examples ==
 
== Examples ==

Revision as of 05:51, 14 February 2012

Contents

1 Introduction

Software Transactional Memory, or STM, is an abstraction for concurrent communication. The main benefits of STM are composability and modularity. That is, using STM you can write concurrent abstractions that can be easily composed with any other abstraction built using STM, without exposing the details of how your abstraction ensures safety. This is typically not the case with other forms of concurrent communication, such as locks or MVars.

STM for Haskell was first implemented in GHC 6.4. There exist STM implementations for other compilers.

2 Resources

3 Projects using STM

As of April 2011, there were more than 200 projects on Hackage with dependencies on GHC's STM implementation, including:

  • Conjure (a bittorrent client) is using STM quite heavily.
  • Shellac is a framework for building read-eval-print style shells. It uses STM, but in a pretty limited way.
  • Pugs (an implementation of Perl 6 in Haskell) uses STM, and also exposes STM to the Perl 6 programmer via a similar interface to STM Haskell.
  • TCache, a transactional cache with configurable persitence.
  • Scurry, P2P VPN implementation.

4 Examples

  • Examples from this wiki: Search for "concurrent.stm" at the top of this page.