feat(lang): string_split/replace/slice, int/float_parse, bool_to_string, 7 map built-ins#66
Merged
Merged
Conversation
…ng, map built-ins Adds 13 built-in operations continuing the __builtin_* pattern (opcodes 0x9A–0xA6): StringSplit, StringReplace, StringSlice, IntParse, FloatParse, BoolToString, MapGet, MapSet, MapRemove, MapContainsKey, MapKeys, MapValues, MapLen. 21 new VM tests added; all compiler + VM gates pass. 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_*pattern (opcodes 0x9A–0xA6)string_split,string_replace,string_slice,int_parse,float_parse,bool_to_stringmap_get,map_set,map_remove,map_contains_key,map_keys,map_values,map_lenValue::MapisBTreeMap<String, Value>— all map keys areString, determinism guaranteedTest plan
crates/llmvm/src/tests.rscargo test -p boruna-vm— 187 tests passcargo test -p boruna-compiler— all passcargo clippy --workspace -- -D warnings— clean🤖 Generated with Claude Code