vx-lang / vx-lang/Vx

Refactor: Decouple TypeChecker from legacy HIR emission

Open
#144 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core-lang refactor
Dominant language
Rust
Stars
14
Forks
2
Avg merge
12h 42m
Merged PRs (30d)
61

Description

The current implementation of the TypeChecker relies on passing around &mut Vec<HirInstruction> to trace legacy bytecode. Now that we are migrating to the MLIR-based lowering and dropping the legacy HIR, the type checker must be decoupled from the HIR generation logic to simplify its internal workings and avoid unnecessary side effects.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the TypeChecker and its call sites, then trace where &mut Vec is passed for legacy bytecode tracing. Compare those paths with the MLIR-based lowering flow. Done means the type checker no longer depends on legacy HIR emission while retaining its type-checking behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.