Obtaining deferred namespace imports
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- javascript, wasm
Direzione di ricerca
Start by reading the linked TC39 deferred evaluation proposal and WebAssembly ESM integration issue 101, then compare the proposed namespace and deferred-namespace import conventions with the ESM integration semantics described here. Done means reaching an agreed convention and implementing support for obtaining the corresponding JavaScript module namespace objects.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The deferred evaluation proposal (https://github.com/tc39/proposal-defer-import-eval) is at Stage 3 in TC39 and starting to be implemented now.
We naturally support this in the ESM integration for deferring WebAssembly evaluation as already tracked in https://github.com/WebAssembly/esm-integration/issues/101, but what we do not support is obtaining access to deferred JS namespaces.
This means that WebAssembly cannot import other modules in a way that indicates their execution should be deferred, like JS will be able to do.
The reason for this is that WebAssembly has no way to get the JS module namespace object itself currently as it only imports named exports directly.
For the ESM integration only, the strawman proposal here is to support an import convention form that can be used to obtain the JS module namespace object:
(import "./mod.js" "wasm-js:namespace" (global $ns externref))
(import "./mod.js" "wasm-js:deferred-namespace" (global $ns externref))
In ECMA-262 this directly corresponds to the fact that ~namespace~ and ~deferred-namespace~ are already specified as being supported through the ResolveExport path on the module record, so that we are using the export name position for the convention is not purely a hack, but also matches the underlying specification semantics (see https://tc39.es/proposal-defer-import-eval/#abstract-resolveexport).
- Lingua principale
- WebAssembly
- Stelle
- 458
- Fork
- 40
- Merge medio
- 10g 37m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di WebAssembly/esm-integration
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
WebAssembly/esm-integration#122 ·
-
Supporting WebAssembly.JSTag importForse già presa @guybedford l’ha presa 190 giorni fa. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
WebAssembly/esm-integration#120 ·
-
String Constants BikeshedAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
WebAssembly/esm-integration#118 · 10 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
WebAssembly/esm-integration#112 · 9 commenti ·
-
Bundler test suiteAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
WebAssembly/esm-integration#109 · 1 commento ·
Tutte le issue di WebAssembly/esm-integration
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
PixelPlayerHQ/PixelPlayerOSS#254 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
389ds/389-ds-base#8152 ·
I maintainer di solito rispondono entro 2 giorni
-
Bug feat:Syntax
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
ignatov/intellij-erlang#1342 ·
I maintainer di solito rispondono entro 1 giorno
-
intcomma returns exponential notation for large floatsForse già presa @Omarinho12345 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
python-humanize/humanize#521 ·
I maintainer di solito rispondono entro 1 giorno
-
🧑💻 tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
guibranco/gstraccini-bot-service#1206 ·
I maintainer di solito rispondono entro 1 giorno