Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

Numba

< >

Numba is a compiler created in 2012 by Travis E. Oliphant.

#480on PLDB 12Years Old
Download source code:
git clone https://github.com/numba/numba

NumPy aware dynamic Python compiler using LLVM


Example from the web:
from numba import njit import random @njit def monte_carlo_pi(nsamples): acc = 0 for i in range(nsamples): x = random.random() y = random.random() if (x ** 2 + y ** 2) < 1.0: acc += 1 return 4.0 * acc / nsamples

View source

- Build the next great programming language About Acknowledgements Extensions Day 630 Donate feedback@pldb.io