{"id":20264357,"url":"https://github.com/thi-ng/zig-thing","last_synced_at":"2026-03-10T08:01:33.722Z","repository":{"id":40738189,"uuid":"472814780","full_name":"thi-ng/zig-thing","owner":"thi-ng","description":"Small collection of data types/structures, utilities \u0026 open-learning with Zig","archived":false,"fork":false,"pushed_at":"2025-09-12T11:40:31.000Z","size":181,"stargazers_count":42,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-12T13:30:37.624Z","etag":null,"topics":["linalg","monorepo","ndarray","simd","vector","wasm","zig"],"latest_commit_sha":null,"homepage":"https://thi.ng","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thi-ng.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":"2022-03-22T14:53:25.000Z","updated_at":"2025-09-12T11:40:34.000Z","dependencies_parsed_at":"2024-10-25T12:23:09.193Z","dependency_job_id":"1f975a72-2846-481b-9171-e4bc85872f49","html_url":"https://github.com/thi-ng/zig-thing","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/thi-ng/zig-thing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thi-ng%2Fzig-thing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thi-ng%2Fzig-thing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thi-ng%2Fzig-thing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thi-ng%2Fzig-thing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thi-ng","download_url":"https://codeload.github.com/thi-ng/zig-thing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thi-ng%2Fzig-thing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30327549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["linalg","monorepo","ndarray","simd","vector","wasm","zig"],"created_at":"2024-11-14T11:39:45.917Z","updated_at":"2026-03-10T08:01:33.705Z","avatar_url":"https://github.com/thi-ng.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zig.thi.ng\n\n## About\n\nVarious, still somewhat unstructured, raw-around-the-edges utilities / open\nlearning with [Zig](https://ziglang.org), at some point hopefully culminating\ninto a useful toolkit.\n\n**All code in this repo is compatible with Zig v0.15.1**.\n\n## Current modules (all WIP)\n\n| Name                                               | Description                                                                 |\n| -------------------------------------------------- | --------------------------------------------------------------------------- |\n| [`thing.FixedBufferDualList`](./src/dual_list.zig) | Dual-headed linked list for resource IDs allocation (active/available)      |\n| [`thing.HashGrid2`](./src/hash_grid.zig)           | 2D hash grid spatial indexing \u0026 neighborhood query                          |\n| [`thing.ndarray`](./src/ndarray.zig)               | Generic nD-Array base implementation                                        |\n| [`thing.random`](./src/random.zig)                 | Additional `std.rand.Random`-compatible PRNGs and related utilities.        |\n| [`thing.vectors`](./doc/vectors.md)                | SIMD-based generic vector type \u0026 operations (incl. type specific additions) |\n\n## Usage with Zig's package manager\n\nTagged versions of this project are available and can be added as dependency to\nyour project via `zig fetch`, like so:\n\n```bash\nzig fetch --save https://github.com/thi-ng/zig-thing/archive/refs/tags/v0.3.0.tar.gz\n```\n\nThe `--save` option adds a new dependency called `thing` to your\n`build.zig.zon` project file.\n\nYou'll also need to update your main `build.zig` with these additions:\n\n```zig\n// \u003cstandard_boilerplate\u003e\nconst target = b.standardTargetOptions(.{});\nconst optimize = b.standardOptimizeOption(.{});\n// main build step...\nconst exe = b.addExecutable(.{ ... });\n// \u003c/standard_boilerplate\u003e\n\n// declare \u0026 configure dependency (via build.zig.zon)\nconst thing = b.dependency(\"thing\", .{\n    .target = target,\n    .optimize = optimize,\n}).module(\"thing\");\n\n// declare module for importing via given id\nexe.root_module.addImport(\"thing\", thing);\n```\n\n**Important:** If you're having a test build step configured (or any other build\nstep requiring separate compilation), you'll also need to add the\n`.root_module.addImport()` call for that step too!\n\nWith these changes, you can then import the module in your source code like so:\n\n```zig\nconst thing = @import(\"thing\");\n```\n\n## Building \u0026 Testing\n\nThe package is not meant to be build directly (yet), so currently the build file\nonly declares a module.\n\nTo run all tests:\n\n```bash\nzig test src/main.zig\n```\n\n## License\n\n\u0026copy; 2021 - 2025 Karsten Schmidt // Apache Software License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthi-ng%2Fzig-thing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthi-ng%2Fzig-thing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthi-ng%2Fzig-thing/lists"}