Home Backend Development Python Tutorial Chinese Academy of Sciences Software Institute has made progress in building dependency analysis of Python programs: helping developers improve code reuse efficiency

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 PM
python programming language develop

According 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.

中科院软件所在 Python 程序的构建依赖分析方面取得进展:帮助开发人员提高代码复用效率

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.

中科院软件所在 Python 程序的构建依赖分析方面取得进展:帮助开发人员提高代码复用效率

▲ 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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Huawei's official introductory tutorial for Cangjie programming language is released. Learn how to obtain the universal version SDK in one article Huawei's official introductory tutorial for Cangjie programming language is released. Learn how to obtain the universal version SDK in one article Jun 25, 2024 am 08:05 AM

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 After 5 years of research and development, Huawei's next-generation programming language 'Cangjie” has officially launched its preview Jun 22, 2024 am 09:54 AM

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 Huawei launches HarmonyOS NEXT Cangjie programming language developer preview beta recruitment Jun 22, 2024 am 04:07 AM

Huawei launches HarmonyOS NEXT Cangjie programming language developer preview beta recruitment

What are the advantages and disadvantages of templating? What are the advantages and disadvantages of templating? May 08, 2024 pm 03:51 PM

What are the advantages and disadvantages of templating?

How to download deepseek Xiaomi How to download deepseek Xiaomi Feb 19, 2025 pm 05:27 PM

How to download deepseek Xiaomi

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. 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. Jun 23, 2024 am 08:37 AM

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 Google AI announces Gemini 1.5 Pro and Gemma 2 for developers Jul 01, 2024 am 07:22 AM

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 Huawei's self-developed Cangjie programming language official website and development documents are online, integrating into the Hongmeng ecosystem for the first time Jun 22, 2024 am 03:10 AM

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

See all articles