software-mansion / software-mansion/TypeGPU

[RFC] refactor: Use ObjectExpression instead of immediate concretization

Open
#2,726 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

exploration stability
Dominant language
TypeScript
Stars
3.2k
Forks
122
Avg merge
3d 5h
Merged PRs (30d)
34

Description

If we deferred object and array concretization until tryConvertSnippet, we could remove ctx.expectedType and CAPTURE would return more consistent results

Contributor guide

Open the contributing guide

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 tracing tryConvertSnippet, ctx.expectedType, and CAPTURE, then inspect how object and array values are currently concretized. Determine the design and affected call paths before changing behavior. Done means concretization is deferred as proposed, ctx.expectedType can be removed, and CAPTURE produces consistent results.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.