


Chinese Academy of Sciences Software Institute has made progress in building dependency analysis of Python programs: helping developers improve code reuse efficiency
May 03, 2023 pm 06:04 PMAccording to the website of the Chinese Academy of Sciences, recently, the Software Engineering Technology Research and Development Center of the Institute of Software, Chinese Academy of Sciences has made research progress in dependency analysis and inference in Python program construction, and proposed knowledge-driven Python program dependency inference methods and tools to help developers Improve code reuse efficiency, reduce Python program construction and running errors caused by missing dependencies and incorrect dependency versions, and play a supporting role in improving application construction automation capabilities in the integration of development and operation.
According to reports, the Python language is widely used in scientific computing, etc., and developers often improve development efficiency through code reuse. However, the running environment of Python programs is complex and depends on Python packages, system libraries and specific versions of the Python interpreter. Lack of program dependencies or incompatible dependency versions can lead to program build failures and running errors.
To address this problem, the study proposes a knowledge-driven Python program dependency inference method, which includes two stages: knowledge graph construction and program dependency inference. In the knowledge graph construction stage, this method collects a large amount of multi-source heterogeneous data, extracts and fuses knowledge, and builds a Python domain knowledge graph. In the program dependency inference stage, the method is based on the domain knowledge graph and infers the multi-level dependencies of the target Python program through program analysis and constraint solving methods.
Based on the above methods, this research developed PyEGo: a knowledge-driven Python program dependency inference tool. Experimental results show that the dependency inference success rate of the PyEGo tool is 1.5-4.5 times that of existing methods, which greatly improves the accuracy and execution efficiency of program construction.
▲ Schematic diagram of Python program dependency analysis method
The above is the detailed content of Chinese Academy of Sciences Software Institute has made progress in building dependency analysis of Python programs: helping developers improve code reuse efficiency. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Huawei's official introductory tutorial for Cangjie programming language is released. Learn how to obtain the universal version SDK in one article

After 5 years of research and development, Huawei's next-generation programming language 'Cangjie” has officially launched its preview

Huawei launches HarmonyOS NEXT Cangjie programming language developer preview beta recruitment

What are the advantages and disadvantages of templating?

Tianjin University and Beihang University are deeply involved in Huawei's 'Cangjie” project and launched the first AI agent programming framework 'Cangqiong” based on domestic programming languages.

Google AI announces Gemini 1.5 Pro and Gemma 2 for developers

Huawei's self-developed Cangjie programming language official website and development documents are online, integrating into the Hongmeng ecosystem for the first time
