{"id":24872624,"url":"https://github.com/nikomalik/wyhash","last_synced_at":"2025-04-13T07:14:01.953Z","repository":{"id":275182672,"uuid":"924373062","full_name":"NikoMalik/wyhash","owner":"NikoMalik","description":"wyhash implementation in zig","archived":false,"fork":false,"pushed_at":"2025-03-10T21:25:10.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T07:13:58.961Z","etag":null,"topics":["wyhash","zig","zig-lib","zig-package","zig-wyhash","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/NikoMalik.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}},"created_at":"2025-01-29T22:04:23.000Z","updated_at":"2025-03-10T21:25:13.000Z","dependencies_parsed_at":"2025-03-26T23:38:38.074Z","dependency_job_id":null,"html_url":"https://github.com/NikoMalik/wyhash","commit_stats":null,"previous_names":["nikomalik/wyhash"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikoMalik%2Fwyhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikoMalik%2Fwyhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikoMalik%2Fwyhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikoMalik%2Fwyhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikoMalik","download_url":"https://codeload.github.com/NikoMalik/wyhash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675422,"owners_count":21143768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["wyhash","zig","zig-lib","zig-package","zig-wyhash","ziglang"],"created_at":"2025-02-01T05:18:13.947Z","updated_at":"2025-04-13T07:14:01.914Z","avatar_url":"https://github.com/NikoMalik.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WYHASH - Zig Implementation\n\n![Github Repo Issues](https://img.shields.io/github/issues/NikoMalik/wyhash?style=flat) ![GitHub Repo stars](https://img.shields.io/github/stars/NikoMalik/wyhash?style=social)\n\n\n\n🚀 Overview\n\nWyhash is a fast, high-quality, portable non-cryptographic hash function known for its exceptional speed and randomness quality. \nThis repository provides a native Zig implementation of Wyhash.Project is also open for people to add to and improve. Please check the issues to view requested features\n\n\nWhy Wyhash?\n\n- ✅ Extremely fast performance across different architectures\n- ✅ High-quality randomness and strong avalanche effect\n- ✅ Minimal code size and efficient memory usage\n- ✅ Used in databases, networking, and high-performance applications\n\n\n\n# 🛠 Basic Usage\n\n```zig\nconst wyhash = @import(\"wyhash\");\nconst std = @import(\"std\");\n\npub fn main() !void {\n    const r: u64 = 0x001020120;\n\n    const res = wyhash._whash(\"🔥Hello World!\", r);\n    std.debug.print(\"wyhash(\\\"🔥Hello World!\\\", {}) = {}\\n\", .{ r, res });\n}\n\n```\n\n# 📦 Installation\n\n*Add this to your build.zig.zon*\n\n```zig\n.dependencies = .{\n    .wyhash = .{\n        .url = \"https://github.com/NikoMalik/wyhash/archive/refs/heads/main.tar.gz\",\n        //the correct hash will be suggested by zig\n    }\n}\n\n```\n\n*And add this to you build.zig*\n\n```zig\n    const wyhash = b.dependency(\"wyhash\", .{\n        .target = target,\n        .optimize = optimize,\n    });\n    exe_mod.addImport(\"wyhash\", wyhash.module(\"wyhash\"));\n\n\n```\nYou can then import the library into your code like this\n\n```zig\nconst wyhash = @import(\"wyhash\")\n```\n\n\n#  📦 Installation/2\n\n```bash\n\ngit clone https://github.com/NikoMalik/wyhash.git\nmv wyhash /path/to/your/project/directory\n```\n\n\n\n\n\n# 🔥 Benchmarks\n\nWyhash is one of the fastest hash functions available. Benchmarks against MurmurHash3, XXHash, and CityHash show superior performance in most cases.\n\n\n\n# 👥 Credits\n\nOriginal Wyhash: Wang Yi\n\nRepo: https://github.com/wangyi-fudan/wyhash\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikomalik%2Fwyhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikomalik%2Fwyhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikomalik%2Fwyhash/lists"}