
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Perform accelerated shard hash computation for Neuroglancer Precomputed shards.
import shardcomputer
preshift_bits = 0
shard_bits = 11
minishard_bits = 8
label = 12949142
shard_no = shardcomputer.shard_number(label, preshift_bits, shard_bits, minishard_bits)
# let labels be a uint64 numpy array of labels
# e.g. set(['4d2'])
shard_no_set = shardcomputer.unique_shard_numbers(
labels, preshift_bits, shard_bits, minishard_bits
)
# Returns shard number -> label list dict
# e.g. {'4d2': [12949142]}
shard_no_to_labels = shardcomputer.assign_labels_to_shards(
label, preshift_bits, shard_bits, minishard_bits
)
pip install shard-computer
Thank you to Austin Appleby for placing MurMurhash3 into the public domain.
FAQs
A library for rapid computation of Neuroglancer Precomputed shard hashes.
We found that shard-computer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.