by Jeanine Miller Adkisson,
Hidehiko Masuhara and Johannes Westlund
Abstract:
Shell languages such as bash are designed to integrate with an OS, which mainly involves managing processes with implicit input and output streams. They also attempt to do this in a compact way that could be reasonably typed on a command-line interface. However, existing shell languages are not sufficient to serve as general-purpose languages - values are not observable except in raw streams of bytes, and they lack modern language features such as lexical scope and higher-order functions. By way of a new programming language, Magritte, we propose a general-purpose programming language with semantics similar to bash. In this presentation, we discuss the early design of such a system, in which the primary unit of composition, like bash, is processes with asynchronous inputs and outputs, which can be read from or written to at any time, and which can be chained together via a pipe operator. We also explore concurrency semantics for such a language. We explore the implementation and design challenges that come with such a model, and also show that this model is able to easily create and compose concurrent algorithms.
Reference:
A Shell-like Model for General Purpose Programming (Jeanine Miller Adkisson, Hidehiko Masuhara and Johannes Westlund), In Presented at IPSJ SIG-PRO 122th Workshop on Programming,, 2019.
Bibtex Entry:
@article{adkisson2019ipsj-pro,
author = {Jeanine Miller Adkisson and Hidehiko Masuhara and Johannes Westlund},
title = {A Shell-like Model for General Purpose Programming},
journal = {Presented at IPSJ SIG-PRO 122th Workshop on Programming, },
year = 2019,
key = {2018-4-(5)},
date = {2019-01-17},
month = jan,
keywords = {Margitte, Ruby},
pdf = {pro2018-4-5.pdf},
url = {http://id.nii.ac.jp/1001/00198113/},
location = {Fukuyama, Japan},
abstract = {Shell languages such as bash are designed to integrate with an OS, which mainly involves managing processes with implicit input and output streams. They also attempt to do this in a compact way that could be reasonably typed on a command-line interface. However, existing shell languages are not sufficient to serve as general-purpose languages - values are not observable except in raw streams of bytes, and they lack modern language features such as lexical scope and higher-order functions. By way of a new programming language, Magritte, we propose a general-purpose programming language with semantics similar to bash. In this presentation, we discuss the early design of such a system, in which the primary unit of composition, like bash, is processes with asynchronous inputs and outputs, which can be read from or written to at any time, and which can be chained together via a pipe operator. We also explore concurrency semantics for such a language. We explore the implementation and design challenges that come with such a model, and also show that this model is able to easily create and compose concurrent algorithms.}
}