phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0

This commit is contained in:
nyash-codex
2025-11-06 15:41:52 +09:00
parent 2dc370223d
commit 77d4fd72b3
1658 changed files with 6288 additions and 2612 deletions

View File

@ -67,7 +67,7 @@ static box Main {
// Demonstrate the future server usage pattern
print("🚀 6. Future Usage Pattern (Post-AOT):")
print(" nyash --compile-native http_server.nyash -o server.exe")
print(" nyash --compile-native http_server.hako -o server.exe")
print(" ./server.exe --port 8080")
print(" curl http://localhost:8080/api/status")
print("")

View File

@ -12,7 +12,7 @@ echo -e "\n📊 動的版 (dynamic-file feature 有効)"
echo "開始時刻: $(date +%H:%M:%S.%N)"
START=$(date +%s%N)
RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.nyash 2>/dev/null
RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.hako 2>/dev/null
END=$(date +%s%N)
ELAPSED=$((($END - $START) / 1000000))
@ -31,7 +31,7 @@ echo -e "\n📊 静的版 (dynamic-file feature 無効)"
echo "開始時刻: $(date +%H:%M:%S.%N)"
START=$(date +%s%N)
RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.nyash 2>/dev/null
RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.hako 2>/dev/null
END=$(date +%s%N)
ELAPSED=$((($END - $START) / 1000000))

View File

@ -1,7 +1,7 @@
🚀 Nyash MIR Compiler - Processing file: local_tests/test_simple_string.nyash 🚀
🚀 Nyash MIR Compiler - Processing file: local_tests/test_simple_string.hako 🚀
🔍 build_new_expression: class=StringBox, arguments=[Literal { value: String("Hello"), span: Span { start: 0, end: 0, line: 1, column: 1 } }]
🔍 build_new_expression: StringBox with literal string: "Hello"
🚀 MIR Output for local_tests/test_simple_string.nyash:
🚀 MIR Output for local_tests/test_simple_string.hako:
; MIR Module: main
define void @main() {

View File

@ -12,7 +12,7 @@ rm -f perf_test_*.txt
# 動的版(現在)
echo "1⃣ 動的版 (dynamic-file feature 有効)"
echo -n " 実行時間: "
{ time RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.nyash > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'
{ time RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.hako > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'
rm -f perf_test_*.txt
# 静的版ビルド
@ -24,7 +24,7 @@ cargo build --release --no-default-features -j32 > /dev/null 2>&1
echo ""
echo "2⃣ 静的版 (FileBox組み込み)"
echo -n " 実行時間: "
{ time RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.nyash > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'
{ time RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.hako > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'
rm -f perf_test_*.txt
# 複数回測定
@ -34,7 +34,7 @@ echo ""
echo "動的版:"
for i in {1..5}; do
echo -n " Run $i: "
{ time RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.nyash > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'
{ time RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.hako > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'
rm -f perf_test_*.txt
done
@ -45,7 +45,7 @@ echo ""
echo "静的版:"
for i in {1..5}; do
echo -n " Run $i: "
{ time RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.nyash > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'
{ time RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.hako > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'
rm -f perf_test_*.txt
done

View File

@ -1,2 +1,2 @@
#!/bin/bash
./target/release/nyash local_tests/test_filebox_debug.nyash 2>&1 | grep -E "(TLV data|Plugin method returned)"
./target/release/nyash local_tests/test_filebox_debug.hako 2>&1 | grep -E "(TLV data|Plugin method returned)"

View File

@ -10,7 +10,7 @@ rm -f perf_test_*.txt
# 動的版
echo -e "\n📊 動的版 (現在のビルド)"
echo "計測開始..."
time RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.nyash > /dev/null 2>&1
time RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.hako > /dev/null 2>&1
rm -f perf_test_*.txt
# 静的版ビルド
@ -20,7 +20,7 @@ cargo build --release --no-default-features -j32 > /dev/null 2>&1
# 静的版
echo -e "\n📊 静的版 (dynamic-file無効)"
echo "計測開始..."
time RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.nyash > /dev/null 2>&1
time RUST_LOG=error ./target/release/nyash local_tests/benchmark_filebox_simple.hako > /dev/null 2>&1
rm -f perf_test_*.txt
# 動的版に戻す

View File

@ -1,4 +1,4 @@
// test_array_improvements.nyash - ArrayBox Phase 2 improvements test
// test_array_improvements.hako - ArrayBox Phase 2 improvements test
// Testing: sort(), reverse(), indexOf(), slice() methods
print("📦 Testing ArrayBox improvements...")

View File

@ -1,4 +1,4 @@
// test_array_methods.nyash - ArrayBox改良テスト
// test_array_methods.hako - ArrayBox改良テスト
// Phase 1: ArrayBox sort(), reverse(), indexOf(), slice() validation
print("🗂️ Testing ArrayBox improvements...")

View File

@ -1,4 +1,4 @@
// test_comparison_operators.nyash - Comparison operators test
// test_comparison_operators.hako - Comparison operators test
// Phase 4: Comparison operators implementation validation
print("⚖️ Testing comparison operators implementation...")

View File

@ -1,4 +1,4 @@
// test_cross_type_operators.nyash - 演算子システム強化テスト
// test_cross_type_operators.hako - 演算子システム強化テスト
// Phase 1: Cross-type operations, string concatenation, comparisons validation
print("🔢 Testing cross-type operators implementation...")

View File

@ -1,4 +1,4 @@
// test_datetime_box.nyash - DateTimeBox functionality test
// test_datetime_box.hako - DateTimeBox functionality test
// Phase 3: DateTimeBox implementation validation
print("📅 Testing DateTimeBox implementation...")

View File

@ -0,0 +1,4 @@
// test_datetime_tostring.hako - DateTimeBox toString() test as mentioned in issue
local dt
dt = new DateTimeBox()
print(dt.toString())

View File

@ -1,4 +0,0 @@
// test_datetime_tostring.nyash - DateTimeBox toString() test as mentioned in issue
local dt
dt = new DateTimeBox()
print(dt.toString())

Some files were not shown because too many files have changed in this diff Show More