This page is for those curious about Unison's background. It covers some of the research backing Unison and lists related work and influences.You don't need to know about any of this to use Unisonbut we like to acknowledge that Unison is part of a big world where lots of interesting work happens. We are standing on the shoulders of giants!
The core Unison language was influenced primarily byHaskellfor its ideas on purely functional programming,Erlang(for its ideas on distributed execution and handling of failures), anda research language by Lindley, McBride et. al called Frank(for its approach to working with effects / abilities).
We also have looked at and taken inspiration from lots of other languages, like Smalltalk, Scala, Elm, and many more.
Programming language theory
Formally, Unison's type system is an implementation of the system described by Joshua Dunfield and Neelakantan R. Krishnaswami in their 2013 paperComplete and Easy Bidirectional Typechecking for Higher-Rank Polymorphism.
Unison's system of abilities is based onthe Frank language by Sam Lindley, Conor McBride, and Craig McLaughlin.Unison diverges slightly from the scheme detailed in this paper. In particular, Unison's ability polymorphism is provided by ordinary polymorphic types, and a Unison type with an empty ability set explicitly disallows any abilities. In Frank, the empty ability set implies an ability-polymorphic type.
- Sound and Complete Bidirectional Typechecking for Higher-Rank Polymorphism with Existentials and Indexed Typesextends the earlier paper to include GADTs and existential types. This will likely be implemented by a future version of Unison
🚧 Almost too many things to cite here, would focus on references that provide good background on FP and then specific work that is notable
🚧 A few categories of work to cite here ...
- "classics" establishing the nature of distributed systems, "Time, Clocks, and the ordering of events"
- consensus protocols like Paxos, Raft
- work on things like vector clocks, causal consistency
- CRDTs work
- Distributed hash tables, overlay networks
- Modern systems work