Measures Concepts
GitHub icon

Numba

Numba - Compiler

< >

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

Source code:
git clone https://github.com/numba/numba
#484on PLDB 12Years Old

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 Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout