「ん?大丈夫?」の一言が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
23 lines
907 B
Markdown
23 lines
907 B
Markdown
# 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)
|