Created comprehensive, self-contained instructions for modularizing llvm.rs (449 lines → 10 boxes + orchestrator), following Phase 33 success pattern. Contents: - Background & current problems (12 responsibilities in 1 function) - Phase 33 success case reference - Detailed box design (10 boxes with responsibilities/inputs/outputs) - Step-by-step implementation guide (staged migration) - Acceptance criteria (build/test requirements) - Important warnings (PyVM preservation, feature-gated code) Box breakdown: 1. plugin_init.rs - Plugin initialization 2. using_resolver.rs - Using/prelude handling 3. mir_compiler.rs - AST → MIR compilation 4. method_id_injector.rs - method_id injection 5. joinir_experiment.rs - JoinIR experiment (feature-gated) 6. pyvm_executor.rs - PyVM harness (dev/test, MUST PRESERVE) 7. object_emitter.rs - LLVM object emit 8. harness_executor.rs - LLVM harness execution 9. exit_reporter.rs - Leak report (Phase 285LLVM-0) 10. fallback_executor.rs - Mock/legacy execution Expected improvements: - Code quality: 449 lines → 150-200 orchestrator + 10 focused boxes - Testability: Each box independently testable - Reusability: Boxes reusable across backends - Maintainability: Single responsibility per box CRITICAL: PyVM executor (pyvm_executor.rs) MUST be preserved - Used by 8 JSON AST smoke tests - NOT removable legacy code Ready for handoff to other AI (ChatGPT, etc.) for implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Nyash Development Documentation 🔧
開発者向けの進行中タスクと開発計画ドキュメントです。
📂 ディレクトリ構造
current/
CURRENT_TASK.md- 現在進行中のタスク- アクティブな開発作業の詳細
- 最新の実装状況
roadmap/
- phases/ - フェーズ別開発計画
- phase-8/ - AST→MIR変換
- phase-9/ - VM/JIT実装
- phase-10/ - AOT最適化
- native-plan/ - ネイティブビルド計画
- 実行バックエンド統合
- パフォーマンス目標
proposals/
- RFC(Request for Comments)
- 新機能提案
- 設計ディスカッション
🎯 重要な参照先
- 進行状況:
current/CURRENT_TASK.md - 開発計画:
roadmap/phases/ - 技術提案:
proposals/ - ドキュメントのステータス/入口ポリシー:
doc-status-policy.md - JoinIR / Selfhost の入口:
current/main/01-JoinIR-Selfhost-INDEX.md
📝 注意事項
このディレクトリの内容は開発中であり、頻繁に変更されます。
安定した仕様はreference/を参照してください。