Files
hakorune/docs/reference
nyash-codex 120fbdb523 fix(mir): Receiver used_values for DCE + trace + cleanup
- Fix: Call with Callee::Method now includes receiver in used_values()
  - Prevents DCE from eliminating Copy instructions that define receivers
  - Pattern 3 (loop_if_phi.hako) now works correctly (sum=9)

- Add: NYASH_DCE_TRACE=1 for debugging eliminated instructions
  - Shows which pure instructions DCE removes and from which block

- Cleanup: Consolidate Call used_values to single source of truth
  - Early return in methods.rs handles all Call variants
  - Removed duplicate match arm (now unreachable!())
  - ChatGPT's suggestion for cleaner architecture

- Docs: Phase 166 analysis of inst_meta layer architecture
  - Identified CSE pass callee bug (to be fixed next)
  - Improvement proposals for CallLikeInst

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 23:26:55 +09:00
..

Nyash Reference Documentation 📖

このディレクトリには、Nyashプログラミング言語の正式な技術仕様が含まれています。

📚 サブディレクトリ

language/

  • 言語仕様構文、型システム、Box仕様、デリゲーション
  • 正式な言語リファレンス

architecture/

  • システムアーキテクチャMIR、VM、インタープリター
  • 実行バックエンド仕様
  • 内部設計ドキュメント

api/

  • ビルトインBoxのAPI仕様
  • 標準ライブラリリファレンス
  • 各Boxのメソッド詳細

plugin-system/

  • プラグインシステム仕様
  • BID-FFIBox Interface Definition - Foreign Function Interface
  • プラグイン開発ガイド

📝 注意事項

このディレクトリのドキュメントは安定版です。開発中の仕様はdevelopment/を参照してください。