📚 Phase 15 - セルフホスティング戦略の明確化とEXE-first実装
## 主な変更点 ### 🎯 戦略の転換と明確化 - PyVMを開発ツールとして位置づけ(本番経路ではない) - EXE-first戦略を明確に優先(build_compiler_exe.sh実装済み) - Phase順序の整理: 15.2(LLVM)→15.3(コンパイラ)→15.4(VM) ### 🚀 セルフホスティング基盤の実装 - apps/selfhost-compiler/にNyashコンパイラMVP実装 - compiler.nyash: メインエントリー(位置引数対応) - boxes/: parser_box, emitter_box, debug_box分離 - tools/build_compiler_exe.sh: ネイティブEXEビルド+dist配布 - Python MVPパーサーStage-2完成(local/if/loop/call/method/new) ### 📝 ドキュメント整備 - Phase 15 README/ROADMAP更新(Self-Hosting優先明記) - docs/guides/exe-first-wsl.md: WSLクイックスタート追加 - docs/private/papers/: 論文G~L、爆速事件簿41事例収録 ### 🔧 技術的改善 - JSON v0 Bridge: If/Loop PHI生成実装(ChatGPT協力) - PyVM/llvmliteパリティ検証スイート追加 - using/namespace機能(gated実装、Phase 15では非解決) ## 次のステップ 1. パーサー無限ループ修正(未実装関数の実装) 2. EXEビルドとセルフホスティング実証 3. c0→c1→c1'ブートストラップループ確立 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
55
.github/workflows/pyvm-llvmlite-parity.yml
vendored
Normal file
55
.github/workflows/pyvm-llvmlite-parity.yml
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
name: PyVM ↔ llvmlite Parity (Optional)
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 6 * * *'
|
||||
|
||||
jobs:
|
||||
parity:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
NYASH_DISABLE_PLUGINS: '1'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Rust (stable)
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Cache cargo registry and build
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-
|
||||
|
||||
- name: Install LLVM 18 (llvm-config-18)
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y curl ca-certificates lsb-release wget gnupg
|
||||
curl -fsSL https://apt.llvm.org/llvm.sh -o llvm.sh
|
||||
chmod +x llvm.sh
|
||||
sudo ./llvm.sh 18
|
||||
llvm-config-18 --version
|
||||
|
||||
- name: Build nyash (release)
|
||||
run: cargo build --release -j 2
|
||||
|
||||
- name: Parity esc_dirname_smoke (PyVM vs llvmlite)
|
||||
run: tools/parity.sh --lhs pyvm --rhs llvmlite apps/tests/esc_dirname_smoke.nyash --timeout 20
|
||||
|
||||
- name: Parity string_ops_basic (PyVM vs llvmlite)
|
||||
run: tools/parity.sh --lhs pyvm --rhs llvmlite apps/tests/string_ops_basic.nyash --timeout 20
|
||||
|
||||
- name: Parity ternary_nested (PyVM vs llvmlite)
|
||||
run: tools/parity.sh --lhs pyvm --rhs llvmlite apps/tests/ternary_nested.nyash --timeout 20
|
||||
|
||||
- name: Parity peek_return_value (PyVM vs llvmlite)
|
||||
run: tools/parity.sh --lhs pyvm --rhs llvmlite apps/tests/peek_return_value.nyash --timeout 20
|
||||
|
||||
83
.github/workflows/pyvm-smoke.yml
vendored
Normal file
83
.github/workflows/pyvm-smoke.yml
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
name: PyVM + Using Smoke
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'apps/**'
|
||||
- 'tools/**'
|
||||
- 'docs/**'
|
||||
- 'Cargo.toml'
|
||||
- 'Cargo.lock'
|
||||
- '.github/workflows/pyvm-smoke.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'apps/**'
|
||||
- 'tools/**'
|
||||
- 'docs/**'
|
||||
|
||||
jobs:
|
||||
pyvm-smokes:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
NYASH_DISABLE_PLUGINS: '1'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Rust (stable)
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Install ripgrep
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ripgrep
|
||||
|
||||
- name: Cache cargo registry and build
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-
|
||||
|
||||
- name: Build (release)
|
||||
run: cargo build --release -j 2
|
||||
|
||||
- name: PyVM Stage-2 smokes
|
||||
run: bash tools/pyvm_stage2_smoke.sh
|
||||
|
||||
- name: PyVM nested control smokes
|
||||
run: bash tools/pyvm_stage2_nested_control_smoke.sh
|
||||
|
||||
- name: PyVM call/args smokes
|
||||
run: bash tools/pyvm_stage2_call_args_smoke.sh
|
||||
|
||||
- name: Bridge Stage-2 (parser MVP) smokes
|
||||
run: bash tools/ny_stage2_bridge_smoke.sh
|
||||
|
||||
- name: PyVM collections smokes
|
||||
run: bash tools/pyvm_collections_smoke.sh
|
||||
|
||||
- name: PyVM compare smokes
|
||||
run: bash tools/pyvm_stage2_compare_smoke.sh
|
||||
|
||||
- name: Bridge Stage-2 short-circuit smoke
|
||||
run: bash tools/ny_stage2_shortcircuit_smoke.sh
|
||||
|
||||
- name: PyVM Stage-2 dot-chain smoke
|
||||
run: bash tools/pyvm_stage2_dot_chain_smoke.sh
|
||||
|
||||
- name: PyVM Stage-2 new/method smoke
|
||||
run: bash tools/ny_stage2_new_method_smoke.sh
|
||||
|
||||
- name: Selfhost using acceptance (no-op)
|
||||
run: bash tools/ny_selfhost_using_smoke.sh
|
||||
|
||||
- name: Emitter meta.usings gate (fallback allowed)
|
||||
run: bash tools/selfhost_emitter_usings_gate_smoke.sh
|
||||
Reference in New Issue
Block a user