CloudMicroHaskell: Direct-Style Distributed Haskell via Runtime Graph Serialisation
Paper i proceeding, 2026

Cloud Haskell brings Erlang-style distributed programming to Haskell, but its treatment of mobile code exposes a difficult boundary in the source-level API. Remote processes must be expressed as static closures, messages must satisfy serialisation constraints, and participating nodes are assumed to share the relevant code. This paper explores a different design point. We present CloudMicroHaskell, a Cloud Haskell-style library built on MicroHaskell, whose runtime represents both code and data as a combinator graph. When a process or message crosses a node boundary, CloudMicroHaskell serialises the reachable graph directly. As a result, remote spawning can be written in direct style: process bodies may capture variables from their surrounding scope, and messages may contain ordinary values, including functions, without programmer-written closure conversion. We describe the implementation of the MicroCloudHaskell node runtime, including remote spawn, message delivery, monitors, exit propagation, and library implementations of generic servers and supervisors. We evaluate the system with process/message benchmarks, a distributed work-pool benchmark, a file-synchronisation case study, and a heterogeneous deployment on microcontrollers. The results show that runtime graph serialisation makes the Cloud Haskell programming model substantially more direct, while also making the tradeoff explicit: some guarantees enforced by Cloud Haskell's source-level types become dynamic checks, and programmers must be aware of laziness and runtime-owned resources when moving graphs between nodes.

Code Mobility

Distributed Haskell

MicroHs

Actor Model Concurrency

Concurrency

MicroHaskell

Graph Reduction

Haskell

Serialisation

Combinators

Författare

Robert Krook

Chalmers, Data- och informationsteknik, Funktionell programmering

Göteborgs universitet

Lennart Augustsson

Haskell 2026 Proceedings of the 19th ACM SIGPLAN International Symposium on Haskell Co Located with ICFP 2026

34-64
9798400728693 (ISBN)

19th ACM SIGPLAN International Symposium on Haskell, Haskell 2026
Indianapolis, USA,

Ämneskategorier (SSIF 2025)

Programvaruteknik

Datavetenskap (datalogi)

DOI

10.1145/3830439.3831272

Mer information

Senast uppdaterat

2026-09-11