Files
hakorune/docs/research/paper-02-box-theory-jit/figures/README.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

57 lines
1.6 KiB
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.

# 論文用図表
## 📊 図一覧
### 1. Box-First Architecture
- `box-first-architecture-simple.svg` - シンプル版アーキテクチャ図(新規作成)
- `box_first_architecture.svg` - ChatGPT5作成のオリジナルMatplotlib生成
### 2. CFG/PHI可視化生成予定
- `phi_bool_cfg.png` - phi_bool_mergeのCFG図
- `mix_promote_cfg.png` - 型昇格のCFG図
### 3. 性能グラフ(作成予定)
- `performance_comparison.png` - VM vs JIT性能比較
- `compile_time_tradeoff.png` - コンパイル時間トレードオフ
## 🎨 図の生成方法
### CFG図の生成
```bash
# 1. DOTファイル生成
NYASH_JIT_EXEC=1 NYASH_JIT_THRESHOLD=1 NYASH_JIT_PHI_MIN=1 \
NYASH_JIT_DOT=tmp/phi_bool.dot \
./target/release/nyash --backend vm examples/phi_bool_merge.nyash
# 2. PNG変換
dot -Tpng tmp/phi_bool.dot -o figures/phi_bool_cfg.png
```
### SVGからPNG変換
```bash
# Inkscapeを使用
inkscape box-first-architecture-simple.svg --export-png=box-first-architecture.png --export-dpi=300
```
## 📝 論文での使用
### Figure 1: Box-First Architecture
```latex
\begin{figure}[h]
\centering
\includegraphics[width=0.8\textwidth]{figures/box-first-architecture.png}
\caption{Box-First JIT Architecture. Three boxes (Configuration, Boundary,
Observability) enable safe and reversible JIT implementation.}
\label{fig:architecture}
\end{figure}
```
### Figure 2: Boolean PHI Merge
```latex
\begin{figure}[h]
\centering
\includegraphics[width=0.6\textwidth]{figures/phi_bool_cfg.png}
\caption{CFG visualization of boolean PHI merge with b1 internal path.}
\label{fig:phi-bool}
\end{figure}
```