Files
hakorune/docs/research/paper-02-box-theory-jit/03-figures-notes.md
Moe Charm 7a0f9bd432 🚨 AI協調開発の危機回避事例を論文化(paper-09)
「ん?大丈夫?」の一言が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
2025-08-30 08:54:15 +09:00

23 lines
907 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Figures & Repro Notes (WIP)
## DOT (CFG/PHI with b1 labels)
- Enable JIT + PHI-min: `NYASH_JIT_EXEC=1 NYASH_JIT_THRESHOLD=1 NYASH_JIT_PHI_MIN=1`
- Write DOT: `NYASH_JIT_DOT=out.dot ./target/release/nyash --backend vm examples/jit_phi_demo.nyash`
- Expected labels:
- Branch edges: `then cond:b1`, `else cond:b1`
- Node label: `phi:N (b1:M)` when boolean PHIs exist
- Render with Graphviz: `dot -Tpng out.dot -o out.png`
## Bench Table (early)
- Command: `./target/release/nyash --benchmark --iterations 50 --jit-stats`
- Cases:
- simple_add (note: early stub impact)
- arith_loop_100k (JIT ≈ 1.40× VM)
- branch_return (≈ VM)
- f64_add (JIT ≈ 1.06× VM)
## Capability Probe
- Current toolchain: `supports_b1_sig=false` (B1 in signatures disabled)
- Future: flip to true after Cranelift upgrade/verification, then switch:
- `ParamKind::B1 → types::B1` (one-line change in builder)