Skip to content

Document the memory hazards the compiler rejects - #20

Merged
S42yt merged 1 commit into
masterfrom
memory-hazards
Nov 13, 2026
Merged

S42yt merged 1 commit into
masterfrom
memory-hazards

Conversation

@S42yt

@S42yt S42yt commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Documents the compile-time memory hazards from burnlang/burn#123 and burnlang/burn#124.

  • Memory: new section "What the compiler rejects", a table of each mistake and its fix.
  • Control flow: for ... in loops cannot add to or remove from what they loop over. Added an example that loops over copy(xs) / keys(m). Removed the old notes about runtime behaviour.
  • Async: "Sharing data" now explains the rules for values passed to tasks and for globals, with an example and the error text.
  • Changelog: new "Unreleased" entry.

The examples were compiled and run with a toolchain built from burn master.


Generated by Claude Code

@S42yt
S42yt merged commit ca9fd6e into master Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant