arXiv Science⌕ Search

arXiv subjects

Sarah E. Chasins

Publications and source records attributed to Sarah E. Chasins.

6 recordsLinked to original sources

Seizing the Means of Direct Manipulation

Prior direct manipulation (DM) programming systems tend to be specific to a given domain, with limited options for programmers to customize interactions for a given program, or for a particular stage of their work with that program. In this paper, we ask what properties a programming system must satisfy in order to support programmers in improvising bespoke, ad-hoc DM program editing interfaces that suit the program and task at hand. In answer, we propose and formalize four novel properties---Strong Customizability, Derivation Consistency, Interdependency, and Transparency---that a programming system can satisfy, depending on what programming interactions the system allows. We introduce the markful lambda calculus, an extension of the lambda calculus that satisfies all four of these properties. The markful lambda calculus allows programs to access the evaluation derivation information of program values and allows programmers to define marks: message-passing DM interface components that programmers can add to their DM interface. We implement our approach in a tool called Marx. Using Marx, we implement small representative interactions from several prior DM programming and programming visualization systems. We hope Marx is a step on the path towards general-purpose direct manipulation programming environments.

cs.PL↗

Interactive Compiler Scheduling by Navigation

Compiler scheduling languages enable productive programming by separating high-level algorithms from schedules that determine how they are optimized. In current domain-specific compilers, programmers mainly choose between manual scheduling, which can reach any schedule but demands complex reasoning, and autoscheduling, which often restricts the scheduling space and falls short of expert performance. These approaches impose a tradeoff between performance and productivity, whereas programmers ideally want the benefits of both. We present Voya, an interactive synthesis tool that enables programmers to compose manual and autoscheduling approaches, with strong validity and reachability guarantees for both final schedules and the interactive process. Voya lets programmers build schedules one decision at a time, using existing handwritten and autoscheduler-generated schedules as sources of hints. We instantiate Voya for two domain-specific compilers: Halide on CPUs and FuseFlow for sparse deep-learning models on dataflow accelerators. Schedules authored with Voya can outperform the fastest existing expert-written or autoscheduler-generated schedules by up to 1.8x in Halide and 7.7x in FuseFlow. LLM agents using Voya match the performance of agents writing FuseFlow schedules directly with 2.3x fewer output tokens on average. Our results suggest that any compiler with a scheduling language can support interactive scheduling with strong guarantees.

cs.PL↗

Direct Manipulation and Natural Language Programming, Together at Last?

Decades of programming languages research has contributed novel approaches to program editing that go beyond modifying text, including direct manipulation programming, structure editing, and automated refactoring tools. However, the rapid growth of natural language programming largely reinforces a view of programs as text and program editing as (unstructured) text transformation. How can we develop unified programming systems that bridge the gap between these approaches, supporting multiple editing paradigms in concert? We take a first step toward answering these questions by introducing a framework that enables program editing via both direct manipulation and natural language, and instantiate this framework in a variant of the $\texttt{cartokit}$ direct manipulation programming system. Our key insight is to treat programs as sequences of structured edits and to use an edit language as a shared interface for both direct manipulation and natural language interactions, leveraging constrained decoding to support the latter. Using our instantiation, we conducted a within-subjects study ($N$=18) to understand how the combination of direct manipulation and natural language as editing modalities changes the programming process compared to each modality alone. Perhaps surprisingly, we found that study participants overwhelmingly chose to edit via direct manipulation when both modalities were available, performing just 6.14% of edits via natural language. Our thematic analysis of study sessions revealed that direct manipulation aided task decomposition, encouraged incremental editing, and helped mitigate known challenges in natural language programming related to understanding model capabilities and model-generated code. Our edit-based framework and study findings lay out a possible pathway for future research on programming systems that blend natural language with alternative editing modalities.

cs.PL↗

Flow with FlorDB: Incremental Context Maintenance for the Machine Learning Lifecycle

In this paper we present techniques to incrementally harvest and query arbitrary metadata from machine learning pipelines, without disrupting agile practices. We center our approach on the developer-favored technique for generating metadata -- log statements -- leveraging the fact that logging creates context. We show how hindsight logging allows such statements to be added and executed post-hoc, without requiring developer foresight. Relational views of incomplete metadata can be queried to dynamically materialize new metadata in bulk and on demand across multiple versions of workflows. This is done in a "metadata later" style, off the critical path of agile development. We realize these ideas in a system called FlorDB and demonstrate how the data context framework covers a range of both ad-hoc metadata as well as special cases treated today by bespoke feature stores and model repositories. Through a usage scenario -- including both ML and human feedback -- we illustrate how the component techniques come together to resolve classic software engineering trade-offs between agility and discipline.

cs.DB↗

Low-resourced Languages and Online Knowledge Repositories: A Need-Finding Study

Online Knowledge Repositories (OKRs) like Wikipedia offer communities a way to share and preserve information about themselves and their ways of living. However, for communities with low-resourced languages -- including most African communities -- the quality and volume of content available are often inadequate. One reason for this lack of adequate content could be that many OKRs embody Western ways of knowledge preservation and sharing, requiring many low-resourced language communities to adapt to new interactions. To understand the challenges faced by low-resourced language contributors on the popular OKR Wikipedia, we conducted (1) a thematic analysis of Wikipedia forum discussions and (2) a contextual inquiry study with 14 novice contributors. We focused on three Ethiopian languages: Afan Oromo, Amharic, and Tigrinya. Our analysis revealed several recurring themes; for example, contributors struggle to find resources to corroborate their articles in low-resourced languages, and language technology support, like translation systems and spellcheck, result in several errors that waste contributors' time. We hope our study will support designers in making online knowledge repositories accessible to low-resourced language speakers.

cs.HC↗

Tea: A High-level Language and Runtime System for Automating Statistical Analysis

Though statistical analyses are centered on research questions and hypotheses, current statistical analysis tools are not. Users must first translate their hypotheses into specific statistical tests and then perform API calls with functions and parameters. To do so accurately requires that users have statistical expertise. To lower this barrier to valid, replicable statistical analysis, we introduce Tea, a high-level declarative language and runtime system. In Tea, users express their study design, any parametric assumptions, and their hypotheses. Tea compiles these high-level specifications into a constraint satisfaction problem that determines the set of valid statistical tests, and then executes them to test the hypothesis. We evaluate Tea using a suite of statistical analyses drawn from popular tutorials. We show that Tea generally matches the choices of experts while automatically switching to non-parametric tests when parametric assumptions are not met. We simulate the effect of mistakes made by non-expert users and show that Tea automatically avoids both false negatives and false positives that could be produced by the application of incorrect statistical tests.

cs.PL↗