Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Support WebAssembly SIMD instructions in ahead-of-time translation

Abierto
#1,679 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@jlucaso1 ya está trabajando en esto.

Desde el 24/10/2026.

  • #2149 de @jlucaso1 — abierto

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript, wasm
Área
compilers

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
6.4k
Forks
201
Merge medio
6 h 56 min
PR fusionados (30 d)
916

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de vercel-labs/scriptc

Todos los issues de vercel-labs/scriptc

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.