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ロードマップ更新済み
22 lines
492 B
Plaintext
22 lines
492 B
Plaintext
// VM-only demo: TaskGroup token + delayed future
|
|
|
|
static box Main {
|
|
main() {
|
|
// Obtain current task token
|
|
tok = task.currentToken()
|
|
print("token: " + tok.toString())
|
|
|
|
// Delay 200ms via scheduler-backed future
|
|
fut = future.delay(200)
|
|
_ = await fut
|
|
print("after delay")
|
|
|
|
// Cancel current token (for demo, no effect yet on delay)
|
|
task.cancelCurrent()
|
|
tok2 = task.currentToken()
|
|
print("token after cancel: " + tok2.toString())
|
|
|
|
return 0
|
|
}
|
|
}
|