实时数据探索环境的基础
Foundations of a live data exploration environment
摘要:
内容:越来越多的代码被编写来探索和分析数据,通常是由没有传统编程背景的数据分析师编写的,例如记者。询问:这样的数据分析师编写代码的方式与软件工程师编写代码的方式不同。它们使用很少的抽象,交互式工作,严重依赖外部库。我们的目标是捕捉这种工作方式,并构建一个编程环境,通过提供即时的实时反馈,使数据探索更容易。方法:我们结合理论和应用方法。我们提出的\emph{data exploration calculus},一个形式语言,捕获的结构编写的数据分析师的代码。然后,我们实现了一个数据探索环境,该环境在编辑过程中立即评估代码并显示结果的预览。知识:我们正式描述了一个算法,提供即时预览的数据探索演算,允许用户在一个不受限制的方式在文本编辑器中修改代码。支持交互式编辑是很棘手的,因为任何编辑都可能改变代码的结构,并且完全重新计算输出的成本太高。接地:我们证明了我们的算法是正确的,它重用以前的结果时,更新预览后,一些常见的代码编辑操作。我们还说明了我们的方法与实证评估和案例研究的实用性。重要性:随着数据分析成为编程的一个越来越重要的用途,对程序设计语言和工具的研究需要考虑适合这些领域的新型编程工作流,并构思出能够支持它们的新型工具。本文件是朝着这一重要方向迈出的一步。
英文摘要:
Context: A growing amount of code is written to explore and analyze data, often by data analysts who do not have a traditional background in programming, for example by journalists. Inquiry: The way such data anlysts write code is different from the way software engineers do so. They use few abstractions, work interactively and rely heavily on external libraries. We aim to capture this way of working and build a programming environment that makes data exploration easier by providing instant live feedback. Approach: We combine theoretical and applied approach. We present the \emph{data exploration calculus}, a formal language that captures the structure of code written by data analysts. We then implement a data exploration environment that evaluates code instantly during editing and shows previews of the results. Knowledge: We formally describe an algorithm for providing instant previews for the data exploration calculus that allows the user to modify code in an unrestricted way in a text editor. Supporting interactive editing is tricky as any edit can change the structure of code and fully recomputing the output would be too expensive. Grounding: We prove that our algorithm is correct and that it reuses previous results when updating previews after a number of common code edit operations. We also illustrate the practicality of our approach with an empirical evaluation and a case study. Importance: As data analysis becomes an ever more important use of programming, research on programming languages and tools needs to consider new kinds of programming workflows appropriate for those domains and conceive new kinds of tools that can support them. The present paper is one step in this important direction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。