Commit graph

543 commits

Author SHA1 Message Date
Luke Boswell
d61b2b0065
Merge remote-tracking branch 'remote/main' into more-fixxes 2025-12-01 12:42:58 +11:00
Luke Boswell
12ed464f88
WIP 2025-12-01 12:39:20 +11:00
Richard Feldman
fede35c9c2
Merge branch 'main' into bugfix 2025-11-30 18:27:11 -05:00
Richard Feldman
d757e9341c
Impove some tests 2025-11-30 18:25:50 -05:00
Richard Feldman
b06ff37811
Use a better approach 2025-11-30 15:45:53 -05:00
Richard Feldman
c78329e68b
Fix .to_str() bug, add some regression tests 2025-11-30 13:11:01 -05:00
Luke Boswell
6b2bbd4cc4
new snapshot fo List.contains 2025-12-01 04:33:02 +11:00
Andres Villegas
9a5eb3c9d0
Adds List.last and List.single builtins (#8509)
Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-11-30 14:03:31 +01:00
Anton-4
4dbe4edc60
fix ubuntu segfault fx tests (#8511) 2025-11-30 12:51:24 +01:00
Luke Boswell
e4dd29ae03
Update ModuleEnv size increase from adding two new fields to
CommonIdents for the ? operator desugaring
2025-11-30 14:34:43 +11:00
Luke Boswell
7926007d71
update snapshots 2025-11-30 14:31:39 +11:00
Luke Boswell
ad093b62b4
add TODO for test failure - type not propogating 2025-11-30 14:07:17 +11:00
Luke Boswell
a7545cd872
Merge remote-tracking branch 'remote/misc-fixes' into refcount-tracking 2025-11-30 13:50:30 +11:00
Richard Feldman
f565b2aac1
More fixes 2025-11-29 21:45:56 -05:00
Luke Boswell
6137a18e74
fix copyToPtr for strings 2025-11-30 13:42:47 +11:00
Luke Boswell
0a58002119
add tracing refcounts to fx test platform 2025-11-30 13:07:17 +11:00
Richard Feldman
cc3423a709
Implement ? (question mark) operator for error propagation
The ? operator now desugars expr? to a match expression that unwraps Ok
values and early returns Err values:

  match expr {
      Ok(#ok) => #ok,
      Err(#err) => return Err(#err),
  }

Implementation details:
- Use pre-interned identifiers (#ok, #err) for synthetic variables
- Use pre-interned Ok/Err tag names from CommonIdents
- Create applied_tag patterns for Ok and Err
- Build match branches with proper scope isolation
- Mark synthetic patterns as used to avoid unused variable warnings
- Create e_lookup_local, e_tag, and e_return expressions for branch bodies

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:06:33 -05:00
Richard Feldman
2d8f2e3744
Add tests 2025-11-29 20:02:01 -05:00
Richard Feldman
7d0a269fb7
Implement ? (question mark) operator for error propagation
The ? operator now desugars expr? to a match expression that unwraps Ok
values and early returns Err values:

  match expr {
      Ok($q_ok) => $q_ok,
      Err($q_err) => return Err($q_err),
  }

Implementation details:
- Canonicalize the inner expression
- Create synthetic identifiers for Ok/Err values ($q_ok, $q_err)
- Create applied_tag patterns for Ok and Err
- Build match branches with proper scope isolation
- Mark synthetic patterns as used to avoid unused variable warnings
- Create e_lookup_local, e_tag, and e_return expressions for branch bodies

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:02:01 -05:00
Luke Boswell
5afe2cf9d4
remove debug prints 2025-11-30 11:22:12 +11:00
Luke Boswell
d4595d7356
upgrade fx platform to track allocations andn leaks using gpa 2025-11-30 11:06:37 +11:00
Richard Feldman
2eb0f3e127
Merge pull request #8502 from roc-lang/fix-qualified-arrow
Fix qualified arrow function calls
2025-11-29 17:10:37 -05:00
Richard Feldman
c9612fef52
Merge pull request #8492 from roc-lang/platform-fixes
Some fixes for platforms
2025-11-29 16:10:19 -05:00
Richard Feldman
a4a8353ea7
Fix qualified arrow function calls 2025-11-29 16:06:58 -05:00
Richard Feldman
c4870f41bf
Merge pull request #8501 from roc-lang/fix-zst
Fix zst handling, add keep_if/drop_if
2025-11-29 13:27:15 -05:00
Richard Feldman
7e927b5bcc
Don't use List.len in snapshots 2025-11-29 12:54:28 -05:00
Richard Feldman
55b4510f4b
Fix zst handling, add keep_if/drop_if 2025-11-29 11:41:05 -05:00
Anton-4
53ebeef2d1
Merge branch 'main' into platform-fixes 2025-11-29 14:30:31 +01:00
Luke Boswell
499829c890
update snapshots now we actually check provides and requires correctly 2025-11-29 22:22:15 +11:00
Luke Boswell
de98d79bd5
cleanup platform provides and requires fields 2025-11-29 22:15:05 +11:00
Richard Feldman
34e38bc336
Merge pull request #8495 from roc-lang/fix-arrow
Fix arrow syntax
2025-11-29 04:39:08 -05:00
Richard Feldman
ceee483c13
Add arrow test 2025-11-28 22:32:04 -05:00
Richard Feldman
82824322a1
Fix arrow syntax 2025-11-28 21:49:11 -05:00
Richard Feldman
fd3c53bb62
Update tests 2025-11-28 20:24:24 -05:00
Richard Feldman
46dde34f42
Fix List.get/List.first on empty list 2025-11-28 20:17:28 -05:00
Anton-4
a98bc715b1
fix PlatformNotSupported linux 2025-11-28 20:41:36 +01:00
Luke Boswell
8558007290
Merge pull request #8487 from roc-lang/str-to-utf8
Add Str.from_utf8
2025-11-28 16:07:58 +11:00
Richard Feldman
d3406dab8e
Merge remote-tracking branch 'origin/main' into list-sort 2025-11-27 23:19:27 -05:00
Richard Feldman
f8c0d9ff2d
Merge remote-tracking branch 'origin/main' into str-to-utf8 2025-11-27 23:19:00 -05:00
Richard Feldman
0428537a23
Nest Utf8Problem under Str 2025-11-27 23:13:24 -05:00
Richard Feldman
5144370268
Merge remote-tracking branch 'origin/main' into str-to-utf8 2025-11-27 22:48:03 -05:00
Richard Feldman
0ba20ed7af
More rendering fixes 2025-11-27 22:27:32 -05:00
Richard Feldman
b883561723
Fix tag union rendering bug 2025-11-27 22:23:03 -05:00
Richard Feldman
67e8ea2e3e
Render records in snapshots 2025-11-27 22:19:41 -05:00
Richard Feldman
ef6bf7f7f9
Add List.sort 2025-11-27 22:17:27 -05:00
Richard Feldman
26b8631faa
Merge remote-tracking branch 'origin/main' into records-in-fold 2025-11-27 22:15:31 -05:00
Richard Feldman
d36fc1eb91
Add some Str.from_utf8 logic 2025-11-27 21:53:29 -05:00
Richard Feldman
ac4a20066c
Fix some List.fold bugs 2025-11-27 21:52:21 -05:00
Luke Boswell
37a245c29c
free allocated memory after interned 2025-11-28 13:12:48 +11:00
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