Lower fixed arrays and checked indexing in Whale

Abierto
#880 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

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

Línea de trabajo

Start by reading related issue #879 and the compiler’s HIR, typed-pointer lowering, and existing indexing/conversion paths; the payload does not name specific files or tests. Discuss the design with @LunaStev before implementation. Done means fixed-array construction, reads and writes, and nested arrays are verified, existing indexing and conversion semantics are preserved, and unsupported element types remain clear.

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

Descripción

discussion enhancement help wanted

Motivation

At fd07427f4a976de05e38eff3ee1760db97fbb761 on Linux amd64 with Rust 1.89 and locked Whale 020d2a4, lexing, parsing and TypedProgram lowering succeed, but calling whale::emit_ir on this source returns Whale backend does not yet support type Array(Int(32), 2):

fun main() -> i32 { var x: array<i32, 2> = [1, 2]; return x[0]; }

Scope

Add Wave fixed-array construction/indexing using verified HIR element type, length and layout. Coordinate with typed-pointer lowering. Preserve existing Wave index behavior; no dynamic-array API or new bounds policy. This is Wave adaptation, separate from upstream frontend #157.

Difficulty: hard.

Completion criteria

  • Verify construction, element reads/writes and nested fixed arrays.
  • Match established indexing and conversion semantics.
  • Keep unsupported element types clear.

Please mention @LunaStev to discuss the design before starting implementation.

Related pointer adaptation: #879.

Lenguaje dominante
Rust
Estrellas
56
Forks
21
Merge medio
23 h 20 min
PR fusionados (30 d)
45

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 wavefnd/Wave

Todos los issues de wavefnd/Wave

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.