Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

NumFast

High-performance numerical computing for Python and JavaScript — GPU acceleration without writing CUDA.

pip install numfast
import numfast as nf

s = nf.series([1.0, 2.0, 3.0, 4.0])

y = (s * 2 + 1).compute()
print(y.data())          # [3.0, 5.0, 7.0, 9.0]

peaks = (s > 2).filter(s)   # comparison -> mask -> gather
print(peaks.data())         # [3.0, 4.0]

print(nf.mean(y))           # 6.0

GPU-resident arrays — created on device, no host staging:

x = nf.zeros(1_000_000)
i = nf.index(1_000_000)                              # int32 indices, exact up to 2^31
u = nf.random.uniform(shape=1_000_000, seed=42)      # deterministic, bit-exact across Python/JS

JavaScript / WebGPU

npm install @numfast/numfast
import * as nf from "numfast";
const x = nf.zeros(1_000_000);
const y = nf.arange(0, 10);
console.log(nf.deviceInfo());   // { backend: "...", version: "..." }

Same conceptual API as Python. v1 runs on CPU backend; a WebGPU driver is included for browsers (see examples/). Browser examples require Chrome/Edge 113+.

What's inside

Group API
Creation zeros ones full arange linspace index tile repeat
Random random.uniform random.normal random.integers (explicit seed)
Series lazy expressions + - * / % **, comparisons < <= > >= == !=, .filter(mask), .compute()
Math sin cos tan exp log sqrt abs square neg
Statistics mean std var total minimum maximum count
Tabular topk(s, k), groupby(keys, vals)
Operations scan sort histogram matmul fft
Diagnostics device_info() set_backend(...) profile()

When NumFast is fast

Measured characterizations (RTX 2060, details in docs/PERFORMANCE.md):

  • fusion-friendly pipelines and parameter batches: 8-31x vs NumPy
  • elementwise Filter compositions: up to 334x
  • recursive per-element chains (e.g. Wilder RSI): CPU may win — we say so honestly

Documentation

Status

1.0.0a1 · Python 3.10+ · Node.js 18+ · License: see LICENSE

Metadata

Release files for numfast 1.0.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for numfast 1.0.0a1
File Size Uploaded Provenance Actions
numfast-1.0.0a1.tar.gz 517.9 kB Without provenance Details for numfast-1.0.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for numfast 1.0.0a1
File Interpreter ABI Platform Actions
numfast-1.0.0a1-py3-none-any.whl Python 3 none any Details for numfast-1.0.0a1-py3-none-any.whl

Total release size: 975.3 kB

Release files / numfast-1.0.0a1.tar.gz

Download URL numfast-1.0.0a1.tar.gz
Size 517.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f5b1f4a1b08390fb9635fa31fbd69b402c0e0f2fe70c356cb2c27eed6ae03952
BLAKE2b-256 checksum
How to use checksums
b386c9d7b0bfc8c0b1456d788ab426540c147091cc48e15035eb89fc391fda6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / numfast-1.0.0a1-py3-none-any.whl

Download URL numfast-1.0.0a1-py3-none-any.whl
Size 457.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91b2374b0c484ad5292371b69ae0fac9c307f6c7f9297d246b1714cd8c00d3ba
BLAKE2b-256 checksum
How to use checksums
87175e822bceb73d79023e82c7d32060039f73c677c6283b7e6b3bb929ca4796
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Security for numfast 1.0.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page