Scala Implicits Are Everywhere A Large-Scale Study of the Use of Scala Implicits in the Wild

被引:4
|
作者
Krikava, Filip [1 ]
Miller, Heather [2 ]
Vitek, Jan [1 ,3 ]
机构
[1] Czech Tech Univ, Prague, Czech Republic
[2] Carnegie Mellon Univ, Pittsburgh, PA 15213 USA
[3] Northeastern Univ, Boston, MA 02115 USA
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2019年 / 3卷 / OOPSLA期
基金
欧洲研究理事会; 美国国家科学基金会;
关键词
Implicit parameters; implicit conversions; corpora analysis; Scala;
D O I
10.1145/3360589
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The Scala programming language offers two distinctive language features implicit parameters and implicit conversions, often referred together as implicits. Announced without fanfare in 2004, implicits have quickly grown to become a widely and pervasively used feature of the language. They provide a way to reduce the boilerplate code in Scala programs. They are also used to implement certain language features without having to modify the compiler. We report on a large-scale study of the use of implicits in the wild. For this, we analyzed 7,280 Scala projects hosted on GitHub, spanning over 8.1M call sites involving implicits and 370.7K implicit declarations across 18.7M lines of Scala code.
引用
收藏
页数:28
相关论文
共 50 条
  • [1] Simulating Large-scale Aggregate MASs with Alchemist and Scala
    Casadei, Roberto
    Pianini, Danilo
    Viroli, Mirko
    PROCEEDINGS OF THE 2016 FEDERATED CONFERENCE ON COMPUTER SCIENCE AND INFORMATION SYSTEMS (FEDCSIS), 2016, 8 : 1495 - 1504
  • [2] Large-scale urban traffic simulation with Scala and high-performance computing system
    Janczykowski, Michal
    Turek, Wojciech
    Malawski, Maciej
    Byrski, Aleksander
    JOURNAL OF COMPUTATIONAL SCIENCE, 2019, 35 : 91 - 101
  • [3] COMPUTATION AGAINST A NEIGHBOUR: ADDRESSING LARGE-SCALE DISTRIBUTION AND ADAPTIVITY WITH FUNCTIONAL PROGRAMMING AND SCALA
    Audrito, Giorgio
    Casadei, Roberto
    Damiani, Ferruccio
    Viroli, Mirko
    LOGICAL METHODS IN COMPUTER SCIENCE, 2023, 19 (01)
  • [4] A Large-scale Study on API Misuses in the Wild
    Li, Xia
    Jiang, Jiajun
    Benton, Samuel
    Xiong, Yingfei
    Zhang, Lingming
    2021 14TH IEEE CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST 2021), 2021, : 241 - 252
  • [5] Mining the use of higher-order functions: An exploratory study on Scala programs
    Xu, Yisen
    Wu, Fan
    Jia, Xiangyang
    Li, Lingbo
    Xuan, Jifeng
    EMPIRICAL SOFTWARE ENGINEERING, 2020, 25 (06) : 4547 - 4584
  • [6] DRAM Errors in the Wild: A Large-Scale Field Study
    Schroeder, Bianca
    Pinheiro, Eduardo
    Weber, Wolf-Dietrich
    SIGMETRICS/PERFORMANCE'09, PROCEEDINGS OF THE 2009 JOINT INTERNATIONAL CONFERENCE ON MEASUREMENT AND MODELING OF COMPUTER SYSTEMS, 2009, 37 (01): : 193 - 204
  • [7] DRAM Errors in the Wild: A Large-Scale Field Study
    Schroeder, Bianca
    Pinheiro, Eduardo
    Weber, Wolf-Dietrich
    COMMUNICATIONS OF THE ACM, 2011, 54 (02) : 100 - 107
  • [8] Mining the use of higher-order functions:An exploratory study on Scala programs
    Yisen Xu
    Fan Wu
    Xiangyang Jia
    Lingbo Li
    Jifeng Xuan
    Empirical Software Engineering, 2020, 25 : 4547 - 4584
  • [9] Mining the use of higher-order functions:: An exploratory study on Scala programs
    Xuan, Jifeng (jxuan@whu.edu.cn), 1600, Springer (25):
  • [10] Fixed-Size Least Squares Support Vector Machines: Scala Implementation for Large Scale Classification
    Chandorkar, Mandar
    Mall, Raghvendra
    Lauwers, Oliver
    Suykens, Johan A. K.
    De Moor, Bart
    2015 IEEE SYMPOSIUM SERIES ON COMPUTATIONAL INTELLIGENCE (IEEE SSCI), 2015, : 522 - 528