Lower bounded for loops that emit effects to Target IR

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
compilers

Research direction

Read the bounded for support in Core and the Target lowering path that currently refuses For; the issue names no files or tests. Trace how effect budgets are enforced and compare with the ReplaceRange example. Done when bounded loops whose bodies emit effects lower to Target IR and the loop bound is charged against the effect budget.

Written by the indexing model from the issue text.

Description

Jim's ReplaceRange emits one ensure per fresh node in for leaf in fresh.leaves bounded text.maxCreatedLeaves { ... }. Core has for over statically bounded lists, but Target lowering refuses For. Needed: lowering of a bounded loop whose body emits effects, with the bound charged against the effect budget. Consumer: jedit DL-0159 drafts (https://github.com/flyingrobots/jedit/blob/main/docs/design/0159-edict-rope-representation.md); runtime side echo#921.

Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from flyingrobots/edict

All issues in flyingrobots/edict

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.