bytecodealliance / bytecodealliance/componentize-py

Add support for type aliases

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
277
Forks
51
Avg merge
12h 10m
Merged PRs (30d)
10

Description

Currently, `componentize-py` generates no code for type aliases; instead, it just uses the dealiased types directly. Instead, we should generate assignment expressions for each alias and use the alias in all the same places (e.g. function parameter types, etc.) that the original WIT files used them.

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by locating componentize-py’s type-generation and type-reference handling, then trace how WIT aliases are currently dealiased in generated Python. Done means emitting an assignment for every alias and retaining that alias wherever the original WIT uses it, including function parameter types.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust, wasm
Domain
compilers, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.