Tracking issue for deferred evaluation integration

Aperta
#101 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript, wasm
Ambito
compilers, web-dev

Direzione di ricerca

Start by reading the deferred evaluation specification and WebAssembly/esm-integration issue 119, then compare them with the ESM integration described here. The work is done when the import-phase and JavaScript module namespace design questions are resolved and the integration conforms to the late execution semantics.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

When we rebase to the spec for deferred evaluation, the ESM integration should be updated to conform to the late execution semantics.

There are two aspects to the integration here:

  1. WebAssembly itself can be imported as a deferred namespace (import defer * as ns from './mod.wasm'). This was already designed for previously when we switched to synchronous instantiation, so gets supported naturally.
  2. When WebAssembly imports from JavaScript or other WebAssembly that supports deferred evaluation, whether WebAssembly itself would want to be able to defer evaluation.

While (1) we get "for free", (2) would require some design work.

In particular, WebAssembly would need a way to (a) define an import phase, and (b) obtain a JS module namespace object import. A proposal for this is outlined in https://github.com/WebAssembly/esm-integration/issues/119.

Lingua principale
WebAssembly
Stelle
458
Fork
40
Merge medio
10g 37m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di WebAssembly/esm-integration

Tutte le issue di WebAssembly/esm-integration

Issue simili

Altre issue su Compilers

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.