{"id":13693058,"url":"https://github.com/kanaka/warpy","last_synced_at":"2025-03-22T12:31:52.036Z","repository":{"id":66957414,"uuid":"85338887","full_name":"kanaka/warpy","owner":"kanaka","description":"WebAssembly interpreter in RPython","archived":false,"fork":false,"pushed_at":"2019-04-16T02:43:06.000Z","size":205,"stargazers_count":66,"open_issues_count":3,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-01T15:43:33.546Z","etag":null,"topics":["interpreter","jit","python","rpython","wasm","wast","webassembly"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kanaka.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}},"created_at":"2017-03-17T17:37:35.000Z","updated_at":"2024-11-10T08:30:54.000Z","dependencies_parsed_at":"2023-05-15T18:00:07.377Z","dependency_job_id":null,"html_url":"https://github.com/kanaka/warpy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanaka%2Fwarpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanaka%2Fwarpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanaka%2Fwarpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanaka%2Fwarpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanaka","download_url":"https://codeload.github.com/kanaka/warpy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244207736,"owners_count":20416107,"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":["interpreter","jit","python","rpython","wasm","wast","webassembly"],"created_at":"2024-08-02T17:01:05.024Z","updated_at":"2025-03-22T12:31:51.628Z","avatar_url":"https://github.com/kanaka.png","language":"Python","funding_links":[],"categories":["Non-Web Embeddings","Runtimes"],"sub_categories":["**Python**"],"readme":"# warpy - WebAssembly in RPython\n\nA WebAssembly interpreter written in RPython.\n\nWarpy supports the WebAssembly MVP (minimum viable product) version of\nthe spec.\n\n\n## Prerequisites\n\nBuild whe warpy executable. You will need a build of rpython on the\npath:\n\n```\nmake warpy-jit   # or make warpy-nojit\n```\n\nAlternatively, you can use an rypthon docker container (built\nfrom Dockerfile-rpython) and do the compilation from there:\n\n```\ndocker pull kanaka/warpy-rpython\ndocker run -it kanaka/warpy-rpython -v `pwd`:/build -w /build make warpy-jit\n```\n\nYou will need `wast2wasm` to compile wast source to wasm bytecode.\nCheck-out and build [wabt](https://github.com/WebAssembly/wabt)\n(wabbit):\n\n```\ngit clone --recursive https://github.com/WebAssembly/wabt\nmake -C wabt gcc-release\n```\n\n## Usage\n\nCompile a wasm module:\n\n```\nwast2wasm test/addTwo.wast -o test/addTwo.wasm\n```\n\nLoad and call a function in a wasm module:\n\n```\n./warpy-jit test/addTwo.wasm addTwo 11 12\n```\n\nYou can also use standard python (but it's much slower of course):\n\n```\npython warpy.py test/addTwo.wasm addTwo 13 14\n```\n\nThere is also a REPL mode that allow you to interactively invoke\nfunctions within a module:\n\n```\n./warpy-jit --repl test/addTwo.wasm\nwebassembly\u003e addTwo 2 3\n```\n\n## Misc\n\nSome rough notes for running the WebAssembly specification tests can\nbe found in `notes\\_testing`.\n\n## License\n\nMPL-2.0 (see LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanaka%2Fwarpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanaka%2Fwarpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanaka%2Fwarpy/lists"}