Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

Numba

< >

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

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

Numba is an open source JIT compiler that translates a subset of Python and NumPy code into fast machine code.


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 Resources Acknowledgements Part of the World Wide Scroll