codon/docs
A. R. Shajii 0e42fded1a
2024 updates (#548)
* Update copyright dates in stdlib

* Update copyright dates in cpp files

* Update copyright dates in h files

* Update copyright dates in py files

* Bump version

* Update LICENSE

* Update release notes
2024-03-02 16:30:03 -05:00
..
advanced 2024 updates (#548) 2024-03-02 16:30:03 -05:00
img Fix image in docs 2023-01-08 21:47:53 -05:00
interop @codon.jit fixes (#401) 2023-06-09 15:38:49 -04:00
intro 2024 updates (#548) 2024-03-02 16:30:03 -05:00
language Doc updates (#385) 2023-05-23 17:59:26 -04:00
README.md Fix image in docs 2023-01-08 21:47:53 -05:00
SUMMARY.md Doc updates (#385) 2023-05-23 17:59:26 -04:00
docgen.py

README.md

Codon Pipeline

Codon is a high-performance Python compiler that compiles Python code to native machine code without any runtime overhead. Typical speedups over Python are on the order of 100x or more, on a single thread. Codon supports native multithreading which can lead to speedups many times higher still.

The Codon framework is fully modular and extensible, allowing for the seamless integration of new modules, compiler optimizations, domain-specific languages and so on. We actively develop Codon extensions for a number of domains such as bioinformatics and quantitative finance.

Codon at a glance

A simple Python program fib.py...

from time import time

def fib(n):
    return n if n < 2 else fib(n - 1) + fib(n - 2)

t0 = time()
ans = fib(40)
t1 = time()
print(f'Computed fib(40) = {ans} in {t1 - t0} seconds.')

... run through Python and Codon:

$ python3 fib.py
Computed fib(40) = 102334155 in 17.979357957839966 seconds.
$ codon run -release fib.py
Computed fib(40) = 102334155 in 0.275645 seconds.