Lune

PLDI2026Top-tier venue

Diagramming Program Values by Spatial Refinement

Siddhartha Prasad, Michael Tu, Karan Kashyap, Tim Nelson, Shriram Krishnamurthi

Abstract

Diagrams enable programmers to reason, debug, and communicate. However, constructing diagrams for programming language data is unnecessarily hard. We present a declarative DSL, Spytial , that captures the essential spatial features of data. We endow Spytial with a spatial semantics, mapping values to the 2D plane, and prove key properties. Spytial uses constraint-solving to make interactive renderings. We show how Spytial can be embedded in three very different languages: Python, Rust, and Pyret. We present a novel counterfactual debugging aid for diagramming errors, combining textual and visual output. We evaluate the language and system for expressiveness, performance, and diagnostic quality. Finally, we also show how Spytial can be used to construct values interactively and visually while preserving spatial constraints.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Bluefish: Composing Diagrams with Declarative Relations cites How Domain Experts Create Conceptual Diagrams and Implications for Tool Design
  • Bluefish: Composing Diagrams with Declarative Relations cites Penrose: from mathematical notation to beautiful diagrams
  • Penrose: from mathematical notation to beautiful diagrams cites How Domain Experts Create Conceptual Diagrams and Implications for Tool Design
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on5

  1. Scalability of Network Visualisation from a Cognitive Load PerspectiveVahan Yoghourdjian, Yalong Yang, Tim Dwyer, Lawrence Lee et al.IEEE VIS 2020 · 59 citations
  2. Penrose: from mathematical notation to beautiful diagramsKatherine Ye, Wode Ni, Max Krieger, Dor Ma'ayan et al.SIGGRAPH 2020 · 53 citations
  3. How Domain Experts Create Conceptual Diagrams and Implications for Tool DesignDor Ma'ayan, Wode Ni, Katherine Ye, Chinmay Kulkarni et al.CHI 2020 · 19 citations
  4. Bluefish: Composing Diagrams with Declarative RelationsJosh Pollock, Catherine Mei, Grace Huang, Elliot Evans et al.UIST 2024 · 12 citations
  5. Conflict-Driven Synthesis for Layout EnginesJunrui Liu, Yanju Chen, Eric Atkinson, Yu Feng et al.PLDI 2023 · 5 citations

Related papers

  1. Rust yDL: A Program Logic for RustDaniel Drodt, Reiner HähnleFM 2026
  2. Mixing Linters with GUIs: A Color Palette Design ProbeAndrew M. McNutt, Maureen C. Stone, Jeffrey HeerIEEE VIS 2024 · 6 citations
  3. An Interactive Debugger for Rust Trait ErrorsGavin Gray, Will Crichton, Shriram KrishnamurthiPLDI 2025 · 1 citation
  4. Adding interactive visual syntax to textual codeLeif Andersen, Michael Ballantyne, Matthias FelleisenOOPSLA 2020 · 28 citations
  5. The Shapes of Abstraction in Data Structure DiagramsDevamardeep Hayatpur, Brian Hempel, Richard Lin, Haijun XiaCHI 2025 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines