{"id":41067639,"url":"https://github.com/ostcar/roc-aoc-platform","last_synced_at":"2026-01-22T12:47:00.059Z","repository":{"id":262021493,"uuid":"886004721","full_name":"ostcar/roc-aoc-platform","owner":"ostcar","description":"Roc platform for Advent of Code","archived":false,"fork":false,"pushed_at":"2024-12-06T14:49:00.000Z","size":130,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-25T08:39:21.664Z","etag":null,"topics":["aoc","platform","roc"],"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/ostcar.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-11-09T23:45:05.000Z","updated_at":"2024-12-06T14:49:04.000Z","dependencies_parsed_at":"2024-11-10T00:26:20.248Z","dependency_job_id":"5b018c76-b133-4746-90d2-38437a66572f","html_url":"https://github.com/ostcar/roc-aoc-platform","commit_stats":null,"previous_names":["ostcar/roc-aoc-platform"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ostcar/roc-aoc-platform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostcar%2Froc-aoc-platform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostcar%2Froc-aoc-platform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostcar%2Froc-aoc-platform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostcar%2Froc-aoc-platform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ostcar","download_url":"https://codeload.github.com/ostcar/roc-aoc-platform/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostcar%2Froc-aoc-platform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28663217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["aoc","platform","roc"],"created_at":"2026-01-22T12:46:59.308Z","updated_at":"2026-01-22T12:47:00.052Z","avatar_url":"https://github.com/ostcar.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Roc Platform for Advent of Code\n\nThis is a [Roc](https://www.roc-lang.org/)-Platform for Advent of Code.\n\nThe puzzle input file has to be next to the roc file with an `.input` extension.\nAnother input file can be specified by giving a file name. `-` for stdin.\n\nThe platform staticly allocates memory on startup. The default is one GiB.\nAnother amount can be specified with `--memory \u003cBYTES\u003e` or `roc run dayX.roc -- --memory \u003cBYTES\u003e`.\n\nAs default, both parts are calculated. By using `--part1` or `--part2` only one\npart is calculated.\n\nFor an example Repository, see: https://github.com/ostcar/aoc2024\n\nAn roc file can be look like this:\n\n```roc\napp [solution] {\n    pf: platform \"https://github.com/ostcar/roc-aoc-platform/releases/download/v0.0.8/lhFfiil7mQXDOB6wN-jduJQImoT8qRmoiNHDB4DVF9s.tar.br\",\n}\n\nexamplePart1 =\n    \"\"\"\n    the example for\n    part 1\n    \"\"\"\n\nexpect\n    got = part1 examplePart1\n    expected = Ok \"the example for part 1\"\n    got == expected\n\npart1 = \\input -\u003e\n    input\n    |\u003e Str.replaceEach \"\\n\" \" \"\n    |\u003e Ok\n\nexamplePart2 =\n    \"\"\"\n    example for\n    part 2\n    \"\"\"\n\nexpect\n    got = part2 examplePart2\n    expected = Ok \"2 trap rof elpmaxe\"\n    got == expected\n\npart2 = \\input -\u003e\n    input\n    |\u003e Str.replaceEach \"\\n\" \" \"\n    |\u003e Str.toUtf8\n    |\u003e List.reverse\n    |\u003e Str.fromUtf8\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fostcar%2Froc-aoc-platform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fostcar%2Froc-aoc-platform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fostcar%2Froc-aoc-platform/lists"}