Difference between revisions of "Haskell"

From RogueBasin
Jump to navigation Jump to search
(Created page.)
 
 
(3 intermediate revisions by one other user not shown)
Line 27: Line 27:


* [[Roguestar]]
* [[Roguestar]]
* [http://hackage.haskell.org/package/LambdaHack LambdaHack]
* [[LambdaHack]]
* [[Allure of the Stars]]
* [http://hackage.haskell.org/package/mage Mage]
* [http://hackage.haskell.org/package/mage Mage]
* [[Space Privateers]]


== Related Links ==
== Related Links ==


* [http://haskell.org Web site]
* [http://haskell.org Web site]
* [http://www.haskell.org/ghc/ Glasgow Haskell Compilter]
* [http://www.haskell.org/ghc/ Glasgow Haskell Compiler]
* [http://hackage.haskell.org/platform/ Haskell Platform]
* [http://hackage.haskell.org/platform/ Haskell Platform]
* [http://shootout.alioth.debian.org/u64/benchmark.php?test=all&lang=ghc Computer Language Benchmarks Game]
* [http://shootout.alioth.debian.org/u64/benchmark.php?test=all&lang=ghc Computer Language Benchmarks Game]


[[Category:Programming languages]]
[[Category:Programming languages]]

Latest revision as of 09:55, 8 August 2014

Background

Haskell began as a research language but has evolved into a platform suitable for general-purpose development. Haskell programs are concise and expressive, minimizing the "semantic gap" between the programmer's intentions and the text of the source code. The most recent revision of the Haskell standard is Haskell 2010.

Haskell is purely functional, meaning that functions, in general, map inputs to outputs, but can not perform side-effects, such as writing to disk. This limitation is comparable to the decision to remove 'GOTO' from most modern programming languages -- it greatly eases the task of proving the correctness of functions.

Haskell libraries provide IO and mutable state using an abstraction called a Monad. A monad is a mathematical concept that captures our intuitive notion of imperative programming.

Haskell is non-strict (often called "lazy"), meaning that it does not initialize data structures in memory until they are specifically needed. For example, it would be possible to perform find-and-replace on a 20GB file represented by a linked list -- only a small working segment of the list would actually exist in RAM at any given time.

The GHC compiler features a rigorous optimization pass so that idiomatic Haskell runs at speeds comparable to C/C++.

Haskell has an advanced type system, featuring abstract data types, parametric polymorphism, type classes (type-indexed functions), associated types (type-indexed types), and existential quantification. Haskell uses type inference to determine the types of values that are not explicitly indicated by the programmer.

Language Characteristics

  • Purely functional
  • Non-strict
  • Static typing
  • Closures
  • Strong semantics for concurrent and parallel programming
  • Platform independence
  • Automatic garbage collection
  • Foreign Function Interface to interoperate with C/C++

Haskell Roguelikes

Related Links