Difference between revisions of "Gallery"
Jump to navigation
Jump to search
DonStewart (talk | contribs) m (typo) |
DonStewart (talk | contribs) (link back) |
||
Line 8: | Line 8: | ||
* [[Simple STM Example]]: A really simple toy program illustrating [[Research_papers/Parallelism_and_concurrency#Software_transactional_memory|sofware transactional memory]] (STM). |
* [[Simple STM Example]]: A really simple toy program illustrating [[Research_papers/Parallelism_and_concurrency#Software_transactional_memory|sofware transactional memory]] (STM). |
||
* [[Background Thread Example]]: An example of sending work to background threads, using [[Research_papers/Parallelism_and_concurrency#Software_transactional_memory|software transational memory]] |
* [[Background Thread Example]]: An example of sending work to background threads, using [[Research_papers/Parallelism_and_concurrency#Software_transactional_memory|software transational memory]] |
||
+ | |||
+ | See also the [[Example_code|example code]] page. |
Revision as of 07:22, 17 September 2006
The Gallery is a repository of small programs. Each one should compile to a complete executable that does something, but also illustrates what a Haskell program actually looks like. Good Gallery examples should be well commented with a view to helping new programmers understand what is going on.
- Phone Number: Generates mnemonics for phone numbers. Actually written as a benchmark.
- Sudoku: Several Sudoku solvers
- Wc: A number of increasingly sophisticated wc -l programs, written as a benchmark.
- Anagrams: Short but efficient program that generates anagrams using Data.ByteString.
- GuessRandom: Simple 'guess the random number game', demonstrating IO, random numbers, and basic environment interaction (getArgs, exitWith, user interaction).
- Simple STM Example: A really simple toy program illustrating sofware transactional memory (STM).
- Background Thread Example: An example of sending work to background threads, using software transational memory
See also the example code page.