{"id":13760343,"url":"https://github.com/fvm-project/fvm","last_synced_at":"2025-12-12T01:16:39.092Z","repository":{"id":62432760,"uuid":"266586306","full_name":"fvm-project/fvm","owner":"fvm-project","description":"A Clojure library for writing self-optimizing interpreters","archived":false,"fork":false,"pushed_at":"2020-06-02T10:48:13.000Z","size":88,"stargazers_count":29,"open_issues_count":4,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-03T13:04:39.795Z","etag":null,"topics":["clojure","interpreter","jit","tracing","vm"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/fvm-project.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}},"created_at":"2020-05-24T17:01:16.000Z","updated_at":"2024-05-07T16:40:54.000Z","dependencies_parsed_at":"2022-11-01T21:15:32.560Z","dependency_job_id":null,"html_url":"https://github.com/fvm-project/fvm","commit_stats":null,"previous_names":["divs1210/fvm"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvm-project%2Ffvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvm-project%2Ffvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvm-project%2Ffvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvm-project%2Ffvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fvm-project","download_url":"https://codeload.github.com/fvm-project/fvm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224949775,"owners_count":17397234,"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":["clojure","interpreter","jit","tracing","vm"],"created_at":"2024-08-03T13:01:08.269Z","updated_at":"2025-10-22T02:31:59.704Z","avatar_url":"https://github.com/fvm-project.png","language":"Clojure","funding_links":[],"categories":["Clojure"],"sub_categories":[],"readme":"# fvm [![Clojars Project](https://img.shields.io/clojars/v/fvm-project/fvm.svg)](https://clojars.org/fvm-project/fvm)\n\n**fvm** is a Clojure library for writing self-optimizing interpreters.\n\n## How it works\n\nfvm provides a function called `defnode` for defining instruction nodes with the following signature:\n\n```clojure\n(fvm/defnode \u003cnode-type\u003e \u003copts\u003e \u003chandler-fn\u003e)\n```\n\n- any node with the option `{::fvm/jit? true}` is considered a loop\n- if such a node is executed frequently enough, its next execution is put in \"trace-mode\"\n- in trace-mode, all the sub-nodes executed are logged in a \"trace\"\n- the trace is effectively an unrolled version of the loop with function calls inlined \n- once the node finishes executing, this trace is \"compiled\" into a Clojure function\n- the compiled version is used on future executions of this node\n\n## Examples\n\n[ednlang](https://github.com/fvm-project/ednlang) is a simple stack-based concatenative language implemented using fvm.\n\nednlang is meant to showcase all the features of fvm, and is also used to test and profile fvm.\n\nWork is ongoing to implement a lisp on top of fvm.\n\n## Status\n\nThis is **EXPERIMENTAL** software. Here be dragons.\n\n## License\n\nCopyright © 2020 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%2Ffvm-project%2Ffvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffvm-project%2Ffvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvm-project%2Ffvm/lists"}