{"id":14991121,"url":"https://github.com/thrushlang/thrushc","last_synced_at":"2025-04-12T03:25:45.176Z","repository":{"id":255866092,"uuid":"849620725","full_name":"thrushlang/thrushc","owner":"thrushlang","description":"The Thrush Programming Language. A programming language dedicated to creating maintainable and modular software.","archived":false,"fork":false,"pushed_at":"2025-04-10T19:26:25.000Z","size":3258,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-10T20:39:57.312Z","etag":null,"topics":["aot-compiler","c","clang","code-generation","compiler","hechoencostarica","jit-compilation","language","llvm","opensource","programming-language","rust","thrush","thrushlang"],"latest_commit_sha":null,"homepage":"https://github.com/thrushlang","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thrushlang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-29T23:43:21.000Z","updated_at":"2025-04-10T19:26:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"da47a241-24e8-417e-98d3-d20044661366","html_url":"https://github.com/thrushlang/thrushc","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":0.2222222222222222,"last_synced_commit":"6a3dc8f993ada11fb5e052331372c7d5d22a24e3"},"previous_names":["thrush-lang/thrush","thrush-lang/thrushc","thrushlang/thrushc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrushlang%2Fthrushc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrushlang%2Fthrushc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrushlang%2Fthrushc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrushlang%2Fthrushc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thrushlang","download_url":"https://codeload.github.com/thrushlang/thrushc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248511284,"owners_count":21116383,"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":["aot-compiler","c","clang","code-generation","compiler","hechoencostarica","jit-compilation","language","llvm","opensource","programming-language","rust","thrush","thrushlang"],"created_at":"2024-09-24T14:21:30.859Z","updated_at":"2025-04-12T03:25:45.170Z","avatar_url":"https://github.com/thrushlang.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src= \"https://github.com/thrushlang/thrushc/blob/master/assets/thrushlang-v1.1.png\" alt= \"logo\" style= \"width: 2hv; height: 2hv;\"\u003e \u003c/img\u003e\n\u003c/p\u003e\n\n\u003e [!WARNING]  \n\u003e **The compiler is still under development and is unfinished, please be peaceful if exists some bug.**\n\n# The Thrush Compiler \n\nThe Thrush Compiler is tasked with converting Thrush source code (`.th`) into native code for each architecture, using either Just In Time (**JIT**) or Ahead Of Time (**AOT**) compilation modes, leveraging the LLVM infrastructure (**LLVM-C API**) during the process.\n\n# ¿How it works?\n\nCurrently, the only backend available for the thrush compiler to compile is the current LLVM, using the LLVM-C API. The process consists of three parts:\n\n1. Compilation by thrushc to LLVM bitcode (*.bc).\n2. Optimization by the LLVM optimization tool (opt \u0026 llvm-lto).\n3. Final compilation by clang to the target.\n\nIn summary:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src= \"https://github.com/thrushlang/thrushc/blob/master/assets/how%20it%20works%20(with%20llvm%20backend).png\" style= \"width: 1hv; height: 1hv;\"\u003e \u003c/img\u003e\n\u003c/p\u003e\n\n## Build dependencies\n\n**Important Rust crates:**\n\n- **llvm-sys** (v170)\n- **inkwell** (v0.50)\n  \n## Requirements for creating optimal binaries\n\n### Linux Toolchain\n\n- [Linux Toolchain (x64)](https://github.com/thrushlang/toolchains/releases/download/Toolchains/thrushlang-toolchain-llvm-linux-x64-v1.0.2.tar.xz)\n\n\u003e [!NOTE]  \n\u003e The language will contain a **pre-optimized** toolchain repository for each operating system. This process automates the installation of the language and its entire ecosystem through the **Thorium** package manager.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthrushlang%2Fthrushc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthrushlang%2Fthrushc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthrushlang%2Fthrushc/lists"}