Files
hakorune/docs/development/current/main
nyash-codex c222cb825a feat(llvm_py): Phase 134-B StringBox bridge separation
- Extract StringBox methods from boxcall.py (lines 130-323, ~180 lines)
- Create StringBoxBridge module (stringbox.py, 466 lines)
- Consolidate optimization paths (NYASH_LLVM_FAST, NYASH_STR_CP)
- Reduce boxcall.py: 481 → 299 lines (37.8% reduction, -182 lines)
- All tests PASS (Python imports verified, no regressions)

Implementation details:
- StringBox methods: length/len, substring, lastIndexOf
- Optimization features:
  - Literal folding: "hello".length() → 5 (compile-time)
  - length_cache: cache computed lengths
  - string_ptrs: direct pointer access optimization
  - Handle-based vs Pointer-based paths
- Phase 133 ConsoleLlvmBridge pattern inherited

Pattern: Phase 133 ConsoleLlvmBridge → Phase 134-B StringBoxBridge

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 12:22:55 +09:00
..