A Python compiler for highly performant code.
Check the website for more information.
Welcome to the official Flyable GitHub repository! πππ₯³
Flyable is a Python ahead-of-time compiler that generates optimized native code to decrease Python workloads.
Flyable works hand in hand with the interpreter in the sense that when Flyable can compile a function or method it does so and the interpreter executes that compiled function at runtime and otherwise Flyable lets the interpreter interpret this function or method.
Detailed benchmarks to come soon! You can see previous benchmarks here.
Flyable currently supports the following OS and architectures:
πͺ x86 instructions that run on Windows 64 bits.
π ARM instructions that run on MacOS 64 bits.
π§ x86 instructions that run on Linux 64 bits.
32 bits support isnβt planned in the near future.
All you will need is a working CPython installation (do not run Flyable inside a venv) and some Python code to compile. Clone the repository on your computer and you will be ready to start using Flyable! You can read the code in main.py to see an example of how to select the file to compile.
See Quail: the unit testing utility for the Flyable compiler
Flyable does multiple things to generate efficient code but most of the performance gains come from the following:
- Native execution of the code
- Static function dispatch (enabling direct call and efficient inlining)
- Type tracking (When possible)
- Function specialization depending on the signature but also on the usage
Our work is currently focused on integrating new optimizations and getting the compiler to support more syntactic features in order to increase the proportion of functions and methods that are compiled. π£οΈπ
If you want to participate and/or support the active development of Flyable:
- Add a GitHub star to the project. β
- Tweet about the project on your Twitter.
- Submit bugs and feature requests. π
- Review or make pull requests. If you would like to work on an issue, please let us know by writing a comment in the issue you are interested in. We have identified good first issues for issues we believe are well suited for people who want to start tackling issues.
- If you have any technical question, you can write a question on Stack Overflow.
- Follow us on Twitter or LinkedIn.
- Feel free to contact us on Discord or at [email protected] if you have any other concerns.
Flyable is licensed under the GNU Affero General Public License v3.0 .
π LLVM is one of the powerful optimizing machines running under the hood.
π CPython is ubiquitous in this project.
π GCC is linking everything tightly.