What We Eval in the Shadows A Large-Scale Study of Eval in R Programs

被引:1
|
作者
Goel, Aviral [1 ]
Donat-Bouillud, Pierre [2 ]
Krikava, Filip [2 ]
Kirsch, Christoph M. [2 ,3 ]
Vitek, Jan [1 ,2 ]
机构
[1] Northeastern Univ, Boston, MA 02115 USA
[2] Czech Tech Univ, Prague, Czech Republic
[3] Univ Salzburg, Salzburg, Austria
来源
基金
欧洲研究理事会; 美国国家科学基金会;
关键词
eval; dynamic languages;
D O I
10.1145/3485502
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Most dynamic languages allow users to turn text into code using various functions, often named eval, with language-dependent semantics. The widespread use of these reflective functions hinders static analysis and prevents compilers from performing optimizations. This paper aims to provide a better sense of why programmers use eval. Understanding why eval is used in practice is key to finding ways to mitigate its negative impact. We have reasons to believe that reflective feature usage is language and application domain-specific; we focus on data science code written in R and compare our results to previous work that analyzed web programming in JavaScript. We analyze 49,296,059 calls to eval from 240,327 scripts extracted from 15,401 R packages. We find that eval is indeed in widespread use; R's eval is more pervasive and arguably dangerous than what was previously reported for JavaScript.
引用
收藏
页数:23
相关论文
共 50 条
  • [1] The eval that men do: A large-scale study of the use of eval in javascript applications
    Purdue University, United States
    不详
    Lect. Notes Comput. Sci., (52-78):
  • [2] The Eval That Men Do A Large-Scale Study of the Use of Eval in Java']JavaScript Applications
    Richards, Gregor
    Hammer, Christian
    Burg, Brian
    Vitek, Jan
    ECOOP 2011 - OBJECT-ORIENTED PROGRAMMING, 2011, 6813 : 52 - 78
  • [3] WHAT CAN WE REALLY EXPECT FROM LARGE-SCALE VOUCHER PROGRAMS
    CORWIN, RG
    DIANDA, MR
    PHI DELTA KAPPAN, 1993, 75 (01) : 68 - +
  • [4] Large-scale comparative neuroimaging: Where are we and what do we need?
    de Schotten, Michel Thiebaut
    Croxson, Paula L.
    Mars, Rogier B.
    CORTEX, 2019, 118 : 188 - 202
  • [5] LARGE-SCALE COLLABORATION IN NEUROIMAGING GENETICS: WHAT HAVE WE LEARNED
    Medland, Sarah
    EUROPEAN NEUROPSYCHOPHARMACOLOGY, 2022, 63 : E313 - E313
  • [6] RESEARCH IN LARGE-SCALE INTERVENTION PROGRAMS
    FREEMAN, HE
    SHERWOOD, CC
    JOURNAL OF SOCIAL ISSUES, 1965, 21 (01) : 11 - 28
  • [7] PLANNING FOR LARGE-SCALE OBSERVATIONAL PROGRAMS
    HOLLAND, JZ
    WILLIAMS, SL
    BULLETIN OF THE AMERICAN METEOROLOGICAL SOCIETY, 1971, 52 (09) : 850 - &
  • [8] What is a large-scale dynamo?
    Nigro, G.
    Pongkitiwanichakul, P.
    Cattaneo, F.
    Tobias, S. M.
    MONTHLY NOTICES OF THE ROYAL ASTRONOMICAL SOCIETY, 2017, 464 (01) : L119 - L123
  • [9] Large-scale gene expression studies of the endometrium: what have we learnt?
    Sherwin, Rob
    Catalano, Rob
    Sharkey, Andrew
    REPRODUCTION, 2006, 132 (01) : 1 - 10
  • [10] Habitat fragmentation and large-scale conservation: what do we know for sure?
    Harrison, S
    Bruna, E
    ECOGRAPHY, 1999, 22 (03) : 225 - 232