Analyzing the Adoption Rate of Local Variable Type Inference in Open-source Java 10 Projects

Clayton Liddell, Donghoon Kim
{"title":"Analyzing the Adoption Rate of Local Variable Type Inference in Open-source Java 10 Projects","authors":"Clayton Liddell, Donghoon Kim","doi":"10.54119/jaas.2019.7311","DOIUrl":null,"url":null,"abstract":"Type Inference is used in programming languages to improve writability. In this paper, we will be looking more specifically at Local Variable Type Inference (LVTI). For those unfamiliar with LVTI, we will also give an in-depth explanation of what it is and how it works. There is a lot of debate surrounding Type Inference in modern day programming languages. More specifically, whether the costs associated with LVTI outweigh the benefits. It has found its way into many higher-level languages including C#, C++, JavaScript, Swift, Kotlin, Rust, Go, etc. In this paper, we will look at the usefulness of LVTI and its popularity since the release of Java 10. Our study will show that LVTI in Java has not received widespread adoption. We will also explain a possible reason for this, based on the information we have gather from our empirical study which involved statically analyzing 6 popular open source Java 10 projects. We will also discuss different scenarios in which Type Inference can obscure different programming errors.","PeriodicalId":30423,"journal":{"name":"Journal of the Arkansas Academy of Science","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2019-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of the Arkansas Academy of Science","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.54119/jaas.2019.7311","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

Type Inference is used in programming languages to improve writability. In this paper, we will be looking more specifically at Local Variable Type Inference (LVTI). For those unfamiliar with LVTI, we will also give an in-depth explanation of what it is and how it works. There is a lot of debate surrounding Type Inference in modern day programming languages. More specifically, whether the costs associated with LVTI outweigh the benefits. It has found its way into many higher-level languages including C#, C++, JavaScript, Swift, Kotlin, Rust, Go, etc. In this paper, we will look at the usefulness of LVTI and its popularity since the release of Java 10. Our study will show that LVTI in Java has not received widespread adoption. We will also explain a possible reason for this, based on the information we have gather from our empirical study which involved statically analyzing 6 popular open source Java 10 projects. We will also discuss different scenarios in which Type Inference can obscure different programming errors.
Java 10开源项目中局部变量类型推理的采用率分析
在编程语言中使用类型推理来提高可写性。在本文中,我们将更具体地研究局部变量类型推理(LVTI)。对于那些不熟悉LVTI的人,我们还将深入解释它是什么以及它是如何工作的。在现代编程语言中,围绕类型推理有很多争论。更具体地说,与LVTI相关的成本是否大于收益。它已经进入了许多高级语言,包括C#、C++、JavaScript、Swift、Kotlin、Rust、Go等。在本文中,我们将了解LVTI的有用性及其自Java 10发布以来的流行程度。我们的研究将表明,Java中的LVTI尚未得到广泛采用。我们还将根据我们从实证研究中收集到的信息解释这一情况的可能原因,该研究涉及静态分析6个流行的开源Java 10项目。我们还将讨论类型推断可以掩盖不同编程错误的不同场景。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
审稿时长
20 weeks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信