Skip to main content
Erschienen in:
Buchtitelbild

Open Access 2020 | OriginalPaper | Buchkapitel

Higher-Order Spreadsheets with Spilled Arrays

verfasst von : Jack Williams, Nima Joharizadeh, Andrew D. Gordon, Advait Sarkar

Erschienen in: Programming Languages and Systems

Verlag: Springer International Publishing

loading …

We develop a theory for two recently-proposed spreadsheet mechanisms: gridlets allow for abstraction and reuse in spreadsheets, and build on spilled arrays, where an array value spills out of one cell into nearby cells. We present the first formal calculus of spreadsheets with spilled arrays. Since spilled arrays may collide, the semantics of spilling is an iterative process to determine which arrays spill successfully and which do not. Our first theorem is that this process converges deterministically. To model gridlets, we propose the grid calculus, a higher-order extension of our calculus of spilled arrays with primitives to treat spreadsheets as values. We define a semantics of gridlets as formulas in the grid calculus. Our second theorem shows the correctness of a remarkably direct encoding of the Abadi and Cardelli object calculus into the grid calculus. This result is the first rigorous analogy between spreadsheets and objects; it substantiates the intuition that gridlets are an object-oriented counterpart to functional programming extensions to spreadsheets, such as sheet-defined functions.

download
DOWNLOAD
print
DRUCKEN
Metadaten
Titel
Higher-Order Spreadsheets with Spilled Arrays
verfasst von
Jack Williams
Nima Joharizadeh
Andrew D. Gordon
Advait Sarkar
Copyright-Jahr
2020
DOI
https://doi.org/10.1007/978-3-030-44914-8_27