git: eba0b087b6ea - main - devel/py-numkong: New port: Portable mixed-precision math, linear-algebra, & retrieval library
Yuri Victorovich <[email protected]> Sun, 02 Aug 2026 23:54:39 +0000
| Newsgroups | gmane.os.freebsd.devel.cvs.ports |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=eba0b087b6eac70aadf4b57cb4b47e7c3d82a411 commit eba0b087b6eac70aadf4b57cb4b47e7c3d82a411 Author: Yuri Victorovich <[email protected]> AuthorDate: 2026-08-02 22:57:38 +0000 Commit: Yuri Victorovich <[email protected]> CommitDate: 2026-08-02 23:54:23 +0000 devel/py-numkong: New port: Portable mixed-precision math, linear-algebra, & retrieval library --- devel/Makefile | 1 + devel/py-numkong/Makefile | 23 +++++++++++++++++++++++ devel/py-numkong/distinfo | 3 +++ devel/py-numkong/pkg-descr | 9 +++++++++ 4 files changed, 36 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 103650fe8e4e..6d9ab762d43f 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5534,6 +5534,7 @@ SUBDIR += py-notify2 SUBDIR += py-num2words SUBDIR += py-numba + SUBDIR += py-numkong SUBDIR += py-nvidia-ml-py SUBDIR += py-objgraph SUBDIR += py-objprint diff --git a/devel/py-numkong/Makefile b/devel/py-numkong/Makefile new file mode 100644 index 000000000000..f81255592436 --- /dev/null +++ b/devel/py-numkong/Makefile @@ -0,0 +1,23 @@ +PORTNAME= numkong # successor of simsimd +DISTVERSION= 7.7.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= [email protected] +COMMENT= Portable mixed-precision math, linear-algebra, & retrieval library +WWW= https://ashvardanian.com/posts/numkong/ \ + https://github.com/ashvardanian/NumKong + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest # tests fail to run, see https://github.com/ashvardanian/NumKong/issues/371 + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +.include <bsd.port.mk> diff --git a/devel/py-numkong/distinfo b/devel/py-numkong/distinfo new file mode 100644 index 000000000000..00dc0a4a0672 --- /dev/null +++ b/devel/py-numkong/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1785710667 +SHA256 (numkong-7.7.0.tar.gz) = a7605738c2ca96e2f85747fdf670625ba5fa10cccef90055e247a1a21b92f920 +SIZE (numkong-7.7.0.tar.gz) = 1188299 diff --git a/devel/py-numkong/pkg-descr b/devel/py-numkong/pkg-descr new file mode 100644 index 000000000000..83fd51942e45 --- /dev/null +++ b/devel/py-numkong/pkg-descr @@ -0,0 +1,9 @@ +The NumKong project implements portable mixed-precision math, linear-algebra, +& retrieval library with 2'000+ SIMD kernels for x86, Arm, RISC-V, LoongArch, +Power, & WebAssembly, leveraging rare algebraic transforms with both 1D & 2D +registers like AMX & SME, covering 15+ numeric types from 4-bit integers & +6-bit floats to 128-bit complex numbers, validated against 118-bit +extended-precision baselines with saturation, casting, & rounding edge-case +coverage, in a 5-100x smaller binary than other BLAS-like alternatives, +co-designed with Tensor abstractions in C++, Python, Rust, JavaScript, GoLang, +& Swift.