Numba
cudf
Our great sponsors
Numba | cudf | |
---|---|---|
124 | 23 | |
9,350 | 7,163 | |
1.7% | 2.5% | |
9.9 | 9.9 | |
6 days ago | 2 days ago | |
Python | C++ | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Numba
-
Mojo🔥: Head -to-Head with Python and Numba
Around the same time, I discovered Numba and was fascinated by how easily it could bring huge performance improvements to Python code.
-
Is anyone using PyPy for real work?
Simulations are, at least in my experience, numba’s [0] wheelhouse.
-
Python Algotrading with Machine Learning
A super-fast backtesting engine built in NumPy and accelerated with Numba.
-
PYTHON vs OCTAVE for Matlab alternative
Regarding speed, I don't agree this is a good argument against Python. For example, it seems no one here has yet mentioned numba, a Python JIT compiler. With a simple decorator you can compile a function to machine code with speeds on par with C. Numba also allows you to easily write cuda kernels for GPU computation. I've never had to drop down to writing C or C++ to write fast and performant Python code that does computationally demanding tasks thanks to numba.
-
Codon: Python Compiler
Just for reference,
* Nuitka[0] "is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11."
* Pypy[1] "is a replacement for CPython" with builtin optimizations such as on the fly JIT compiles.
* Cython[2] "is an optimising static compiler for both the Python programming language and the extended Cython programming language... makes writing C extensions for Python as easy as Python itself."
* Numba[3] "is an open source JIT compiler that translates a subset of Python and NumPy code into fast machine code."
* Pyston[4] "is a performance-optimizing JIT for Python, and is drop-in compatible with ... CPython 3.8.12"
-
Two-tier programming language
Taichi (similar to numba) is a python library that allows you to write high speed code within python. So your program consists of slow python that gets interpreted regularly, and fast python (fully type annotated and restricted to a subset of the language) that gets parallellized and jitted for CPU or GPU. And you can mix the two within the same source file.
-
Been using Python for 3 years, never used a Class.
There are also just-in-time compilers available for some Python features, that compile those parts to machine code. That includes Numba (usable as a library within CPython) and Pypy (an alternative Python implementation that includes a JIT compiler to improve performance). There’s also Cython, which is a superset of Python that allows more directly interfacing with C and C++ functions, and compiling the resulting combined code.
-
Is there a language with lisp syntax but C semantics?
this was a submission from u/bpecsek and shows that lisp with sbcl can do quite well on bench-marking. but keep in mind that these sort of benchmarks can't tell you much about real world applications. moreover if you are really concerned about niche performance you need to start thinking about compilers. heck with an appropriate compiler even python can go wrooom
- [D] Yann LeCun's Hot Take about programming languages for ML
-
Python Developer Seeking Input: Is it Worth Learning Rust for FFI?
- if no purpose built libraries are faster, use numba (http://numba.pydata.org/) to speed up your code. Optionally you can also use Taichi (https://www.taichi-lang.org/) instead of numba.
cudf
-
A Polars exploration into Kedro
The interesting thing about Polars is that it does not try to be a drop-in replacement to pandas, like Dask, cuDF, or Modin, and instead has its own expressive API. Despite being a young project, it quickly got popular thanks to its easy installation process and its “lightning fast” performance.
-
Introducing TeaScript C++ Library
Yes sure, that is how OpenMP does; but on the other side: you seem to already do some basic type inference, and building an AST, no? Then you know as well the size and type of your vectors, and can execute actions in parallel if there is enough data to be worth parallelizing. Is there anyone who don't want their code to execute faster if it is possible? Those that do work in big data domain do use threads and vectorized instructions without user having to type in any directive; just import different library. Example, numpy or numpy with cuda backend, or similar GPU accelerated libraries like cudf.
-
[D] [R] Large-scale clustering
try https://rapids.ai/
-
[P] Looking for state of the art clustering algorithms
As a companion to the other comments, I'd like to mention that the RAPIDS library cuML provides GPU-accelerated versions of quite a few of the algorithms mentioned in this thread (HDBSCAN, UMAP, SVM, PCA, {Exact, Approximate} Nearest Neighbors, DBSCAN, KMeans, etc.).
- Integrating multiple point clouds?
-
Dask – a flexible library for parallel computing in Python
You can probably use https://github.com/rapidsai/cudf/tree/main/python/dask_cudf a dask wrapper around cuDF.
- An Engineer's View of Venture Capitalists (2011)
-
Notes from the Meeting on Python GIL Removal Between Python Core and Sam Gross
https://news.ycombinator.com/item?id=18040664
Today, conda-forge compiles CPython to relocatable platform+architecture-specific binaries with LLVM. https://github.com/conda-forge/python-feedstock/blob/master/...
Pyodide (JupyterLite) compiles CPython to WASM (or LLVM IR?) with LLVM/emscripten IIRC. Hopefully there's a clear way to implement the new GIL-less multithreading support with Web Workers in WASM, too?
The https://rapids.ai/ org has a bunch a fast Python for HPC; with Dask and pick a scheduler. Less process overhead and less need for interprocess locking of memory handles that transgress contexts due to a new GIL removal approach would be even faster than debuggable one process per core Python.
-
New pipelined multi-threaded plotter implementation (work in progress)
Can you describe what will be needed in terms of GPU hardware? I acquired some stuff while messing with rapids.ai, but it's such a pain to support I gave up. Would be great if an OpenCl enhancement for Chia appears.
-
Unifying the CUDA Python Ecosystem
that project might be abandoned but this strategy is used in nvidia and nvidia adjacent projects (through llvm):
https://github.com/rapidsai/cudf/blob/branch-0.20/python/cud...
https://github.com/gmarkall/numba/blob/master/numba/cuda/com...
>but we also need high level expressibility that doesn't require writing kernels in C
the above are possible because C is actually just a frontend to PTX
https://docs.nvidia.com/cuda/parallel-thread-execution/index...
fundamentally you are not going to ever be able to have a way to write cuda kernels without thinking about cuda architecture anymore so than you'll ever be able to write async code without thinking about concurrency.
What are some alternatives?
NetworkX - Network Analysis in Python
jax - Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and more
Dask - Parallel computing with task scheduling
cupy - NumPy & SciPy for GPU
Pyjion - Pyjion - A JIT for Python based upon CoreCLR
SymPy - A computer algebra system written in pure Python
statsmodels - Statsmodels: statistical modeling and econometrics in Python
julia - The Julia Programming Language
PyMC - Bayesian Modeling and Probabilistic Programming in Python
Airflow - Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
NumPy - The fundamental package for scientific computing with Python.
chia-plotter