ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Четверг
28 марта
721989
Evgeny_CD, Архитектор (22.12.2016 01:44, просмотров: 627)
Python + LLVM - народ соорудил адову смесь. http://numba.pydata.org
http://llvmlite.pydata.org
llvmlite - A lightweight LLVM python binding for writing JIT compilers -> Numba --> Numba gives you the power to speed up your applications with high performance functions written directly in Python. With a few annotations, array-oriented and math-heavy Python code can be just-in-time compiled to native machine instructions, similar in performance to C, C++ and Fortran, without having to switch languages or Python interpreters. Numba works by generating optimized machine code using the LLVM compiler infrastructure at import time, runtime, or statically (using the included pycc tool). Numba supports compilation of Python to run on either CPU or GPU hardware, and is designed to integrate with the Python scientific software stack. В этой нумбе есть примеры работы с С кодом из питона. Любопытные штуки.