Repository navigation
Make: Build JavaScript Windows x64 prebuilds - #774
Merged
ashvardanian merged 2 commits intoJul 10, 2026
Merged
Conversation
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
The `build_javascript` job exported `CC=gcc`/`CXX=g++` for every OS. On Windows `node-gyp` ignores both and builds with MSVC, but NumKong's ISA probe reads the compiler from `$CC` while still emitting MSVC flag syntax, so it shells out to `gcc /c /arch:AVX2 ... /nologo`. Every probe fails, the failures are swallowed, and `nk_probes.h` lands with all 39 `NK_TARGET_*` set to zero. The addon still builds and passes the test suite -- dynamic dispatch just has no kernels to choose from -- so the result is a scalar-only binary shipped to every Windows npm user. Scope the variables to the Linux step and let the probe fall back to `cl.exe`, which enables Haswell and Skylake.
Member
|
Thank you, @GraDea! Sorry it took a bit of time. I'm finalising new NumKong/StringZilla/ForkUnion releases to feed into USearch v3. |
ashvardanian
pushed a commit
that referenced
this pull request
Jul 10, 2026
### Minor - Add: Expose `stats()` in Rust SDK (#768) (3713af9) - Add: Rust compact binding (#771) (749d03b) ### Patch - Make: Modernize CI toolchains, pin cibuildwheel (017fad3) - Fix: Reclaim `slot_lookup_` tombstones under churn (#769) (c6d634c) - Fix: Mix integer key hashes with SplitMix64 (#773) (9fc3500) - Make: Build JavaScript Windows x64 prebuilds (#774) (7240652) - Make: Bundle NumKong runtime with C# native artifacts (9c0ed29)
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.
This PR enables Windows x64 Node.js prebuilds for the
usearchnpm package.The Issue
Currently, the
usearchnpm tarball lacks Windows prebuilds (e.g.,prebuilds/win32-x64/usearch.node), causingrequire("usearch")to fail on Windows environments. Thepackage.jsonandjavascript/usearch.tsfiles are already configured to handle Windows prebuilds, but thebuild_javascriptCI job had Windows commented out.The Fix
windows-2022to thebuild_javascriptOS matrix.archmatrix to[x64]and removed the redundantexcludeblock (sincex86was already excluded for both macOS and Ubuntu).Verification
To ensure this works without breaking the release pipeline, a safe fork-only smoke test was run on
windows-2022. The smoke test confirmed:npm run prebuild-singlecompiles successfully on Windows x64.npm packcorrectly includespackage/prebuilds/win32-x64/usearch.nodein the generated tarball.require('usearch').Smoke test evidence: https://github.com/GraDea/USearch/actions/runs/29040426768