{"id":21910880,"url":"https://github.com/rizo/meta","last_synced_at":"2025-04-16T02:33:31.067Z","repository":{"id":137742101,"uuid":"23677539","full_name":"rizo/meta","owner":"rizo","description":"Personal hacking experiments with OCaml compiler infrastructure .","archived":false,"fork":false,"pushed_at":"2014-09-16T23:57:48.000Z","size":228,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T06:12:15.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/rizo.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}},"created_at":"2014-09-04T20:06:52.000Z","updated_at":"2020-01-30T02:48:39.000Z","dependencies_parsed_at":"2023-03-25T22:20:36.445Z","dependency_job_id":null,"html_url":"https://github.com/rizo/meta","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/rizo%2Fmeta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizo%2Fmeta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizo%2Fmeta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizo%2Fmeta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rizo","download_url":"https://codeload.github.com/rizo/meta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249184643,"owners_count":21226425,"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-28T17:34:29.296Z","updated_at":"2025-04-16T02:33:31.044Z","avatar_url":"https://github.com/rizo.png","language":"OCaml","readme":"meta\n====\n\n_Hackish experiments with the OCaml compiler infrastructure._\n\n**Meta** is a custom front-end for the OCaml compiler built with the _compiler-libs_ package. It extends and simplifies the OCaml syntax but remains a superset of OCaml, which means that any valid OCaml code is also a valid Meta code.\n\nHere is a small example of how Meta looks:\n\n```\n\n(* Function examples *)\n\n(** Identity function *)\nlet id : 'a → 'a = λ x → x\n\n\n(** Function composition. *)\nlet compose : ('a → 'b) → ('c → 'a) → 'c → 'b =\n\tλ f g x → f \\ g x\n\n\n(* Type printing. *)\n\ntype person = {\n\tname: string;\n\tage: int\n}\n\nlet print_person_args : string → int → unit =\n\tλ name age → print_endline \\\n\t\t\"Name: \" ^ name ^ \"\\n\" ^\n\t\t\" Age: \" ^ string_of_int age ^ \"\\n\"\n\n\nlet print_person_tuple : (string * int) → unit =\n\tλ (name, age) → print_endline \\\n\t\t\"Name: \" ^ name ^ \"\\n\" ^\n\t\t\" Age: \" ^ string_of_int age ^ \"\\n\"\n\n\nlet print_person_record : person → unit =\n\tλ {name; age} → print_endline \\\n\t\t\"Name: \" ^ name ^ \"\\n\" ^\n\t\t\" Age: \" ^ string_of_int age ^ \"\\n\"\n\n\nlet () =\n\tprint_person_record {name = \"Eve\"; age = 19};\n\tprint_person_args \"Adam\" 20;\n\tprint_person_tuple (\"Eve\", 19)\n\n```\n\n### Features\n\n- (Limited) Unicode support.\n- Compact lambda syntax.\n- Special _explicit application_ operator `\\`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frizo%2Fmeta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frizo%2Fmeta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frizo%2Fmeta/lists"}