Skip to content

feat(embed): add compile-time embedded filesystems - #495

Merged
akonwi merged 6 commits into
mainfrom
feat/embedded-filesystems
Sep 9, 2026
Merged

feat(embed): add compile-time embedded filesystems#495
akonwi merged 6 commits into
mainfrom
feat/embedded-filesystems

Conversation

@akonwi

@akonwi akonwi commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • accept ADR 0071 and add the compiler-owned ard/embed module with text, bytes, and static filesystem constructors
  • carry captured resources through checked nodes and AIR, then stage native //go:embed artifacts for the Go target
  • add embed::FS file, text, directory, stat, and subtree operations with direct io/fs.FS interoperability
  • track selected resource inputs in LSP signatures and watched package roots
  • document the guide and stdlib API, and serve embedded assets from the chi server example

Validation

  • cd compiler && go test ./... -count=1
  • cd compiler && gopls check checker/embed.go checker/embed_internal_test.go checker/embed_test.go air/embed_test.go go/embed_test.go lsp/analysis/engine.go lsp/analysis/engine_test.go main_test.go
  • cd website && npm run build
  • built and ran examples/chi-server, then fetched /static/ and /static/app.css

@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ard-lang-dev Ready Ready Preview Sep 9, 2026 2:08pm UTC

@akonwi
akonwi merged commit 02b6327 into main Sep 9, 2026
6 checks passed
@akonwi
akonwi deleted the feat/embedded-filesystems branch September 9, 2026 14:10
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