{"id":19658178,"url":"https://github.com/cdaringe/protohacks","last_synced_at":"2025-04-28T20:31:16.661Z","repository":{"id":142017510,"uuid":"531398034","full_name":"cdaringe/protohacks","owner":"cdaringe","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-02T01:14:52.000Z","size":76,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-22T16:02:50.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/cdaringe.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":"2022-09-01T06:47:46.000Z","updated_at":"2024-06-02T00:57:50.000Z","dependencies_parsed_at":"2023-07-07T07:32:45.976Z","dependency_job_id":null,"html_url":"https://github.com/cdaringe/protohacks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fprotohacks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fprotohacks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fprotohacks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fprotohacks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdaringe","download_url":"https://codeload.github.com/cdaringe/protohacks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251383653,"owners_count":21580916,"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":[],"created_at":"2024-11-11T15:36:22.959Z","updated_at":"2025-04-28T20:31:16.186Z","avatar_url":"https://github.com/cdaringe.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protohacks\n\n[protohackers](https://protohackers.com/) using OCaml v5.x\n\n[![OCaml-CI Build Status](https://img.shields.io/endpoint?url=https://ci.ocamllabs.io/badge/cdaringe/protohacks/main\u0026logo=ocaml)](https://ci.ocamllabs.io/github/cdaringe/protohacks)\n\n## usage\n\nAt the time of writing, ocaml 5.x is cutting edge. This is used intentionally\nto enjoy and explore OCaml's built-in effect system. This project also uses [eio](https://github.com/ocaml-multicore/eio), which is an effect based event loop and toolkit, e.g. effects+libuv.\n\nTo make everything work as easy as possible on all architectures supported by opam2 docker images, I roll a [devcontainer](https://code.visualstudio.com/docs/remote/create-dev-container), such that the OCaml platform extension can work seamlessly.\nThis is paramount, because this required opam switch's dependencies are not yet all compatible with my mac M1.\n\n- Build the container\n  - `docker buildx build --progress=plain --platform linux/amd64 -t cdaringe/ocaml5-devcontainer .`\n- Launch VSCode \u003e Select \"Reload in Container\"\n- `dune exec bin/servers.exe`\n\nProfit.\n\n## deployment\n\nI do not deploy the servers, per se. I open an SSH tunnel to a cloud server, relaying my local server into the cloud. Protohackers then hits my cloud server, which hits my local server... and their massive test suites do great work.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fprotohacks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdaringe%2Fprotohacks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fprotohacks/lists"}