{"id":21644433,"url":"https://github.com/samsung/walrus","last_synced_at":"2025-04-13T08:33:40.312Z","repository":{"id":64762245,"uuid":"546343534","full_name":"Samsung/walrus","owner":"Samsung","description":"WebAssembly Lightweight RUntime","archived":false,"fork":false,"pushed_at":"2025-04-08T00:58:56.000Z","size":2952,"stargazers_count":63,"open_issues_count":6,"forks_count":12,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-08T01:32:33.993Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"WebAssembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Samsung.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-05T23:53:29.000Z","updated_at":"2025-04-08T00:59:00.000Z","dependencies_parsed_at":"2024-03-13T05:25:23.097Z","dependency_job_id":"1198c671-837d-47bb-9d74-1e66eea8c805","html_url":"https://github.com/Samsung/walrus","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/Samsung%2Fwalrus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samsung%2Fwalrus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samsung%2Fwalrus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samsung%2Fwalrus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samsung","download_url":"https://codeload.github.com/Samsung/walrus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248684483,"owners_count":21145088,"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":[],"created_at":"2024-11-25T05:40:06.750Z","updated_at":"2025-04-13T08:33:40.268Z","avatar_url":"https://github.com/Samsung.png","language":"WebAssembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WALRUS: WebAssembly Lightweight RUntime\n\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Actions Status](https://github.com/Samsung/walrus/actions/workflows/actions.yml/badge.svg)](https://github.com/Samsung/walrus/actions)\n[![Coverity Scan Build Status](https://scan.coverity.com/projects/26942/badge.svg)](https://scan.coverity.com/projects/samsung-walrus)\n\nThis project aims to provide a lightweight WebAssembly runtime engine. It now fully supports WebAssembly specs with an simple interpreter, but we plan to optimize interpreting as well as adopting JIT compiler for better performance.\n\n## Cloning\n\nClone as normal, but don't forget to get the submodules as well:\n\n```console\n$ git clone --recursive https://github.com/Samsung/walrus\n$ cd walrus\n$ git submodule update --init\n```\n\nThis will fetch the testsuite and gtest repos, which are needed for some tests.\n\n## Building using CMake\n\nYou'll need [CMake](https://cmake.org). You can then run CMake, the normal way:\n\n```console\n$ cmake -H. -Bout/release/x64 -DWALRUS_ARCH=x64 -DWALRUS_HOST=linux -DWALRUS_MODE=release -DWALRUS_OUTPUT=shell -GNinja\n$ ninja -Cout/release/x64\n$ ./out/release/x64/walrus test.wasm // run walrus executable\n```\n\nThis will produce build files using CMake's default build generator. Read the\nCMake documentation for more information.\n\n## Perf\n\nYou'll need [Perf](https://perf.wiki.kernel.org/index.php/Main_Page).\n\n0. To compile with perf support, use `-DWALRUS_JITPERF=1`\n\n1. Set the path where temporary files are created with `WALRUS_PERF_DIR` environment variable.\n   Run Walrus with: `sudo perf record -k 1 walrus --jit WALRUS_PARAMETERS`\n   The `-k 1` option sets the monotonic clock, `-k mono` is also correct.\n\n    Three files are generated:\n   - perf.data - it is generated by perf\n   - jit-XXXXXX.dump - The dump of jit generated functions, XXXXXX is the PID of process\n   - jit-XXXXXX-codedump.txt - Walrus ByteCode dump, XXXXXX is the PID of process\n\n2. You should chown perf.data, because you don't need `sudo` after that.\n\n3. Inject JITDump file into `perf.data` with `perf inject --jit -i perf.data -o perf.data.jitted`\n\n    It'll generate many shared object files, and `perf.data.jitted`\n\n4. View the report with `perf report -i perf.data.jitted`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsung%2Fwalrus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamsung%2Fwalrus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsung%2Fwalrus/lists"}