wip(phase15): AOT修正作業中 - Nyプラグインと標準ライブラリ実装
Phase 15のAOT/ネイティブビルド修正作業を継続中。 ChatGPTによるstd実装とプラグインシステムの改修を含む。 主な変更点: - apps/std/: string.nyashとarray.nyashの標準ライブラリ追加 - apps/smokes/: stdライブラリのスモークテスト追加 - プラグインローダーv2の実装改修 - BoxCallのハンドル管理改善 - JIT hostcall registryの更新 - ビルドスクリプト(build_aot.sh, build_llvm.sh)の調整 まだ修正作業中のため、一部の機能は不完全な状態。 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
15
benchmarks/bench_aot_len_heavy.nyash
Normal file
15
benchmarks/bench_aot_len_heavy.nyash
Normal file
@ -0,0 +1,15 @@
|
||||
// AOT-safe microbench: call String.length() many times (heavy)
|
||||
static box Main {
|
||||
len1(s) { return s.length() }
|
||||
main() {
|
||||
local s = new StringBox("nyash")
|
||||
local i = 0
|
||||
local total = 0
|
||||
// ~160k iterations(重めだが実用時間内)
|
||||
loop(i < 160000) {
|
||||
total = total + me.len1(s)
|
||||
i = i + 1
|
||||
}
|
||||
return total
|
||||
}
|
||||
}
|
||||
17
benchmarks/bench_aot_len_light.nyash
Normal file
17
benchmarks/bench_aot_len_light.nyash
Normal file
@ -0,0 +1,17 @@
|
||||
// AOT-safe microbench: call String.length() many times
|
||||
static box Main {
|
||||
len1(s) {
|
||||
return s.length()
|
||||
}
|
||||
main() {
|
||||
local s = new StringBox("nyash")
|
||||
local i = 0
|
||||
local total = 0
|
||||
// ~10k iterations (軽量)
|
||||
loop(i < 10000) {
|
||||
total = total + me.len1(s)
|
||||
i = i + 1
|
||||
}
|
||||
return total
|
||||
}
|
||||
}
|
||||
15
benchmarks/bench_aot_len_medium.nyash
Normal file
15
benchmarks/bench_aot_len_medium.nyash
Normal file
@ -0,0 +1,15 @@
|
||||
// AOT-safe microbench: call String.length() many times (medium)
|
||||
static box Main {
|
||||
len1(s) { return s.length() }
|
||||
main() {
|
||||
local s = new StringBox("nyash")
|
||||
local i = 0
|
||||
local total = 0
|
||||
// ~40k iterations(中)
|
||||
loop(i < 40000) {
|
||||
total = total + me.len1(s)
|
||||
i = i + 1
|
||||
}
|
||||
return total
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user