Commit graph

397 commits

Author SHA1 Message Date
Luke Boswell
f0310302f3
Merge pull request #8442 from roc-lang/builtin-str-impls2
More Builtin `Str` implementations
2025-11-28 08:20:00 +11:00
Anton-4
b97f5fae9e
plum update, fix snapshot_tool_test: integer overflow 2025-11-27 14:29:59 +01:00
Anton-4
332fe2f518
Merge branch 'main' into builtin-str-impls2
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-11-27 11:57:13 +01:00
Anton-4
4442e55e48
Merge branch 'main' into fold-rev
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-11-27 11:27:15 +01:00
Richard Feldman
96ad22d002
Fixes after rebase 2025-11-27 00:13:15 -05:00
Richard Feldman
e00e6458b5
Update snapshots 2025-11-26 23:51:03 -05:00
Richard Feldman
2cb6c41249
Merge branch 'main' into num-bug 2025-11-26 23:41:54 -05:00
Richard Feldman
18992dc3fb
More fixes 2025-11-26 23:02:00 -05:00
Richard Feldman
07aa38a2b1
More fixes 2025-11-26 22:42:17 -05:00
Richard Feldman
80c6882204
String interpolation now requires Str 2025-11-26 22:20:16 -05:00
Richard Feldman
e9a46a9f4c
wip 2025-11-26 22:02:42 -05:00
Richard Feldman
9f3d0cf24d
Merge remote-tracking branch 'origin/main' into propagate_is_eq 2025-11-26 20:31:35 -05:00
Richard Feldman
b870851b51
Merge remote-tracking branch 'origin/main' into propagate_is_eq 2025-11-26 16:26:57 -05:00
Richard Feldman
304144da9b
More is_eq fixes 2025-11-26 14:44:05 -05:00
Anton-4
bf5f615152
Merge branch 'main' into fold-rev 2025-11-26 19:43:11 +01:00
Richard Feldman
e5e6ca55b8
Merge remote-tracking branch 'origin/main' into propagate_is_eq 2025-11-26 13:29:54 -05:00
Richard Feldman
fb53d8098f
Merge remote-tracking branch 'origin/main' into more-eq-fixes 2025-11-26 13:20:01 -05:00
Richard Feldman
79cdd87298
Merge origin/main 2025-11-26 13:15:58 -05:00
Richard Feldman
0a9b5fd8e0
Fix a runtime constraint issue 2025-11-26 12:41:40 -05:00
Richard Feldman
3144e55d68
Merge remote-tracking branch 'origin/main' into fix-dbg-bug 2025-11-26 12:34:30 -05:00
Richard Feldman
5518254635
Merge pull request #8444 from roc-lang/fix-try-eq
Fix Try.Eq and cross-module lookups
2025-11-26 12:27:57 -05:00
Richard Feldman
62a031bff5
Merge pull request #8455 from roc-lang/fix-extraneous-errors
Fix 0-arg fn parsing error
2025-11-26 11:06:07 -05:00
Richard Feldman
d90b24cd27
Merge remote-tracking branch 'origin/main' into fix-try-eq 2025-11-26 10:32:23 -05:00
Richard Feldman
55f04a0688
Add more snapshot tests 2025-11-26 10:03:08 -05:00
Richard Feldman
092bada8f1
Update snapshots 2025-11-26 10:02:56 -05:00
Richard Feldman
0129e34275
Merge remote-tracking branch 'origin/main' into fix-dbg-bug 2025-11-26 10:02:26 -05:00
Richard Feldman
5ffc405be9
Fix more dbg issues 2025-11-26 10:02:04 -05:00
Richard Feldman
da47b2ee1b
Update snapshots 2025-11-26 09:42:58 -05:00
Richard Feldman
f753b29c12
Fix MODULE NOT FOUND regression 2025-11-26 07:52:25 -05:00
Richard Feldman
60db542fa9
Fix some errors 2025-11-26 00:53:51 -05:00
Richard Feldman
de8df79d2d
Merge pull request #8446 from roc-lang/missing-method-err
Improve MISSING METHOD formatting
2025-11-26 00:22:11 -05:00
Richard Feldman
6dfed5bc46
Report violations for string ops in interpreter 2025-11-26 00:07:08 -05:00
Richard Feldman
87203e9c7f
Improve MISSING METHOD formatting 2025-11-25 23:34:54 -05:00
Richard Feldman
2db36ae5c1
Fix some type variable rendering logic 2025-11-25 23:22:58 -05:00
Richard Feldman
daffd248ed
Fix method subject type rendering 2025-11-25 23:12:42 -05:00
Richard Feldman
ee8990b1b1
More fixes 2025-11-25 23:02:15 -05:00
Richard Feldman
8f8252c009
Merge remote-tracking branch 'origin/main' into fix-try-eq 2025-11-25 22:48:02 -05:00
Richard Feldman
92d11a3d5d
wip 2025-11-25 22:02:35 -05:00
Richard Feldman
b837f9e9d3
Merge remote-tracking branch 'origin/main' into propagate_is_eq 2025-11-25 21:52:37 -05:00
Richard Feldman
bc632ef53a
Fix a bunch more stuff 2025-11-25 21:18:06 -05:00
Richard Feldman
5ffde5f550
Remove a bunch of string hacks 2025-11-25 21:03:22 -05:00
Luke Boswell
173c00993b
add Str.join_with builtin
Includes interpreter tests:
- basic join with two elements
- multiple elements with comma separator
- single element
- empty list
- roundtrip with split_on

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 12:54:53 +11:00
Luke Boswell
f95228dca1
add Str.split_on builtin with comprehensive tests
Includes interpreter tests in low_level_interp_test.zig for all new builtins:
- count_utf8_bytes: tests empty, ASCII, multi-byte UTF-8, emoji
- with_capacity: tests zero and non-zero capacity
- reserve: tests content preservation
- release_excess_capacity: tests content preservation
- to_utf8: tests length verification via List.len
- from_utf8_lossy: tests roundtrip with to_utf8
- split_on: tests count and actual substring content via List.first

Also updates Color.md snapshot now that to_utf8 is a valid method.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 12:52:37 +11:00
Richard Feldman
2c2e1e6ebc
Fix some comparisons 2025-11-25 20:50:26 -05:00
Luke Boswell
9b2e57eeef
add Str.from_utf8_lossy builtin
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 12:40:48 +11:00
Luke Boswell
8fcd482901
add Str.to_utf8 builtin
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 12:38:54 +11:00
Luke Boswell
e81c896d2a
add Str.release_excess_capacity builtin
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 12:34:34 +11:00
Richard Feldman
c3b268bd99
Update snapshots 2025-11-25 20:20:34 -05:00
Luke Boswell
0498063573
add Str.reserve builtin
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 12:11:51 +11:00
Luke Boswell
72e97ea431
add Str.with_capacity builtin
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 12:09:59 +11:00