Skip to content

feat(lang): more string and list built-ins (14 new operations)#63

Merged
escapeboy merged 1 commit into
masterfrom
post1/more-string-list-builtins
Apr 30, 2026
Merged

feat(lang): more string and list built-ins (14 new operations)#63
escapeboy merged 1 commit into
masterfrom
post1/more-string-list-builtins

Conversation

@escapeboy
Copy link
Copy Markdown
Owner

Summary

Test plan

  • cargo test -p boruna-compiler — 63 tests pass
  • cargo test -p boruna-vm — 167 tests pass (includes 21 new built-in tests)
  • cargo test -p boruna-tooling — 6 tests pass
  • cargo clippy --workspace -- -D warnings — clean

🤖 Generated with Claude Code

…m/join + list_len/head/tail/append/concat/reverse/is_empty built-ins

14 new __builtin_* operations (7 string, 7 list) following the opcode/VM/typeck/codegen pattern from #59. Opcodes assigned 0x8C–0x99.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@escapeboy escapeboy merged commit 684a075 into master Apr 30, 2026
1 of 5 checks passed
escapeboy added a commit that referenced this pull request Apr 30, 2026
…port docs (#65)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Bench compare

Threshold for regression: ≥ 10% slower mean.

Benchmark Mean change 99% CI
compile_crud_admin_template -2.06% [-2.26%, -1.78%]
compile_medium_program -3.57% [-3.72%, -3.39%]
compile_small_program -9.55% [-9.76%, -9.37%]
evidence_build_5_steps +3.13% [+2.03%, +4.21%]
evidence_build_empty +3.18% [+2.28%, +4.07%]
evidence_verify_10_steps +0.18% [-0.67%, +1.12%]
evidence_verify_5_steps -0.66% [-9.94%, +5.69%]
vm_call_dispatch_loop/iters=1000 -2.11% [-2.36%, -1.87%]
vm_call_dispatch_loop/iters=10000 -2.22% [-2.29%, -2.16%]
vm_pure_loop/iters=1000 -4.28% [-4.56%, -4.04%]
vm_pure_loop/iters=10000 -3.26% [-3.43%, -3.07%]
vm_pure_loop/iters=100000 -3.52% [-3.65%, -3.41%]
vm_record_loop/iters=1000 -2.05% [-2.20%, -1.87%]
vm_record_loop/iters=10000 -2.71% [-2.83%, -2.61%]

✅ No benchmark regressed past threshold.

@escapeboy escapeboy deleted the post1/more-string-list-builtins branch May 17, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant