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 条
  • [31] What Is Large in Large-Scale? A Taxonomy of Scale for Agile Software Development
    Dingsoyr, Torgeir
    Faegri, Tor Erlend
    Itkonen, Juha
    PRODUCT-FOCUSED SOFTWARE PROCESS IMPROVEMENT, PROFES 2014, 2014, 8892 : 273 - 276
  • [32] What Is the Effectiveness of Different Duration Interdisciplinary Treatment Programs in Patients with Chronic Pain? A Large-Scale Longitudinal Register Study
    Tseli, Elena
    LoMartire, Riccardo
    Vixner, Linda
    Grooten, Wilhelmus Johannes Andreas
    Gerdle, Bjorn
    Ang, Bjorn O.
    JOURNAL OF CLINICAL MEDICINE, 2020, 9 (09) : 1 - 17
  • [33] A case study using automatic performance tuning for large-scale scientific programs
    Chung, I-Hsin
    Hollingsworth, Jeffrey K.
    HPDC-15: PROCEEDINGS OF THE 15TH IEEE INTERNATIONAL SYMPOSIUM ON HIGH PERFORMANCE DISTRIBUTED COMPUTING, 2005, : 45 - 56
  • [34] Parallel decomposition of large-scale stochastic nonlinear programs
    Birge, JR
    Rosa, CH
    ANNALS OF OPERATIONS RESEARCH, 1996, 64 : 39 - 65
  • [35] Managing Large-Scale Nonprofit Programs with Limited Resources
    Woolley, Carter
    JOURNAL OF NONPROFIT EDUCATION AND LEADERSHIP, 2024, 14 (02) : 81 - 89
  • [36] Managing large-scale cancer research data programs
    Klenk, Juergen
    Mikdadi, Dina
    Owens, Chelsea
    Maggio, Angela
    Singh, Bhavani
    Barner, Eric
    Davidsen, Tanja
    Kim, Erika
    CANCER RESEARCH, 2024, 84 (06)
  • [37] SDPA project: solving large-scale semidefinite programs
    Fujisawa, Katsuki
    Nakata, Kazuhide
    Yamashita, Makoto
    Fukuda, Mituhiro
    JOURNAL OF THE OPERATIONS RESEARCH SOCIETY OF JAPAN, 2007, 50 (04) : 278 - 298
  • [38] The results of: Profiling large-scale lazy functional programs
    Jarvis, SA
    Morgan, RG
    IMPLEMENTATION OF FUNCTIONAL LANGUAGES, 1997, 1268 : 200 - 221
  • [39] Large-scale semidefinite programs in electronic structure calculation
    Mituhiro Fukuda
    Bastiaan J. Braams
    Maho Nakata
    Michael L. Overton
    Jerome K. Percus
    Makoto Yamashita
    Zhengji Zhao
    Mathematical Programming, 2007, 109 : 553 - 580
  • [40] Efficient Secure Outstanding of Large-scale Quadratic Programs
    Salinas, Sergio
    Luo, Changqing
    Liao, Weixian
    Li, Pan
    ASIA CCS'16: PROCEEDINGS OF THE 11TH ACM ASIA CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, 2016, : 281 - 292