Add comprehensive refactoring opportunities analysis document and document BID-codegen stub status with deprecation notes. Key changes: - REFACTORING_OPPORTUNITIES.md (2,200 lines): Complete audit - 10 refactoring opportunities identified + prioritized - HIGH-impact (3): extern dispatch, monolithic files, WASM executor - MEDIUM-impact (4): BID-codegen, plugin_loader, loop_patterns, allow(dead_code) - LOW-impact (3): AOT backend, test infrastructure, using system - Quick wins (<2 hours): BID-codegen docs, loop_patterns_old clarification - typescript.rs: Added deprecation notice + replacement path - python.rs: Added deprecation notice + replacement path - llvm.rs: Added deprecation notice + reference to llvmlite harness All stubs remain functional (preserve CodeGenTarget API surface). Documentation enables informed decisions about future removal/implementation. Status: 0 behavior change, +130 lines of documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
BID Code Generation from Copilot
このフォルダには、CopilotさんがPR #117で実装したBIDコード生成機能を保存しています。
📦 含まれるファイル
コア機能
- schema.rs: BIDスキーマ定義(YAML/JSONパース)
- codegen/generator.rs: コード生成エンジン
- codegen/mod.rs: モジュール定義
各言語向け生成ターゲット
- codegen/targets/vm.rs: VM用バイトコード生成
- codegen/targets/wasm.rs: WebAssembly生成(最も詳細)
- codegen/targets/llvm.rs: LLVM IR生成(スタブ)
- codegen/targets/python.rs: Pythonバインディング(スタブ)
- codegen/targets/typescript.rs: TypeScript定義(スタブ)
🎯 用途
将来的に以下の用途で活用可能:
-
プラグインの多言語対応:
- C以外の言語でプラグイン作成
- 各言語向けバインディング自動生成
-
バックエンド統合:
- VM/WASM/LLVM向けの統一インターフェース
- 外部関数定義の一元管理
-
型安全性向上:
- スキーマベースの型チェック
- コンパイル時の整合性検証
📝 メモ
- 現在は使用していない(既存のnyash.tomlベースが動作中)
- cli.rsとrunner.rsへの大幅変更は含まれていない(別フォルダ保存)
- 必要に応じて段階的に統合可能