https://github.com/FastVM/Web49 Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} FastVM / Web49 Public * * Notifications * Fork 2 * Star 82 Web49: WebAssembly Interpeter License MIT license 82 stars 2 forks Star Notifications * Code * Issues 3 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights FastVM/Web49 This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 2 branches 1 tag Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/F] Use Git or checkout with SVN using the web URL. [gh repo clone FastVM] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @ShawSumma ShawSumma Update README.md ... ec05cdd Jan 9, 2023 Update README.md ec05cdd Git stats * 254 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github main raylib res src test .clang-format .gitignore LICENSE README.md bench.py emraylib makefile web49 View code [ ] Web49 Try the first release! v0.0.1 Benchmarks Binary Trees Coremark Fannkuch Redux Fibonacci on ints32_t Mandelbrot with SIMD Mandelbrot without SIMD Nbody Executing A Trap README.md Web49 Web49 is a WebAssembly toolkit and interpreter. Try the first release! v0.0.1 Web49 contains a few tools for working with WebAssembly. * interpreters + miniwasm o fast wasm interpreter # uses technology from minivm o suports multiple wasm formats # wasm binary format: ~100% complete # wasm text format: ~95% complete # wasm spect test: ~75% complete o includes a custom WASI implementation + raywasm o wasm interpreter based on miniwasm o includes raylib bindings generated from json * wasm binary tools rewrite + much simpler than WABT's tools + much smaller than Binaryen's tools + wat2wasm o convert wasm text into wasm binary + wasm2wat o generates nearly identical wat as binaryen or wabt o turn wasm binary into wasm text o supports all of wasm 1.0 and some extensions + wasm2wasm o shrink numbers in wasm files generated by llvm # saves 0-4 bytes per 32 bit number # saves 0-10 bytes per 64 bit number o round trip parse and reemit Benchmarks Benchmarks performed by wasm3 and Web49's miniwasm. Ran on an 2020 Macbook Air (M1 + 8GiB ram) using bench.py. All Benchmarks compiled with: emcc -O2 One can also view results run on github actions One can run the benchmarks for themselves. * python3 + with pip * emcc * wasm3 * make + tested with GNUMake + works with BSDMake too * and a C compiler + gcc/clang/tcc works + msvc would work if someone rewrites two macros o #define NEXT() break o #define LABEL(X) case X: o probably a couple others git clone https://github.com/fastvm/web49 cd web49 make CC=gcc # gcc is fastest in my tests python3 -m pip install matplotlib python3 bench.py Binary Trees [binary-tre] Coremark [coremark] Fannkuch Redux [fannkuch-r] Fibonacci on ints32_t [fib_i32] Mandelbrot with SIMD [mandelbrot] Mandelbrot without SIMD [mandelbrot] Nbody [nbody] Executing A Trap [trap] About Web49: WebAssembly Interpeter Topics interpreter webassembly wasm Resources Readme License MIT license Stars 82 stars Watchers 4 watching Forks 2 forks Releases 1 tags Sponsor this project Sponsor Learn more about GitHub Sponsors Packages 0 No packages published Languages * WebAssembly 59.6% * C 39.3% * C++ 0.6% * Objective-C 0.3% * Python 0.1% * Makefile 0.1% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.