{"id":20955148,"url":"https://github.com/bryik/experiments-in-ocaml","last_synced_at":"2026-05-22T07:31:56.652Z","repository":{"id":70396721,"uuid":"162338995","full_name":"bryik/experiments-in-ocaml","owner":"bryik","description":"Small snippets of OCaml.","archived":false,"fork":false,"pushed_at":"2018-12-22T02:19:32.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T23:32:48.398Z","etag":null,"topics":["ocaml"],"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/bryik.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":"2018-12-18T19:58:11.000Z","updated_at":"2018-12-22T02:19:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"f637cd5b-1b75-4c22-914a-ab78d3d6912e","html_url":"https://github.com/bryik/experiments-in-ocaml","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/bryik%2Fexperiments-in-ocaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryik%2Fexperiments-in-ocaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryik%2Fexperiments-in-ocaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryik%2Fexperiments-in-ocaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bryik","download_url":"https://codeload.github.com/bryik/experiments-in-ocaml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243351862,"owners_count":20276911,"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":["ocaml"],"created_at":"2024-11-19T01:18:14.180Z","updated_at":"2025-12-29T07:26:19.025Z","avatar_url":"https://github.com/bryik.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Experiments in OCamel\r\n\r\nThis repo contains little examples demonstrating certain concepts from OCaml. They are slightly cleaned up versions of notes I wrote during the uOttawa course CSI 3120.\r\n\r\n## Running these experiments\r\n\r\nAll of the examples in `./experiments` have been tested with OCaml 4.07.0.\r\n\r\nThe easiest way to try out these examples is to open [utop](https://opam.ocaml.org/blog/about-utop/) in `./experiments` and `#use` a file to run the code via OCaml's interpreter. For example,\r\n\r\n```\r\n# \"hello\" refers to ./experiments/hello.ml\r\n#use \"hello\".ml\r\n```\r\n\r\nAlternatively, to compile, run, and remove the compiled files:\r\n\r\n1. Open a terminal in the `./experiments` directory.\r\n2. Execute:\r\n\r\n```bash\r\nocamlbuild $1.native -- \u0026\u0026 rm $1.native \u0026\u0026 rm -rf _build\r\n```\r\n\r\nWhere `$1` is the filename of the example you want to run.\r\n\r\nYou can wrap this in a handy bash function:\r\n\r\n```bash\r\nfunction camel {\r\n  ocamlbuild $1.native -- \u0026\u0026 rm $1.native \u0026\u0026 rm -rf _build\r\n}\r\n```\r\n\r\nWith this, running a single file can be accomplished with:\r\n\r\n```bash\r\n# \"hello\" refers to ./experiments/hello.ml\r\ncamel hello\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryik%2Fexperiments-in-ocaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryik%2Fexperiments-in-ocaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryik%2Fexperiments-in-ocaml/lists"}