distributed-static

Compositional, type-safe, polymorphic static values and closures

http://haskell-distributed.github.com

Version on this page:0.3.5.0
LTS Haskell 22.41:0.3.11@rev:1
Stackage Nightly 2024-11-12:0.3.11@rev:1
Latest on Hackage:0.3.11@rev:1

See all snapshots distributed-static appears in

BSD-3-Clause licensed by Edsko de Vries
Maintained by Facundo Domínguez
This version can be pinned in stack with:distributed-static-0.3.5.0@sha256:d16a79544f8def7a1902bf10c623b14e685a4456e0f2ab2092ed067af4146141,2236

Module documentation for 0.3.5.0

Towards Haskell in the Cloud (Epstein et al, Haskell Symposium 2011) introduces the concept of static values: values that are known at compile time. In a distributed setting where all nodes are running the same executable, static values can be serialized simply by transmitting a code pointer to the value. This however requires special compiler support, which is not yet available in ghc. We can mimick the behaviour by keeping an explicit mapping (RemoteTable) from labels to values (and making sure that all distributed nodes are using the same RemoteTable). In this module we implement this mimickry and various extensions: type safety (including for polymorphic static values) and compositionality.