First-class environments in R

First-class environments in R
复制标题

一流的 R 环境

DOI:
10.1145/3486602.3486768
复制
发表时间:
2021
期刊:
ACM SIGPLAN International Symposium on Dynamic Languages
影响因子:
--
通讯作者:
Vitek, Jan
Vitek, Jan
中科院分区:
--
文献类型:
--
作者:
Goel, Aviral;Vitek, Jan

文献摘要

相似文献

R 编程语言广泛用于统计计算。为了实现交互式数据探索和快速原型设计,R 鼓励动态编程风格。这种编程风格得到一流环境等功能的支持。在广泛使用的语言中,R 具有最丰富的用于以编程方式操作环境的接口。由于一流环境中的反射操作所提供的灵活性,推理和优化用户定义代码面临着巨大的挑战。本文记录了用于在一流环境中运行的反射接口。我们解释了其设计背后的基本原理,并对如何在流行的图书馆中使用该界面进行了大规模研究。
The R programming language is widely used for statistical computing. To enable interactive data exploration and rapid prototyping, R encourages a dynamic programming style. This programming style is supported by features such as first-class environments. Amongst widely used languages, R has the richest interface for programmatically manipulating environments. With the flexibility afforded by reflective operations on first-class environments, come significant challenges for reasoning and optimizing user-defined code. This paper documents the reflective interface used to operate over first-class environment. We explain the rationale behind its design and conduct a large-scale study of how the interface is used in popular libraries.