{"id":13682660,"url":"https://github.com/d3lio/degu-lang","last_synced_at":"2025-12-28T10:44:02.011Z","repository":{"id":102464257,"uuid":"177666552","full_name":"d3lio/degu-lang","owner":"d3lio","description":"A take at a scripting language with an ML (Meta Language) family syntax. Heavily inspired by F#, OCaml and at some extent - Rust.","archived":false,"fork":false,"pushed_at":"2019-03-31T17:52:02.000Z","size":54,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-02T13:34:23.742Z","etag":null,"topics":["llvm","programming-language","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d3lio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-03-25T21:21:31.000Z","updated_at":"2024-05-05T09:14:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb2fdab0-4f16-452e-a50a-d34d0ad8739e","html_url":"https://github.com/d3lio/degu-lang","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/d3lio%2Fdegu-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3lio%2Fdegu-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3lio%2Fdegu-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3lio%2Fdegu-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d3lio","download_url":"https://codeload.github.com/d3lio/degu-lang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224206148,"owners_count":17273399,"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":["llvm","programming-language","rust"],"created_at":"2024-08-02T13:01:50.800Z","updated_at":"2025-12-28T10:44:01.952Z","avatar_url":"https://github.com/d3lio.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# degu-lang\n\nA take at a scripting language with an ML (Meta Language) family syntax. Heavily inspired by F#, OCaml and at some extent - Rust.\n\n### Setting up the project\n\nYou need to have a local LLVM sdk. [The llvm cmake guide](https://llvm.org/docs/CMake.html) will help you as well as [the llvm-sys crate](https://crates.io/crates/llvm-sys) since that is what the project depends on.\n\nWhat I've found useful is to pass a parallel build flag to `cmake --build`. For Windows' MSVC this is `/maxcpucount:\u003cn\u003e` and would look something like `cmake --build . --config MinSizeRel -- /maxcpucount:4`.\n\nThe current required version of LLVM is 6 which will change when I get to recompile LLVM again.\n\nOther than just run `cargo run -p compiler`.\n\n### Example output\n\nmain.dg\n```f#\nlet max3 a b c = if a \u003e b then a else if b \u003e c then b else c\n\nlet ifs a b c value =\n    value + max3 a b c\n\nlet number_ops a b c =\n    print_number a\n    print_number b\n    print_number c\n    ifs a b c ((a + 1) * (a + 1) + 2 + (4 + 5 * 2 - 10)) - 4\n\nlet main _ = print_number (number_ops 1 2 3)\n\n```\n\nstdout\n```\n1\n2\n3\n9\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3lio%2Fdegu-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd3lio%2Fdegu-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3lio%2Fdegu-lang/lists"}