{"id":22709459,"url":"https://github.com/lukaspietzschmann/zigchr","last_synced_at":"2026-02-22T20:36:05.703Z","repository":{"id":267245079,"uuid":"858930370","full_name":"LukasPietzschmann/zigchr","owner":"LukasPietzschmann","description":"A FreeCHR instance written in Zig ","archived":false,"fork":false,"pushed_at":"2025-10-27T11:25:51.000Z","size":72,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-30T18:38:29.240Z","etag":null,"topics":["constraint-programming","zig"],"latest_commit_sha":null,"homepage":"https://lukas.pietzschmann.org/talks/zigtoberfest","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LukasPietzschmann.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":"2024-09-17T19:23:34.000Z","updated_at":"2025-11-06T19:50:48.000Z","dependencies_parsed_at":"2024-12-09T09:11:14.568Z","dependency_job_id":"ff58eb34-59e2-4fcd-abce-3a4faba33ac4","html_url":"https://github.com/LukasPietzschmann/zigchr","commit_stats":null,"previous_names":["lukaspietzschmann/zigchr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LukasPietzschmann/zigchr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasPietzschmann%2Fzigchr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasPietzschmann%2Fzigchr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasPietzschmann%2Fzigchr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasPietzschmann%2Fzigchr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LukasPietzschmann","download_url":"https://codeload.github.com/LukasPietzschmann/zigchr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasPietzschmann%2Fzigchr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29726105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T20:09:16.275Z","status":"ssl_error","status_checked_at":"2026-02-22T20:09:13.750Z","response_time":110,"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":["constraint-programming","zig"],"created_at":"2024-12-10T11:09:47.427Z","updated_at":"2026-02-22T20:36:05.681Z","avatar_url":"https://github.com/LukasPietzschmann.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZigCHR\n\nFor the [talk](https://github.com/LukasPietzschmann/zigtoberfest-talk) I gave at Zigtoberfest 2024, I coded up a CHR embedding for Zig using the\nFreeCHR framework.\n\nIf you want to learn more about FreeCHR, go ahead and read [this\npaper](https://doi.org/10.1007/978-3-031-45072-3_14). If you want to know more about\ncool properties that CHR can bring to your algorithms, visit [my website for the\ntalk](https://lukas.pietzschmann.org/talks/zigtoberfest)\n\n## Project Structure\n\n- `src/`: Here you can find two example on how to use the embedding.\n- `lib/`: The embedding itself.\n- `utils/`: Some useful data structures and functions unrelated to CHR.\n\n## How to build it\n\nFor each file inside the `src` directory, there exists a step. So lets say you want to\nbuild and run the _min_ example. You can run `zig build min` to do so. For all examples\npresent in this repo, you can pass the query constraints though the commandline like the\nfollowing: `zig build min -- 1 3 5`.\n\nIf you add your own file in the `src` folder, the build system will automatically\ngenerate a step for you.\n\n### Additional flags\n\nYou can pass different flags to the build process to control how much logs the embedding\nproduces:\n\n- `-Dlog` enabled logging. The embedding will print which rules were fired with which\n  constraints, whats put into the store, ...\n- `-Dnotag` wont print a constraints tag.\n- `-Dmatchings` requires `-Dlog`. The embedding will print what combination of\n  constraints are considered.\n- `-Dstore` requires `-Dlog`. The embedding will print the constraint store when it's\n  modified.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukaspietzschmann%2Fzigchr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukaspietzschmann%2Fzigchr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukaspietzschmann%2Fzigchr/lists"}