Process Composition with Typed Unix Pipes
Research output: Contribution to book/Conference proceedings/Anthology/Report › Conference contribution › Contributed › peer-review
Contributors
Abstract
Pipes are a standard inter-process communication mechanism in Unix-like operating systems, allowing to compose simple, single-purpose programs to solve complex problems. This powerful mechanism arguably contributed quite a lot to the success of Unix. However, the design decision to standardize unstructured, type-less byte streams as a basis for communication can be seen as disadvantageous: Incompatible programs can mistakenly be hooked together, conversions have to be added manually, and the structure of the communicated data has to be re-created by parsers and serialized again at every node in the pipeline. To overcome these disadvantages, we propose to explore the potential behind typed Unix pipes. Based on a type system with a special type constructor - the ladder type, - runtime type checks for pipes and potentially also files, program arguments and environment variables prevent the user to create invalid program graphs. This also allows to add automatic conversions that resolve type conflicts in the future. A prototypical implementation extends an existing shell with a type-check routine and demonstrates the concepts on a set of realistic use-case scenarios.
Details
Original language | English |
---|---|
Title of host publication | PLOS 2023 - Proceedings of the 12th Workshop on Programming Languages and Operating Systems, Part of |
Publisher | Association for Computing Machinery, Inc |
Pages | 34-40 |
Number of pages | 7 |
ISBN (electronic) | 9798400704048 |
Publication status | Published - 23 Oct 2023 |
Peer-reviewed | Yes |
Publication series
Series | SOSP: ACM Symposium on Operating Systems Principles |
---|
Workshop
Title | 12th Workshop on Programming Languages and Operating Systems |
---|---|
Abbreviated title | PLOS 2023 |
Conference number | 12 |
Description | In conjunction with the 29th ACM Symposium on Operating Systems Principles (SOSP '23) |
Duration | 23 October 2023 |
Website | |
City | Koblenz |
Country | Germany |
External IDs
ORCID | /0000-0002-1427-9343/work/167216814 |
---|