计算机科学 > 程序设计语言
[提交于 2024年1月31日]
标题:Context-Sensitive Abstract Interpretation of Dynamic Languages
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:There is a vast gap in the quality of IDE tooling between static languages like Java and dynamic languages like Python or JavaScript. Modern frameworks and libraries in these languages heavily use their dynamic capabilities to achieve the best ergonomics and readability. This has a side effect of making the current generation of IDEs blind to control flow and data flow, which often breaks navigation, autocompletion and refactoring. In this thesis we propose an algorithm that can bridge this gap between tooling for dynamic and static languages by statically analyzing dynamic metaprogramming and runtime reflection in programs. We use a technique called abstract interpretation to partially execute programs and extract information that is usually only available at runtime. Our algorithm has been implemented in a prototype analyzer that can analyze programs written in a subset of JavaScript.
提交历史
来自:Franciszek Piszcz[v1] 2024年1月31日 星期三 17:45:05 UTC