The release of Nuitka 1.2 is available, which advances the compiler for translating Python scripts into C code representation that can then be compiled into an executable using libpython to ensure maximum compatibility with CPython (standard CPython tools are used for object management). Full compatibility is provided with current releases of Python 2.6, 2.7, and 3.3 – 3.10. Compared to CPython, the compiled scripts show a performance increase of 335% in pystone tests. The project code is distributed under the Apache license.
Among the changes in the new version:
- An error message is provided when attempting to use with Python 3.11, which is not yet fully supported. To bypass this limitation, the flag ‘—experimental=python311’ has been suggested.
- For macOS, the ‘—macos-sign-notarization’ option has been added for digital signature certification, simplifying the creation of signed applications for the Apple App Store. Launch performance optimizations have also been implemented.
- Compiled functions now include the attributes ‘__compiled__’ and ‘__compiled_constant__’, which can be used in layers like pyobjc to generate more optimized code.
- The anti-bloat plugin capabilities have been expanded, which can now be used to reduce the number of packages when using the xarray and pint libraries.
- A significant amount of new optimizations has been added, and work has been done to improve scalability. Content caching of directories has been implemented during module scanning.
Source: opennet.ru
