8000 GitHub - erights/wasm-linkage: Branch of wasm-gc for exploring wasm-linkage subset
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

erights/wasm-linkage

 
 

Repository files navigation

Wasm-linkage:
A subset of wasm-gc without dynamic allocation or gc

This repository is a clone of github.com/WebAssembly/gc/ which is a clone of github.com/WebAssembly/spec/.

The wasm-linkage we propose here is a stepping stone towards wasm-gc that solves several important problems, but does not yet introduce any need for dynamic allocation of garbage collection. We intend wasm-linkage to be a superset of current wasm and a subset of the full wasm-gc.

See the baseline for a summary of the baseline wasm-linkage proposal. This baseline introduces only the refs-to-typed functions from wasm-gc, solving some important problems.

This baseline solves a special case of a more general problem, motivating extensions of the baseline proposal:

Today, wasm allows you to freely address your memory in your own wasm compartment. But there is no built-in, direct way to address memory of another wasm compartment. These proposals create new kind of opaque "fat pointer" that allow one wasm compartment to directly refer to a value in another wasm compartment. These fat pointers can be freely passed around, but only code in the the wasm compartment that created the fat pointer can see what it points at. Additionally, JavaScript values can be turned into these kinds of opaque pointers, and are always opaque in all wasm compartments.

Talk slides: Wasm as an OCap Machine

The extensions (TODO):

About

Branch of wasm-gc for exploring wasm-linkage subset

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • WebAssembly 86.0%
  • OCaml 8.1%
  • JavaScript 2.9%
  • Python 1.1%
  • Batchfile 0.9%
  • Makefile 0.5%
  • Other 0.5%
0