memory-control VS browser_wasi_shim

Compare memory-control vs browser_wasi_shim and see what are their differences.

memory-control

A proposal to introduce finer grained control of WebAssembly memory. (by WebAssembly)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
memory-control browser_wasi_shim
5 5
19 271
- -
0.0 8.6
over 1 year ago 21 days ago
WebAssembly TypeScript
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

memory-control

Posts with mentions or reviews of memory-control. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-04.
  • Extism Makes WebAssembly Easy
    13 projects | news.ycombinator.com | 4 Oct 2023
    Indeed, webassembly is moving extremely slowly. I started a project years ago expecting https://github.com/WebAssembly/memory-control/blob/main/prop... and https://github.com/WebAssembly/memory64 to be fixed at some point. Neither are yet, and the project still suffers from it to this day.

    I think wasm is still great without these fixes, but I have lost confidence in the idea that wasm will reach its full potential any time soon.

  • The Tug-of-War over Server-Side WebAssembly
    12 projects | news.ycombinator.com | 24 Mar 2023
    Additionally, googlers are championing memory control https://github.com/WebAssembly/memory-control/blob/main/prop..., which provides memory protection.
  • How do Rust WebAssembly apps free unused memory?
    5 projects | /r/rust | 26 Feb 2023
    But researching it a bit I found this issue, so it clearly seems to be a problem for a bunch of people out there. And apparently both V8 and Spidermonkey have already addressed this quite recently, see this issue.
  • WebAssembly and C++
    6 projects | news.ycombinator.com | 27 Jun 2022
    FWIW there is a proposal in the works to add page-based protection, which will allow unmapping the 0 page, restoring the trap-on-null-deref behavior that is important for many languages with safety checks.

    https://github.com/WebAssembly/memory-control

browser_wasi_shim

Posts with mentions or reviews of browser_wasi_shim. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-18.
  • Rust + WASM + Typescript [+ React]
    7 projects | /r/rust | 18 Jul 2023
    There are many options, but what worked best for me is compiling with cargo-wasi and loading the resulting Wasm file with browser_wasi_shim. Using wasm32-wasi instead of wasm32-unknown-unknown requires a bit more work (the communication with JS has to be set up manually), but gives the flexibility of having just a Wasm file that can be dropped in and loaded dynamically. (There's wit-bindgen for generating wrapping code according to an interface definition but I didn't have much success with it.)
  • Is it possible to read a file through webassembly?
    2 projects | /r/rust | 25 May 2023
  • Extending web applications with WebAssembly and Python
    5 projects | news.ycombinator.com | 10 May 2023
    The webassembly-language-runtimes is focused on providing WASI-based language interpreters, what would require a WASI polyfill at the browser level (https://wasi.dev/polyfill/) and (https://github.com/bjorn3/browser_wasi_shim).

    Pyodide is certainly another option, but is emscripten based, not based in webassembly-language-runtimes or WASI.

  • The Tug-of-War over Server-Side WebAssembly
    12 projects | news.ycombinator.com | 24 Mar 2023
    Indeed, some people are doing this:

    - WASI once had an official polyfill https://wasi.dev/polyfill/, now apparently succeeded by https://github.com/bjorn3/browser_wasi_shim

    - wasmer-js provides a JS polyfill for WASI https://docs.wasmer.io/integrations/js/wasi

    - Cloudflare has a WIP polyfill https://github.com/cloudflare/workers-wasi

    I'm generally leery of non-temporary polyfills, so I'm not sure that any of these feel like a long-term viable option for me.

  • Browser to Haskell Wasm Reactor Module Communication Example
    4 projects | /r/haskell | 28 Feb 2023
    Browser client library uses browser_wasi_shim to communicate with the module.

What are some alternatives?

When comparing memory-control and browser_wasi_shim you can also consider the following projects:

multi-memory - Multiple per-module memories for Wasm

wasi-threads

asm-dom - A minimal WebAssembly virtual DOM to build C++ SPA (Single page applications)

cargo-wasi - A lightweight Cargo subcommand to build Rust code for the `wasm32-wasi` target

sycamore - A library for creating reactive web apps in Rust and WebAssembly

webassembly-language-runtimes - Wasm Language Runtimes provides popular language runtimes (Ruby, Python, …) precompiled to WebAssembly that are tested for compatibility and kept up to date when new versions of upstream languages are released

wajic - WebAssembly JavaScript Interface Creator

wasmer-js - Monorepo for Javascript WebAssembly packages by Wasmer

interface-types

noah - Bash on Ubuntu on macOS

gc - Branch of the spec repo scoped to discussion of GC integration in WebAssembly

hangover - Hangover runs simple Win32 applications on arm64 Linux