Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support WebAssembly SIMD instructions in ahead-of-time translation

Aperta
#1,679 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@jlucaso1 ci sta già lavorando.

Dal 24/10/2026.

  • #2149 di @jlucaso1 — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript, wasm
Ambito
compilers

Direzione di ricerca

Start with packages/compiler/src/wasm/binary.ts and the TRANSLATABLE feature list; run the reproduction and coverage command from the issue to confirm SIMD is reported as unsupported. Then trace the existing WebAssembly instruction translation path and its tests. Done means the SIMD instruction in the reproduction translates to native code and coverage no longer reports the module as unsupported.

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

Descrizione

Support WebAssembly SIMD in ahead-of-time translation. SIMD is currently outside the documented feature set and blocks the Rust WASM artifact shipped by @oxidezap/[email protected].

Reproduction

Use package.json with {"private":true,"type":"module"} and save as repro.ts:

const bytes = Buffer.from('AGFzbQEAAAABBAFgAAADAgEACgkBBwBBAP0PGgs=', 'base64')
console.log(WebAssembly.validate(bytes))
new WebAssembly.Module(bytes)
console.log('ok')

The module contains one SIMD instruction and no imports:

(module (func i32.const 0 i8x16.splat drop))
node repro.ts
node /path/to/scriptc/packages/cli/dist/main.js coverage repro.ts --print diagnostics

Node prints true and ok. Coverage exits 0 but classifies the module as:

{"status":"unsupported","features":["simd"],"unsupported":["simd"]}
Requested support

Translate SIMD instructions to native code. TRANSLATABLE in packages/compiler/src/wasm/binary.ts currently excludes simd.

#1617 and #1660 address rejection diagnostics. This request concerns translation support. #1395 introduced the initial WASM translation scope.

Recorded on Linux x86_64 with Node 24.19.0 and a source build reporting scriptc 0.4.0, at 0237d70df00475fa6251a432405070c43f2bc94c with #1660, #1656 and #1673 applied.

Lingua principale
TypeScript
Stelle
6.4k
Fork
201
Merge medio
6h 24m
PR unite (30g)
913

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 vercel-labs/scriptc

Tutte le issue di vercel-labs/scriptc

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.