New way to connect fast software with easy programming languages
Researchers suggest a semi-automated method to link complex C or C++ code to Python for epidemic modeling.
Researchers show how to connect a large software framework to Python. This framework contains many infectious disease models.
They suggest a semi-automated way to generate interface code. This method works by analyzing generic C++ code through abstract syntax trees.
An abstract syntax tree is a way to analyze code. A binding library allows users to execute compiled software frameworks from languages like Python.
C or C++ implementations can outperform plain Python or R by factors between one and three orders of magnitude. Python and R allow for fast prototyping and interactive development.
In times of pandemics, the need for swift estimation of system dynamics makes using noncompiled languages prohibitive. Implementing bindings can represent a barrier to developers of C or C++ backends.
Key facts
- C or C++ implementations can be one to three orders of magnitude faster than plain Python or R.
- A semi-automated way to generate interface code uses abstract syntax trees to analyze C++ code.
- Binding libraries allow compiled software frameworks to be executed from languages such as Python.