{"id":23100505,"url":"https://github.com/jacobcrabill/adventofcode-2023","last_synced_at":"2025-06-20T22:34:30.907Z","repository":{"id":209053872,"uuid":"723114321","full_name":"JacobCrabill/AdventOfCode-2023","owner":"JacobCrabill","description":"Advent Of Code 2023 Solutions","archived":false,"fork":false,"pushed_at":"2024-11-28T18:55:04.000Z","size":139,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T20:44:26.253Z","etag":null,"topics":["advent-of-code","advent-of-code-2023","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JacobCrabill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-11-24T18:12:38.000Z","updated_at":"2024-11-28T18:55:09.000Z","dependencies_parsed_at":"2024-02-17T06:23:09.314Z","dependency_job_id":"8bc1f412-b856-4da2-8972-f5e60851fc03","html_url":"https://github.com/JacobCrabill/AdventOfCode-2023","commit_stats":null,"previous_names":["jacobcrabill/adventofcode2023"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JacobCrabill/AdventOfCode-2023","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobCrabill%2FAdventOfCode-2023","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobCrabill%2FAdventOfCode-2023/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobCrabill%2FAdventOfCode-2023/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobCrabill%2FAdventOfCode-2023/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JacobCrabill","download_url":"https://codeload.github.com/JacobCrabill/AdventOfCode-2023/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobCrabill%2FAdventOfCode-2023/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261029754,"owners_count":23099810,"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":["advent-of-code","advent-of-code-2023","zig"],"created_at":"2024-12-16T23:32:56.125Z","updated_at":"2025-06-20T22:34:25.891Z","avatar_url":"https://github.com/JacobCrabill.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent Of Code 2023\n\nAdvent Of Code 2023 Solutions in Zig (version 0.11.0)\n\n## Basic Usage\n\nThe `template` folder contains, obviously, the template for a single day's problems. The\n`create_day` script will conveniently copy-paste the template to a new day for you, including\nchanging the output binary name to match the day.\n\nFor example: `create_day 5` creates a folder named `5` which contains a Zig project setup to build a\n`day5` binary.\n\n## Using the templates\n\nEach day is a standalone Zig project, containing a `build.zig` file, a `main.zig` file, and `.txt`\nfiles for the problem input. The `test.txt` file is intended for the sample input, while the\n`input.txt` file is intended for your unique input.\n\nWithin `main.zig` there are placeholder functions for `part1` and `part2`, and a `main()` which runs\nboth parts (and helpfully times them for you). There are also two tests, one for each part; you can\nuse these to check your solution against the sample input and solution given in the problem\nstatements. Just change the line `const answer: usize = 0;` to the expected answer.\n\nThe template also creates a `utils` module from the `common` folder in the root; this can be used to\nstore generically useful algorithms and data structures to speed up your problem solving. The\ntemplate `main.zig` file imports this module as `utils`.\n\n## Build \u0026 Run\n\n```sh\n./create_day 5\ncd 5\nzig build test # Build and run the tests\nzig build run  # Build and run main()\n```\n\nSample output for unit tests:\n\n```sh\nAdventOfCode2023/5$ zig build test --summary all\nrun test: error: [aoc] (warn): -- Running Tests --\n[aoc] (warn): [Test] Part 1: 0\n[aoc] (warn): [Test] Part 2: 0\nBuild Summary: 3/3 steps succeeded; 2/2 tests passed\ntest success\n└─ run test 2 passed 829us MaxRSS:1M\n   └─ zig test Debug native cached 5ms MaxRSS:36M\n```\n\nSample output for for the full input:\n\n```sh\nAdventOfCode2023/5$ zig build run\ninfo(aoc): Part 1 answer: \u003c\u003c 0 \u003e\u003e\ninfo(aoc): Part 1 took 0.000010s\ninfo(aoc): Part 2 answer: \u003c\u003c 0 \u003e\u003e\ninfo(aoc): Part 2 took 0.000004s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobcrabill%2Fadventofcode-2023","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacobcrabill%2Fadventofcode-2023","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobcrabill%2Fadventofcode-2023/lists"}