「ん?大丈夫?」の一言がPython特化ハードコーディングを防いだ事例を記録。
Everything is Box哲学 vs 技術的正しさの綱渡りからの生還を分析。
- docs/research/paper-09-ai-collaboration-pitfall/ を新規作成
- incident-analysis.md: Lowerer特殊化危機の詳細分析
- ai-collaboration-lessons.md: AI協調開発の教訓
- intuition-in-engineering.md: エンジニアの直感の価値
- summary.md: 綱渡りからの生還まとめ
- 研究論文の1論文1フォルダ原則に従い整理
- Python統合関連の実装修正とビルド成功確認
🛡️ Generated with Claude Code
9 lines
1.8 KiB
Markdown
9 lines
1.8 KiB
Markdown
Title: Box-First JIT: Decoupled, Probe-Driven JIT Enablement in Nyash within 24 Hours
|
||
|
||
Abstract (JP short)
|
||
本稿は、Nyash言語にJITを24時間で安全導入するための「箱理論(Box-First)」アプローチを提示する。JITエンジンをVMから疎結合化し、設定・境界・ハンドル・観測をすべて「箱」に封じ込めることで、強い可逆性(戻せる足場)と段階的最適化を両立した。具体的には、JitConfigBoxによるenv排除と実行時プローブ、HandleRegistryによるJIT↔Hostの疎結合化、typed-ABIのスイッチング足場、b1(真偽)内部表現の限定導入、CFG/PHIのDOT可視化、統合JIT統計を実装した。結果として、分岐・PHI・F64演算のJIT経路が稼働し、VMと一致するゴールデンを維持しつつ、JITがVM比1.06〜1.40倍の改善を示した(初期段階、compileコスト込み)。本手法はAI支援開発下でも「力づく最適化」を避け、可視・可逆・切替可能な足場を短時間で積み上げる有効戦略である。
|
||
|
||
Abstract (EN short)
|
||
We present a Box-First approach to land a practical JIT in the Nyash language within 24 hours. By encapsulating configuration, boundaries, handles, and observability as Boxes, the design achieves strong reversibility and incremental optimization. We implemented a JitConfigBox with runtime capability probing, a decoupled JIT/VM boundary (JitValue/HandleRegistry), a typed-ABI switching scaffold, a conservative b1-internal path, CFG/PHI DOT visualization, and unified JIT statistics. Early results show correct execution on branches/PHI/f64 arithmetic and 1.06–1.40× VM speedups (including compile costs). The method avoids brute-force optimization in AI-assisted development by building visible, reversible, and switchable scaffolding first.
|
||
|