Higher-Order Spreadsheets with Spilled Arrays

被引:5
作者
Williams, Jack [1 ]
Joharizadeh, Nima [2 ]
Gordon, Andrew D. [1 ,3 ]
Sarkar, Advait [1 ,4 ]
机构
[1] Microsoft Res, Cambridge, England
[2] Univ Calif Davis, Davis, CA 95616 USA
[3] Univ Edinburgh, Edinburgh, Midlothian, Scotland
[4] Univ Cambridge, Cambridge, England
来源
PROGRAMMING LANGUAGES AND SYSTEMS ( ESOP 2020): 29TH EUROPEAN SYMPOSIUM ON PROGRAMMING | 2020年 / 12075卷
关键词
D O I
10.1007/978-3-030-44914-8_27
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:743 / 769
页数:27
相关论文
共 50 条
[31]   Higher-order Lagrangian equations of higher-order motive mechanical system [J].
Zhao Hong-Xia ;
Ma Shan-Jun ;
Shi Yong .
COMMUNICATIONS IN THEORETICAL PHYSICS, 2008, 49 (02) :479-481
[33]   Higher-order lazy narrowing calculus: A solver for higher-order equations [J].
Ida, T ;
Marin, M ;
Suzuki, T .
COMPUTER AIDED SYSTEMS THEORY - EUROCAST 2001, 2001, 2178 :479-493
[34]   Higher-order synchronization and multistability in higher-order Kuramoto phase oscillators [J].
Dai, Qinrui ;
Kori, Hiroshi .
NONLINEAR DYNAMICS, 2025, 113 (16) :21801-21811
[35]   Higher-Order Components Dictate Higher-Order Contagion Dynamics in Hypergraphs [J].
Kim, Jung -Ho ;
Goh, K. -, I .
PHYSICAL REVIEW LETTERS, 2024, 132 (08)
[36]   HIGHER-ORDER EFFICIENCY CONDITIONS VIA HIGHER-ORDER TANGENT CONES [J].
Do Van Luu .
NUMERICAL FUNCTIONAL ANALYSIS AND OPTIMIZATION, 2014, 35 (01) :68-84
[37]   HIGHER-ORDER DIFFERENTIAL-EQUATIONS AND HIGHER-ORDER LAGRANGIAN MECHANICS [J].
CRAMPIN, M ;
SARLET, W ;
CANTRIJN, F .
MATHEMATICAL PROCEEDINGS OF THE CAMBRIDGE PHILOSOPHICAL SOCIETY, 1986, 99 :565-587
[38]   Higher-Order Containers [J].
Altenkirch, Thorsten ;
Levy, Paul ;
Staton, Sam .
PROGRAMS, PROOFS, PROCESSES, 2010, 6158 :11-+
[39]   HIGHER-ORDER APLANATISM [J].
SCHULZ, G .
OPTICS COMMUNICATIONS, 1982, 41 (05) :315-319
[40]   Higher-Order Metaphysics [J].
Wilhelm, Isaac .
MIND, 2025,