On the Soundness of Auto-completion Services for Dynamically Typed Languages

Open Access
Authors
Publication date 2024
Host editors
  • S. Chiba
  • T. Thüm
Book title GPCE '24
Book subtitle Proceedings of the 23rd ACM SIGPLAN International Conference on Generative Programming: Concepts and Experiences : October 21-22, 2024, Pasadena, CA, USA
ISBN (electronic)
  • 9798400712111
Pages (from-to) 107–120
Publisher New York, NY: Association for Computing Machinery
Organisations
  • Faculty of Science (FNWI) - Informatics Institute (IVI)
Abstract
Giving auto-completion candidates for dynamically typed languages requires complex analysis of the source code, especially when the goal is to ensure that the completion candidates do not introduce bugs. In this paper, we introduce an approach that builds upon abstract interpretation and the scope graph framework to obtain an over-approximation of the name binding seen at run-time. The over-approximation contains enough information to implement auto-completion services such that the given suggestions do not introduce name binding errors. To demonstrate our approach, we compare the suggestions given by our approach with the state of the art completion services on a subset of the Python programming language.
Document type Conference contribution
Language English
Published at https://doi.org/10.1145/3689484.3690734
Downloads
3689484.3690734 (Final published version)
Permalink to this page
Back