Phase 12.5: MIR15最適化戦略 - コンパイラ丸投げ作戦 - optimization-strategy.txt: 詳細戦略(MIR側は軽量、コンパイラに丸投げ) - implementation-examples.md: 具体的な実装例 - debug-safety-comparison.md: 現在のDebugBox vs ChatGPT5提案の比較分析 Phase 15: Nyashセルフホスティング - 究極の目標 - self-hosting-plan.txt: 内蔵Craneliftによる実現計画 - technical-details.md: CompilerBox設計とブートストラップ手順 - README.md: セルフホスティングのビジョン 重要な知見: - LLVM統合完了済み(Phase 11)だが依存が重すぎる - Craneliftが現実的な選択肢(3-5MB vs LLVM 50-100MB) - 「コンパイラもBox、すべてがBox」の夢へ MASTERロードマップ更新済み
17 lines
313 B
Plaintext
17 lines
313 B
Plaintext
// @env NYASH_AWAIT_MAX_MS=5000
|
|
// Simple nowait/await test under Interpreter
|
|
|
|
static box Main {
|
|
main() {
|
|
// spawn two async computations
|
|
nowait fa = 10 + 20
|
|
nowait fb = 1 + 2
|
|
|
|
// wait and combine
|
|
a = await fa
|
|
b = await fb
|
|
return a + b // 33
|
|
}
|
|
}
|
|
|