Replies: 1 comment 2 replies
-
As it stands, Wasm GC doesn't do much to make it easier to call Web APIs since Wasm GC objects cannot, in general, be used as arguments to Web APIs, or any JS APIs for that matter. With the MVP, Wasm GC objects appear to JS as opaque references, without any direct field access. Perhaps as a followup, post-MVP there will be better integration added. In other words, even with Wasm GC you still still need some kind of shim layer to convert Wasm GC objects into JS objects. Looking forward, even in a world where (somehow) Wasm GC object can be passed as argument to JS APIs its unlikely that Wasm GC objects will have good integration into C/C++. There are some plans afoot, but they are still a fair way off: https://github.com/Igalia/ref-cpp |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was wondering how will WASM GC impact Emscripten (https://github.com/WebAssembly/gc/issues)
Will it be possible for C++ to share the Javaascript heap and call web api directly or will this be reserved for higher level languages (such as Java or Dart)?
Beta Was this translation helpful? Give feedback.
All reactions