Under Consideration for Publication in J. Functional Programming Nixos: a Purely Functional Linux Distribution
Under Consideration for Publication in J. Functional Programming Nixos: a Purely Functional Linux Distribution
复制标题
正在考虑在《J. 函数式编程》中发表 Nixos:纯函数式 Linux 发行版
DOI:
--
复制
发表时间:
--
期刊:
影响因子:
--
通讯作者:
N. Pierron
中科院分区:
文献类型:
--
作者:
E. Dolstra;Andres L Oh;N. Pierron
Existing package and system configuration management tools suffer from an imperative model, where system administration actions such as package upgrades or changes to system configuration files are stateful: they destructively update the state of the system. This leads to many problems, such as the inability to roll back changes easily, to deploy multiple versions of a package side-by-side, to reproduce a configuration deterministically on another machine, or to reliably upgrade a system. In this article we show that we can overcome these problems by moving to a purely functional system configuration model. This means that all static parts of a system (such as software packages, configuration files and system startup scripts) are built by pure functions and are immutable, stored in a way analogous to a heap in a purely functional language. We have implemented this model in NixOS, a non-trivial Linux distribution that uses the Nix package manager to build the entire system configuration from a modular, purely functional specification.