5 ms·
> As soon as GC is supported, you'll be able to access the DOM and the JavaScript context in WebAssembly. Do you have any anticipated timeline for this? For Re
by spicyj 11y ago
> As soon as GC is supported, you'll be able to access the DOM and the JavaScript context in WebAssembly.
Do you have any anticipated timeline for this? For React, at least, we're eagerly looking forward to the opportunity to write at a lower level while maintaining the same JS-facing API.
- s3th 11y agoWe'll start tackling GC as soon as we finish the MVP [0]. No timeline yet, but we consider it essential to the high level goal of integrating well into the existing platform. [0]: https://github.com/WebAssembly/design/blob/master/GC.md https://github.com/WebAssembly/design/blob/master/GC.md
- Nrpf 11y agoAny chance python could be a first class citizen here, or are we looking at more compile-able languages?
- s3th 11y agoCheck out the last paragraph of "Is WebAssembly only for C/C++ Programmers?" in the FAQ [0]. The tl;dr is that you'll be able to port a Python interpreter (that is itself written in C) to WebAssembly from day 1, but a more robust solution that relies on WebAssembly GC will have to wait until after the MVP. [0]: https://github.com/WebAssembly/design/blob/master/FAQ.md#is-webassembly-only-for-cc-programmers https://github.com/WebAssembly/design/blob/master/FAQ.md#is-...
- cpeterso 11y agoWhat are some use cases for WebAssembly in React? What source language might React use to generate the WebAssembly code?
- spicyj 11y agoNot sure yet. :) Some languages that are interesting include Swift, Rust, and OCaml, but we'll see where things go and how they work with WebAssembly.