Skip to content

docs: a guide to -mm=own and its decorators - #688

Merged
ASDAlexander77 merged 1 commit into
mainfrom
docs-own-memory-model
Oct 25, 2026
Merged

ASDAlexander77 merged 1 commit into
mainfrom
docs-own-memory-model

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Summary

  • New docs/own-memory-model.md: owners, moves and borrows; the common errors with real compiler output and their fixes; strings, closures and Shared<T>; every decorator (@keeps, @lends, @record, @borrows, @immortalizes, @nodrops, @final, @value) with an example; --own-facts and separate compilation; __MEMORY_MODEL__/__OS__/__ARCH__; current limits (Map/Set from the default library do not compile under own yet).
  • README links the guide (contents, What's new, Memory models) and drops the stale "the default library has no -mm=own build" sentence.
  • docs/memory-models.md points to the new page.

Test plan

  • Every example compiled with the release tslang.exe -mm=own --emit=jit (error examples with --emit=obj where they have no main); outputs in the doc are the compiler's.

🤖 Generated with Claude Code

docs/own-memory-model.md: owners, moves and borrows; the errors and their fixes; strings,
closures and Shared<T>; @keeps, @Lends, @record, @borrows, @immortalizes, @nodrops, @Final and
@value, each with an example compiled under -mm=own; --own-facts and separate compilation;
__MEMORY_MODEL__; current limits. The README links it and no longer says the default library
has no -mm=own build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit b2ce516 into main Oct 25, 2026
2 checks passed
@ASDAlexander77
ASDAlexander77 deleted the docs-own-memory-model branch October 25, 2026 12:41
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