{"id":22264298,"url":"https://github.com/bonzai-lang/bonzai","last_synced_at":"2025-12-11T22:00:42.106Z","repository":{"id":257882890,"uuid":"843050404","full_name":"bonzai-lang/bonzai","owner":"bonzai-lang","description":"Bonzai is a general purpose programming language. It compiles down to a custom bytecode.","archived":false,"fork":false,"pushed_at":"2025-07-08T05:29:22.000Z","size":1665,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T13:33:23.654Z","etag":null,"topics":["bytecode","concurrent-programming","general-purpose","haskell","programming-language","virtual-machine"],"latest_commit_sha":null,"homepage":"https://bonzai.thomas-vergne.fr","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bonzai-lang.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":"2024-08-15T17:13:28.000Z","updated_at":"2025-07-22T18:54:37.000Z","dependencies_parsed_at":"2024-10-16T21:58:25.846Z","dependency_job_id":"6b3d4db8-76fd-40fb-bb84-4f941e0c24fc","html_url":"https://github.com/bonzai-lang/bonzai","commit_stats":{"total_commits":222,"total_committers":2,"mean_commits":111.0,"dds":"0.0045045045045044585","last_synced_commit":"cf53487b4a1cc3bcc7bb6106bbcf7e22cecfe011"},"previous_names":["thomasvergne/bonzai","bonzai-lang/bonzai"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bonzai-lang/bonzai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonzai-lang%2Fbonzai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonzai-lang%2Fbonzai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonzai-lang%2Fbonzai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonzai-lang%2Fbonzai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bonzai-lang","download_url":"https://codeload.github.com/bonzai-lang/bonzai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonzai-lang%2Fbonzai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27670943,"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-11T02:00:11.302Z","response_time":56,"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":["bytecode","concurrent-programming","general-purpose","haskell","programming-language","virtual-machine"],"created_at":"2024-12-03T10:08:26.995Z","updated_at":"2025-12-11T22:00:41.491Z","avatar_url":"https://github.com/bonzai-lang.png","language":"Haskell","readme":"[![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/bonzai-lang/bonzai?style=for-the-badge)](https://github.com/bonzai-lang/bonzai/issues)\n![GitHub License](https://img.shields.io/github/license/bonzai-lang/bonzai?style=for-the-badge)\n![Bonzai](assets/banner.png)\n\n## Introduction\n\nBonzai is a generic purpose programming language that relies on a strong and non-taulerant typechecker to guarantee types and computations in your code. It compiles down to a custom bytecode with relatively good performance.\n\n## Table of Contents\n\n1. [Features](#features)\n2. [Example Code](#example-code)\n3. [Building Bonzai](#building-bonzai)\n4. [Contributing](/CONTRIBUTING.md)\n5. [Reporting Issues](#reporting-issues)\n\n---\n\n## Features\n\n- **Strong typechecker**: Throw errors for incompatible types, to ensure security when running your code.\n- **Datatypes as expressions**: All datatypes are expressions, allowing for more flexibility in your code.\n- **Row polymorphism**: Allows for dictionary-like structures with flexible keys.\n- **Bytecode compilation**: Suitable for Unix-like systems, enabling almost multi-platform code running.\n\n## Example Code\n\nA parallel HTTP server dispatcher example :\n\n```rs\nrequire \"std:http\"\nrequire \"std:foundation\"\nrequire \"std:datatypes/json\"\n\nlet thread = spawn HTTP::create(\n  fn(req) =\u003e {\n    let headers = req-\u003eget()\n\n    match Header::from(headers) {\n      case Some(Header(top, _, content)) =\u003e {\n        let json = JSON::parse(content)\n        let [method, path .. _] = String::split(top, \" \")\n\n        print(\"[$method] Received request on $path\")\n\n        req-\u003esend(JSON::stringify(json))\n\n        true\n      }\n\n      case None =\u003e {\n        print(\"Invalid JSON\")\n        req-\u003esend(JSON::stringify(\n          JSON-\u003eObject([\n            (\"error\", JSON-\u003eString(\"Invalid JSON\")),\n            (\"status\", JSON-\u003eString(\"400 Bad Request\"))\n          ])\n        ))\n\n        false\n      }\n    }\n  },\n  8000\n)\n\nprint(\"Server started on port 8000\")\n\nthread.wait()\n```\n\n## Building Bonzai\n\n### Prerequisites\n- **Haskell compiler**: GHC 2021 is required to compile the code\n- **XMake**: to compile the VM\n- **Python**: to run the build script\n\n1. **Clone the Repository**: \n  ```sh\n  git clone https://github.com/bonzai-lang/bonzai.git\n  cd bonzai\n  ```\n2. **Build the project**:\n  ```sh\n  python3 scripts/build.py\n  ```\n3. **Set the environment variable**:\n  ```sh\n  export BONZAI_PATH=\"/path/to/bonzai\"\n  export PATH=\"/path/to/bonzai/bin:$PATH\"\n  ```\n\n### Reporting Issues\n\nIf you find any issues or have suggestions, please use the [Issues page](https://github.com/bonzai-lang/bonzai/issues). We appreciate your feedback and contributions!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonzai-lang%2Fbonzai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonzai-lang%2Fbonzai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonzai-lang%2Fbonzai/lists"}