Major Interpreter Refactoring: - Split core.rs (373 lines removed) into focused modules - Split expressions/calls.rs (460 lines removed) into cleaner structure - Added new modules: calls.rs, errors.rs, eval.rs, methods_dispatch.rs, state.rs - Improved separation of concerns across interpreter components P2PBox Enhancements: - Added on_once() for one-time event handlers - Added off() for handler deregistration - Implemented handler flags with AtomicBool for thread-safe management - Added loopback testing cache (last_from, last_intent_name) - Improved Arc-based state sharing for transport and handlers Plugin Loader Unification (In Progress): - Created plugin_loader_unified.rs skeleton - Created plugin_ffi_common.rs for shared FFI utilities - Migration plan documented (2400 lines → 1100 lines target) MIR & VM Improvements: - Enhanced modularized MIR builder structure - Added BoxCall dispatch improvements - Better separation in builder modules Documentation Updates: - Added Phase 9.79a unified box dispatch plan - Created plugin loader migration plan - Updated CURRENT_TASK.md with latest progress All tests passing (180 tests) - ready for next phase of refactoring 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
📦 Nyash Boxシステム設計ドキュメント
🎯 概要
Nyashの核心哲学「Everything is Box」に関する完全な設計ドキュメント集。 言語設計の根幹から実装詳細まで、Boxシステムのすべてを網羅しています。
📚 ドキュメント構成
🌟 コア哲学
everything-is-box.md
Nyashの核心哲学「Everything is Box」の解説。なぜすべてをBoxにするのか、その設計思想と利点。
📖 完全リファレンス
box-reference.md
統合版Box型完全リファレンス。全ビルトインBox型のAPI仕様、基本型からプラグインBoxまで。
🔄 システム設計
delegation-system.md
完全明示デリゲーションシステムの設計。from構文、override必須、pack構文の詳細仕様。
memory-finalization.md
統合版メモリ管理&finiシステム。Arc一元管理、fini()論理的解放、weak参照、プラグインメモリ安全性。
🔗 関連ドキュメント
🎨 設計原則
Everything is Box
- すべての値がBoxオブジェクト
- 統一的なメソッド呼び出し
- プリミティブ型と参照型の区別なし
メモリ安全性
- Arcによる統一管理
- fini()による決定論的リソース解放
- weak参照による循環参照回避
プラグイン拡張性
- BID-FFIによる外部ライブラリ統合
- 型情報管理による安全な変換
- HostVtableによるメモリ管理
最終更新: 2025年8月19日 - boxes-system統合整理完了
Phase 9.75g-0成果: プラグインシステムとの完全統合