{"id":20576511,"url":"https://github.com/divs1210/rudralang","last_synced_at":"2026-03-06T21:34:24.875Z","repository":{"id":68119061,"uuid":"398622702","full_name":"divs1210/rudralang","owner":"divs1210","description":"A dynamic general-purpose high-level functional-programming language with familiar syntax that compiles to native binaries.","archived":false,"fork":false,"pushed_at":"2022-08-29T12:14:45.000Z","size":74,"stargazers_count":9,"open_issues_count":18,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-06T11:19:12.166Z","etag":null,"topics":["functional-programming","language","native","programming-language"],"latest_commit_sha":null,"homepage":"","language":"Scheme","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/divs1210.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}},"created_at":"2021-08-21T17:48:42.000Z","updated_at":"2024-10-17T14:01:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa323ab0-a797-4f90-b43e-56c99a55cfad","html_url":"https://github.com/divs1210/rudralang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/divs1210/rudralang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divs1210%2Frudralang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divs1210%2Frudralang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divs1210%2Frudralang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divs1210%2Frudralang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divs1210","download_url":"https://codeload.github.com/divs1210/rudralang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divs1210%2Frudralang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30198671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["functional-programming","language","native","programming-language"],"created_at":"2024-11-16T05:46:02.476Z","updated_at":"2026-03-06T21:34:24.823Z","avatar_url":"https://github.com/divs1210.png","language":"Scheme","funding_links":[],"categories":[],"sub_categories":[],"readme":"# !!EXPERIMENTAL!!\n\n# rudralang\n\nA dynamic general-purpose high-level functional-programming language with familiar syntax that compiles to native binaries.\n\n## Code Examples\n\nImplementation of the [Ackermann function](https://en.wikipedia.org/wiki/Ackermann_function):\n\n```elixir\nns!(ackermann,\n  {} =\u003e\n\n  letfn A := [m, n] =\u003e\n    cond(\n      zero?(m) =\u003e inc(n)\n      zero?(n) =\u003e A(dec(m), 1)\n      :else    =\u003e A(dec(m), A(m, dec(n)))\n    )\n\n  defn!(main!, {}, [_, m, n] =\u003e\n    let [m, n] := map(string-\u003enumber, [m, n])\n    println!(\"A(\" m \", \" n \") = \" A(m, n))\n  )\n)\n```\n\nCheck out other [sample programs](samples/).\n\n## Goals\n\n- **Ergonomic** familiar syntax, destructuring everywhere\n- **Extensible** top-level functions are polymorphic by default\n- **Immutable data structures** by default\n- **Concurrency-friendly** mutability using Clojure-like [`atom`s](https://clojuredocs.org/clojure.core/atom)\n- **Full numeric tower** example: no integer overflows, `pow(-1, 0.5)` is `0+i`\n- **Recursion-friendly** many algorithms are simpler when defined recursively - they should be written as such\n\n## Notes on this implementation\n\nThis repo contains a compiler written in Clojure.\n\nIt compiles Rudra source to Chez Scheme, and then to a native binary via [chez-exe](https://github.com/gwatt/chez-exe).\n\n## Installation\n\n### Install Leiningen\n\n[Leiningen](https://leiningen.org)\n\n### Clone this repo\n\n```\n$ git clone git@github.com:divs1210/rudralang.git\n```\n\n### Install Chez Scheme\n\n#### Mac\n\n```\n$ brew install chezscheme\n```\n\n#### Others\n\nThere are compiled binaries available for all major platforms, otherwise build it yourself from [source](https://github.com/cisco/ChezScheme).\n\n### Install chez-exe\n\nIt's really easy to build from [source](https://github.com/gwatt/chez-exe).\n\n## Usage\n\n### Go to the `rudralang` repo\n\n```\n$ cd path/to/rudralang\n```\n\n### Configure\n\nUpdate `config.edn` to point to the correct `chez-exe` path.\n\n### Compile a sample program\n\n```\n$ lein -compile samples/fact.rudra\n```\n\n### Run it\n\n```\n$ target/fact 5\n```\n\n### REPL\n\nIn the rudralang directory, run:\n\n```\n$ ./repl\n```\n\n## License\n\nCopyright © 2021 Divyansh Prakash\n\nThis program and the accompanying materials are made available under the\nterms of the Eclipse Public License 2.0 which is available at\nhttp://www.eclipse.org/legal/epl-2.0.\n\nThis Source Code may also be made available under the following Secondary\nLicenses when the conditions for such availability set forth in the Eclipse\nPublic License, v. 2.0 are satisfied: GNU General Public License as published by\nthe Free Software Foundation, either version 2 of the License, or (at your\noption) any later version, with the GNU Classpath Exception which is available\nat https://www.gnu.org/software/classpath/license.html.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivs1210%2Frudralang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivs1210%2Frudralang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivs1210%2Frudralang/lists"}