selfhost(pyvm): MiniVmPrints – prefer JSON route early-return (ok==1) to avoid fallback loops; keep default behavior unchanged elsewhere

This commit is contained in:
Selfhosting Dev
2025-09-22 07:54:25 +09:00
parent 27568eb4a6
commit 8e4cadd349
348 changed files with 9981 additions and 30074 deletions

View File

@ -1,6 +1,6 @@
# Strings Blueprint — UTF8 First, Bytes Separate
Status: active (Phase Freeze compatible)
Status: active (FeaturePause compatible)
Updated: 2025-09-21
Purpose
@ -41,7 +41,7 @@ Implementation Plan (staged, nonbreaking)
Transition Gate (Rust dev only)
- Env `NYASH_STR_CP=1` enables CP semantics for legacy byte-based paths in Rust runtime (e.g., StringBox.length/indexOf/lastIndexOf).
- Default remains byte in Rust during freeze; PyVM follows CP semantics. CI smokes validate CP behavior via PyVM.
- Default remains byte in Rust during the featurepause; PyVM follows CP semantics. CI smokes validate CP behavior via PyVM.
Related Docs
- reference/language/strings.md — policy & scope