Repository navigation
Type Hints, Builds, & Safety - #748
Merged
Merged
Conversation
The amd64 link of libnumkong.so was segfaulting under the experimental lld 1:18.0-59~exp2 from Noble universe after 91c08cc widened nk_shared symbol visibility, pushing the LTO unit past what that lld release can handle. Switch the JNI Linux job to mold via -fuse-ld=mold for both shared and module link steps. mold ships in Noble main, supports the LLVM gold plugin needed for clang LTO, and avoids pinning a separate apt source.
The non-multi branch of `get_typed_vectors_for_keys` pre-allocated a 2D ndarray of shape (keys_count, dims) and ignored the return value of `index.get(...)`. Missing keys left rows of uninitialized memory that were then returned to Python — a bug with security implications, as heap residue could leak through `Index.get`. Switch to a single-allocation backing 2D array plus per-key 1D views into its rows; missing keys yield `py::none()` instead of leaking the uninitialized row. The data path stays a single allocation regardless of which keys are present, matching the docstring contract on `Index.get` (`Returns None, if one key is requested, and its not present`; `If multiple keys are requested, composes many such responses into a tuple`). Pin the contract with a regression test covering single-missing, single-present, mixed batches, and post-remove lookups for both multi and non-multi indexes. Closes #663 Co-Authored-By: Titusz Pan <[email protected]> Co-Authored-By: Titusz Pan <[email protected]>
Previously, the usearch_windows_x86_X.Y.Z.tar package in each release contained a 64-bit binary library, despite being labeled as 32-bit base x86. Closes #665
Closes #366 Co-Authored-By: Pesho Ivanov <[email protected]>
xet7
pushed a commit
to xet7/usearch
that referenced
this pull request
Nov 12, 2026
The 2.x line released v2.25.2 through v2.26.6 after 3.0 branched at v2.25.1, and its public main ends at 33d3ab6. Installs place headers under GNUInstallDirs' include directory (14f9807, unum-cloud#800), the README lists the integrations 2.x added (0fd2f32, unum-cloud#795), and CONTRIBUTING states the commit conventions in place of stale links (06ad060, unum-cloud#748). Its correctness fixes already hold on 3.0's code: - Keys move with their entries when `compact` permutes slots (0a4baa6, unum-cloud#795), and the insert-only key table never rehashes (1633e25, unum-cloud#822; 9d77be5, unum-cloud#759) - File loads bound every column slice from the header (9c25176, unum-cloud#824; 64d10d8, unum-cloud#776), and allocation sizes are checked (89da7c5, unum-cloud#763) - JavaScript keys are range-checked (b65a420, unum-cloud#812), Go filters ride `cgo.Handle`s (ad77fe7, unum-cloud#825), `splitmix64_t` survives `windows.h` (0f1c5f2, unum-cloud#806), and integer key hashes mix with SplitMix64 (9fc3500, unum-cloud#773) - C install targets and relocatable pkg-config (4160e47, 679e190, unum-cloud#800), the GIL released in long calls (d8be67d, unum-cloud#764), and graph cursors in C and Rust (55c43f7, unum-cloud#748) Thread-context reserves, tombstones, renames, `change_metric`, OpenMP metrics and hand-written BF16 casts are absent from 3.0, so their fixes have nothing to land on. The Rust `compact()` binding (749d03b, unum-cloud#771) waits for all bindings to wrap `usearch_dense_compact`. The README's performance lead now quotes the SIFT 100M rows at 99% recall on a B300 and on 192 Graviton5 cores beside FAISS HNSW, and the verification notes link ForkUnion's `main`. The sibling pins move to the libraries' own merges with their released lines, so this line builds against them. Co-Authored-By: Jonathan Ringer <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.