{"id":19365625,"url":"https://github.com/nikvolf/wasmtime-fork","last_synced_at":"2026-06-08T21:33:14.087Z","repository":{"id":151165886,"uuid":"247912543","full_name":"NikVolf/wasmtime-fork","owner":"NikVolf","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-15T09:58:23.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T13:22:27.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/NikVolf.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}},"created_at":"2020-03-17T08:06:29.000Z","updated_at":"2020-07-15T09:58:26.000Z","dependencies_parsed_at":"2023-05-04T16:30:46.103Z","dependency_job_id":null,"html_url":"https://github.com/NikVolf/wasmtime-fork","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NikVolf/wasmtime-fork","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fwasmtime-fork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fwasmtime-fork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fwasmtime-fork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fwasmtime-fork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikVolf","download_url":"https://codeload.github.com/NikVolf/wasmtime-fork/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fwasmtime-fork/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34082130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":[],"created_at":"2024-11-10T07:41:36.896Z","updated_at":"2026-06-08T21:33:14.046Z","avatar_url":"https://github.com/NikVolf.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wasmtime-fork\n\nProof-of-concept wasmtime host that can fork execution of WASM v1.\n\nThis is based on Parity fork of wasmtime.\n\n## How it works.\n\n1. Host provides an import\n```\nfork(i32, i64) -\u003e i32\n```\n    Those are 3 arguments encoded (2 of them compactified to last argument):\n    - entry point of the new spawned process (function item).\n    - payload pointer passed to the entry point.\n    - payload length passed to the entry point.\n\n2. Embedded program calls to the `fork(\u0026some_func, \u0026payload)`.\n\n3. Host spawns new thread and creates new instance in that thread based on the same compiled module.\n\n4. Host allocates memory inside child instance and writes payload to it (embedded progam should expose `allocate` function)\n\n5. Host starts `invoke` function inside child instance and passes entry_point that parent process originally used.\n\n6. Parent and child now run in parallel!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikvolf%2Fwasmtime-fork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikvolf%2Fwasmtime-fork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikvolf%2Fwasmtime-fork/lists"}