Cargando…
Higher-Order Spreadsheets with Spilled Arrays
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...
Autores principales: | , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
2020
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7702260/ http://dx.doi.org/10.1007/978-3-030-44914-8_27 |
_version_ | 1783616578904915968 |
---|---|
author | Williams, Jack Joharizadeh, Nima Gordon, Andrew D. Sarkar, Advait |
author_facet | Williams, Jack Joharizadeh, Nima Gordon, Andrew D. Sarkar, Advait |
author_sort | Williams, Jack |
collection | PubMed |
description | 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. |
format | Online Article Text |
id | pubmed-7702260 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2020 |
record_format | MEDLINE/PubMed |
spelling | pubmed-77022602020-12-01 Higher-Order Spreadsheets with Spilled Arrays Williams, Jack Joharizadeh, Nima Gordon, Andrew D. Sarkar, Advait Programming Languages and Systems Article 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. 2020-04-18 /pmc/articles/PMC7702260/ http://dx.doi.org/10.1007/978-3-030-44914-8_27 Text en © The Author(s) 2020 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. |
spellingShingle | Article Williams, Jack Joharizadeh, Nima Gordon, Andrew D. Sarkar, Advait Higher-Order Spreadsheets with Spilled Arrays |
title | Higher-Order Spreadsheets with Spilled Arrays |
title_full | Higher-Order Spreadsheets with Spilled Arrays |
title_fullStr | Higher-Order Spreadsheets with Spilled Arrays |
title_full_unstemmed | Higher-Order Spreadsheets with Spilled Arrays |
title_short | Higher-Order Spreadsheets with Spilled Arrays |
title_sort | higher-order spreadsheets with spilled arrays |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7702260/ http://dx.doi.org/10.1007/978-3-030-44914-8_27 |
work_keys_str_mv | AT williamsjack higherorderspreadsheetswithspilledarrays AT joharizadehnima higherorderspreadsheetswithspilledarrays AT gordonandrewd higherorderspreadsheetswithspilledarrays AT sarkaradvait higherorderspreadsheetswithspilledarrays |