feat(lang): more string and list built-ins (14 new operations)#63
Merged
Conversation
…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>
2 tasks
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>
|
Bench compare Threshold for regression: ≥ 10% slower mean.
✅ No benchmark regressed past threshold. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
__builtin_string_contains,__builtin_string_starts_with,__builtin_string_ends_with,__builtin_string_to_upper,__builtin_string_to_lower,__builtin_string_trim,__builtin_string_join__builtin_list_len,__builtin_list_is_empty,__builtin_list_head,__builtin_list_tail,__builtin_list_append,__builtin_list_concat,__builtin_list_reverse__builtin_*pattern from feat(lang): string built-ins (int_to_string, float_to_string, string_len, string_chars) #59: opcodes inboruna-bytecode, VM dispatch inboruna-vm, typeck registration and codegen dispatch inboruna-compilerTest plan
cargo test -p boruna-compiler— 63 tests passcargo test -p boruna-vm— 167 tests pass (includes 21 new built-in tests)cargo test -p boruna-tooling— 6 tests passcargo clippy --workspace -- -D warnings— clean🤖 Generated with Claude Code