## Summary Documented the "init block vs fields-at-top" design discussion as a valuable example of AI-human collaboration in language design. ## Changes ### Paper G (AI Collaboration) - Added field-declaration-design.md documenting the entire discussion flow - Showcased how complex init block proposal evolved to simple "fields at top" rule - Demonstrates AI's tendency toward complexity vs human intuition for simplicity ### Paper H (AI Practical Patterns) - Added Pattern #17: "Gradual Refinement Pattern" (段階的洗練型) - Documents the process: Complex AI proposal → Detailed analysis → Human insight → Convergence - Field declaration design as a typical example ### Paper K (Explosive Incidents) - Added Incident #046: "init block vs fields-at-top incident" - Updated total count to 46 incidents - Shows how a single human comment redirected entire design approach ## Design Decision After analysis, decided that BoxIndex should remain a compiler-internal structure, not a core Box: - Core Boxes: User-instantiable runtime values (String, Integer, Array, Map) - Compiler internals: BoxIndex for name resolution (compile-time only) - Clear separation of concerns between language features and compiler tools ## Philosophy This discussion exemplifies key principles: - The best design needs no explanation - Constraints provide clarity, not limitation - "Everything is Box" doesn't mean "compiler internals are Boxes" - AI tends toward theoretical completeness; humans toward practical simplicity 🐱 Sometimes the simplest answer is right in front of us\!
Private Drafts Index
非公開(ドラフト)論文と付属アーティファクトの入口です。公開版は別リポ(nyash-lang/papers)に集約予定です。
現在のドラフト:
- 論文A(MIR13/IR設計):
docs/private/papers/paper-a-mir13-ir-design/ - 論文B(Nyash言語と実行モデル):
docs/private/papers/paper-b-nyash-execution-model/ - 論文E(LoopSignal IR 構想):
docs/private/papers/paper-e-loop-signal-ir/
研究ノート/アーカイブ:
- 旧
docs/research/配下の資料はdocs/private/research/に統合しました。- 教育向け Box 理論、JIT研究、GCデバッグ、arXiv用素案、提案集 など
- 公開版は別リポ(nyash-lang/papers)へ段階的に移管予定
備考:
- 各論文配下に
_artifacts/を配置(再現スクリプト/結果CSV/環境情報)。 - 旧パス(
docs/papers/以下)は撤去しました。新規編集は本フォルダ配下で行ってください。 - 計画メモは
docs/private/papers/_planning/、参考資料はdocs/private/papers/reference/に集約しています。