{"id":20289352,"url":"https://github.com/apt1002/mijit","last_synced_at":"2025-04-11T10:42:33.865Z","repository":{"id":44330593,"uuid":"263996861","full_name":"apt1002/mijit","owner":"apt1002","description":"Experimental JIT compiler generator","archived":false,"fork":false,"pushed_at":"2024-04-17T23:41:48.000Z","size":993,"stargazers_count":27,"open_issues_count":10,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T18:55:58.527Z","etag":null,"topics":["compiler","interpreter","jit-compiler","programming-language","rust"],"latest_commit_sha":null,"homepage":"https://github.com/apt1002/mijit/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apt1002.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-05-14T18:41:11.000Z","updated_at":"2025-03-18T16:30:08.000Z","dependencies_parsed_at":"2024-04-18T00:36:58.819Z","dependency_job_id":"6c37b3c0-52cd-4131-8bbe-c359c136f2a9","html_url":"https://github.com/apt1002/mijit","commit_stats":{"total_commits":616,"total_committers":6,"mean_commits":"102.66666666666667","dds":"0.15422077922077926","last_synced_commit":"5af29d1c96d342d0619fc3941fb3bef0e91c0e59"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apt1002%2Fmijit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apt1002%2Fmijit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apt1002%2Fmijit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apt1002%2Fmijit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apt1002","download_url":"https://codeload.github.com/apt1002/mijit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248378065,"owners_count":21093928,"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":["compiler","interpreter","jit-compiler","programming-language","rust"],"created_at":"2024-11-14T14:53:11.179Z","updated_at":"2025-04-11T10:42:33.812Z","avatar_url":"https://github.com/apt1002.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Mijit\n\nAn experimental JIT compiler generator.\n\nMijit consists of the following components:\n\n- A domain-specific language (\"Mijit code\") that is particularly amenable to\n  optimising, and barely expressive enough for writing interpreters.\n- A back-end that lowers Mijit code to machine code (in RAM) and executes it.\n- A profile-guided optimizer that reads and writes Mijit code.\n\n# Use\n\nSuppose you are writing a high-level programming language. It compiles to some\nkind of virtual code, which runs on an interpreter, written in C, say. You want\nit to go faster.\n\nYou write a Rust program that uses crate `mijit`. You construct a `Jit`,\nporting the performance-critical parts of your interpreter to Mijit code.\nMijit provides you with an equivalent JIT compiler. You wrap it in an ergonomic\nRust API that is specific to your language. You write C bindings for your Rust\nAPI. You drop it in as a replacement for your interpreter, reusing the existing\nnon-performance-critical parts.\n\n# Examples\n\nThe best example of using Mijit is [Bee]. Pass the \"--with-mijit\" flag to its\n\"./configure\" to enable the Mijit backend. A cut-down version of the related\n[Beetle] is included in Mijit as a unit test.\n\n[Bee]: https://github.com/rrthomas/bee\n[Beetle]: https://github.com/rrthomas/beetle\n\n# Status\n\nWorking, but unfinished. The specification of Mijit code is in flux. There are\ntwo back-ends, for x86_64 and AArch64. Other 64-bit targets are planned. Mijit\ncan run some programs, but the generated code is poor, and it only runs at\nabout 40% of the speed of compiled C. A rough outline of the optimizer has been\nwritten and is enabled, but so far it doesn't know many optimizations. The\nprofiler is not written yet.\n\n# Versions\n\nVersions 0.1.x are obsolete. Versions 0.2.0 to 0.2.4 improve the API and the\ninternals in backwards-incompatible ways, adding missing features and removing\nunnecessary ones. Version 0.3.0 will be a major redesign ([#48]). As long as\nthe version number begins with a \"0\" I reserve the right to change the design\narbitrarily.\n\n[#48]: https://github.com/apt1002/mijit/issues/48\n\n# Building\n\n```\n    $ cargo build --release\n```\n\n# Running\n\nMijit is primarily a library. However, it does provide some executable tests.\n\n```\n    $ cargo test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapt1002%2Fmijit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapt1002%2Fmijit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapt1002%2Fmijit/lists"}