{"id":51509482,"url":"https://github.com/murphsicles/xxhash","last_synced_at":"2026-07-08T04:30:55.778Z","repository":{"id":363764768,"uuid":"1264806391","full_name":"murphsicles/xxhash","owner":"murphsicles","description":"XXHash hash functions (xxh32, xxh64, xxh3) for Zeta — transpiled from xxhash-rust v0.8.15","archived":false,"fork":false,"pushed_at":"2026-06-10T08:26:45.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T09:24:06.925Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/murphsicles.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-10T07:41:11.000Z","updated_at":"2026-06-10T08:26:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/murphsicles/xxhash","commit_stats":null,"previous_names":["murphsicles/xxhash"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/murphsicles/xxhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fxxhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fxxhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fxxhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fxxhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murphsicles","download_url":"https://codeload.github.com/murphsicles/xxhash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fxxhash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35252324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-08T04:30:55.227Z","updated_at":"2026-07-08T04:30:55.768Z","avatar_url":"https://github.com/murphsicles.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# @crypto/xxhash\n\nPure Zeta port of [xxhash-rust](https://crates.io/crates/xxhash-rust) v0.8.15.\n\nXXHash is an extremely fast non-cryptographic hash algorithm, working at speeds close to RAM limits. It is well-suited for checksums, hash tables, and data integrity verification.\n\n## Installation\n\n```toml\n[dependencies]\n@crypto/xxhash = \"0.1.0\"\n```\n\n## Usage\n\n### xxh64 (64-bit hash)\n\n```zeta\nuse @crypto/xxhash::xxh64;\n\nfn checksum(data: i64, len: i64) -\u003e i64 {\n    return xxh64::xxh64(data, len, 0);\n}\n```\n\n### xxh32 (32-bit hash)\n\n```zeta\nuse @crypto/xxhash::xxh32;\n\nfn checksum32(data: i64, len: i64) -\u003e i64 {\n    return xxh32::xxh32(data, len, 0);\n}\n```\n\n### xxh3 (fastest, 64-bit)\n\n```zeta\nuse @crypto/xxhash::xxh3;\n```\n\n## Example: SuperBlock checksum\n\n```zeta\nuse @crypto/xxhash::xxh64;\n\nfn verify_superblock(buf: i64) -\u003e i64 {\n    let stored = os_load(buf + 32);  // checksum at offset 32\n    let computed = xxh64::xxh64(buf, 32, 0);\n    if (computed == stored) { return 0; }\n    return -1;\n}\n```\n\n## Modules\n\n| Module | Description | Status |\n|--------|-------------|--------|\n| `xxh64` | XXH64 one-shot + streaming | ✅ Tested |\n| `xxh32` | XXH32 one-shot + streaming | ✅ Ported |\n| `xxh3` | XXH3 (fastest) | ✅ Ported |\n| `const_xxh32` | const-compatible XXH32 | ✅ Ported |\n| `const_xxh64` | const-compatible XXH64 | ✅ Ported |\n| `const_xxh3` | const-compatible XXH3 | ✅ Ported |\n\n## Known Limitations\n\n- Uses `i64` (signed) arithmetic per Zeta's type system. The hash output bit pattern is correct for both signed and unsigned interpretation.\n- Hex constants ≥ `0x8000000000000000` parsed as zero by zetac — workaround uses signed decimal literals.\n- `#[cfg(feature)]` conditional compilation is parsed but not evaluated by zetac — all modules compile unconditionally.\n\n## License\n\nMIT — ported from [xxhash-rust](https://github.com/DoumanAsh/xxhash-rust) which is MIT/Apache-2.0.\n\n## Source\n\nhttps://github.com/murphsicles/xxhash\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurphsicles%2Fxxhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurphsicles%2Fxxhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurphsicles%2Fxxhash/lists"}