gc
gc copied to clipboard
Branch of the spec repo scoped to discussion of GC integration in WebAssembly
#114 discusses an extension for variants along with a number of pointer-tagging optimizations it would be intended to support. Unfortunately these optimizations are not particularly compatible with the current design....
A consequence of the issues raised in #116 is that, unless we somehow manage to solve a longstanding open research problem, we will never be able to eliminate "superfluous" casts...
I'm researching using WebAssembly to implement sandboxed plugins to run inside a web app. This means running untrusted or less-trusted Wasm code inside an HTML/JavaScript environment, which itself is running...
Alternatives to i31ref wrt compiling parametric polymorphism on uniformly-represented values (OCaml)
As `i31ref` doesn't seem to be an unanimously-agreed-on (see https://github.com/WebAssembly/gc/issues/53) part of the GC MVP spec, I am very interested in discussing what the concrete alternatives to it are in...
Terminology note: Parametric polymorphism is the use of instantiable type parameters, whereas subtype polymorphism is the use of subtyping. In #114, the following extensions are described as part of a...
# Thought experiment: JS subset using GC MVP "One complete but limping implementation of an important language is worth 20 long threads on subtyping" -- @titzer, https://github.com/WebAssembly/gc/issues/111#issuecomment-670999383 Well you nerd-sniped...
This is a new proposal for how Wasm GC objects could be accessed from JS. Slides: https://docs.google.com/presentation/d/1BqRlDrQIYdkRHHtoZ7F8a2tpFwYoumCCbqQ4SpULajI/ Document: https://docs.google.com/document/d/1_f-w9r81VCwfCKcFt7ZiWqxYc35ERgbTcgzusip-8oQ/
Would browser VM be able to support weak maps for GC references without additional overhead? Some languages provide an identity hash code for every object, usually a i32 random number...
Thanks to a number of discussions, I now have enough understanding of the expected conventions for this proposal to suggest a modest revision that should address a number of open...
The current text of [MVP-JS.md](https://github.com/WebAssembly/gc/blob/master/proposals/gc/MVP-JS.md) goes to some lengths to describe a mechanism to preserve JavaScript's nominal typing through roundtrips through Wasm code. Maybe I'm missing something there... but right...