{"id":34820101,"url":"https://github.com/tjammer/schmu","last_synced_at":"2025-12-25T14:28:03.416Z","repository":{"id":37584508,"uuid":"411040232","full_name":"tjammer/schmu","owner":"tjammer","description":"Mirror of https://codeberg.org/tjammer/schmu","archived":false,"fork":false,"pushed_at":"2025-10-17T11:37:56.000Z","size":5854,"stargazers_count":26,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-18T14:45:38.667Z","etag":null,"topics":["compiler","language","llvm","ocaml","programming-language"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tjammer.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-27T20:55:34.000Z","updated_at":"2025-10-17T11:37:59.000Z","dependencies_parsed_at":"2023-12-22T00:50:33.941Z","dependency_job_id":"823d1396-d5e2-4a30-9ed8-de2e1201ea9d","html_url":"https://github.com/tjammer/schmu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tjammer/schmu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjammer%2Fschmu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjammer%2Fschmu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjammer%2Fschmu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjammer%2Fschmu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjammer","download_url":"https://codeload.github.com/tjammer/schmu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjammer%2Fschmu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28031137,"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","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"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":["compiler","language","llvm","ocaml","programming-language"],"created_at":"2025-12-25T14:27:20.771Z","updated_at":"2025-12-25T14:28:03.406Z","avatar_url":"https://github.com/tjammer.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# schmu\nStrongly typed, compiled pet programming language.\n\n**Disclaimer** schmu is a passion project which I develop for fun. Please don't use it for anything too serious.\nAlso, the name will most likely change.\n\nschmu is the language I'd like to program in: A strongly typed, type-inferred compiled language that can be programmed in a functional way (see below).\nIt prefers stack- over heap allocations, and can easily interface with C code.\nThink OCaml, but slightly more control over allocations and data layout.\n\nHere's what it looks like:\n\nFibonacci example\n``` lua\n-- variable binding\nlet number = 35\n\n-- calculate fibonacci number\nfun rec fib(n) {\n  match n {\n    0 | 1 -\u003e n\n    _ -\u003e fib(n - 1) + fib(n - 2)\n  }\n}\n\n-- and print it\nuse fmt\nfib(number) |\u003e\u003e println(int)\n```\n\nMore examples can be found in the skeleton `std` library or the `test` directory.\n\n## Features\n+ **Functional**\nschmu is a functional language based on a Hindley-Milner type system.\nThis means all the basic features one might expect from an ML style language are (will be) present, like\n    + Parametric polymorphism\n    + Higher order functions and automatic closures\n    + Algebraic data types and pattern matching\n    + Module system\n    + Full type inference within a module, but interfaces between modules\n    + Focus on recursion\n\n+ **Mutable Value Semantics**\nschmu implements [mutable value semantics](https://www.jot.fm/issues/issue_2022_02/article2.pdf) a la [hylo/val](https://www.hylo-lang.org/).\nThis means references are second-class citizens and cannot be stored in records or returned from functions.\nTo make this feasible, schmu has move semantics and a simple borrow checkers for downward borrows, such as arguments to functions.\n\n+ **Practical**\nschmu aims to be a practical language.\nData types are unboxed to make it straightforward to use C code.\nIt doesn't try to compete with the fastest languages out there, but should be reasonably fast thanks to LLVM.\nIt also doesn't try to be a system programming language.\nSome low-level access necessary to interface with C code, but that's not what schmu excels at.\n\n\n## Current focus\n+ Tree sitter grammar\n+ Test-driving the language\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjammer%2Fschmu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjammer%2Fschmu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjammer%2Fschmu/lists"}