Skip to content

Implement ClassicAllocator for compiler S-expressions - #543

Draft
prozacchiwawa wants to merge 1 commit into
20260722-generic-clvmfrom
cursor/classic-allocator-sexp-3ded
Draft

prozacchiwawa wants to merge 1 commit into
20260722-generic-clvmfrom
cursor/classic-allocator-sexp-3ded

Conversation

@prozacchiwawa

@prozacchiwawa prozacchiwawa commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an SExpAllocator adapter using Rc<SExp> as its node pointer type
  • preserve source locations during native atom and pair operations
  • restrict the embedded CLVM allocator to import/export boundaries
  • generalize atom buffers to support compiler-owned and borrowed atom data

Testing

  • cargo test
  • cargo check --all-targets
  • focused source-location import/export round-trip test
  • cargo clippy --all-targets -- -D warnings (blocked by 225 pre-existing test lint errors; no diagnostics in changed files)
Open in Web Open in Cursor 

Co-authored-by: arty <prozacchiwawa@users.noreply.github.com>
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.

2 participants