software-mansion / software-mansion/TypeGPU
[RFC] refactor: Use ObjectExpression instead of immediate concretization
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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