Commit graph

381 commits

Author SHA1 Message Date
Richard Feldman
d65f40c6c7
Merge remote-tracking branch 'origin/main' into nested-builtins 2025-10-30 12:31:35 -04:00
Richard Feldman
f2a83c9ceb
Evaluate standalone annotations (as crashes) 2025-10-27 21:09:54 -04:00
Richard Feldman
4724e8501d
Remove a linear scan 2025-10-26 11:08:22 -04:00
Richard Feldman
fe5d447a89
Refactor out type_import_mapping from ModuleEnv 2025-10-26 10:16:13 -04:00
Richard Feldman
71be7d7a12
Merge remote-tracking branch 'origin/main' into nested-builtins 2025-10-26 09:17:31 -04:00
Richard Feldman
46170d333b
Delete obsolete envs() method 2025-10-26 08:28:45 -04:00
Richard Feldman
bc2523e0f7
zig fmt 2025-10-25 20:16:25 -04:00
Richard Feldman
13468e736c
Some more syncing tests and prod 2025-10-25 12:53:31 -04:00
Richard Feldman
7f7628a323
Respect imports in type pretty printing 2025-10-24 21:18:26 -04:00
Richard Feldman
09432d8703
More fixes 2025-10-24 20:51:13 -04:00
Richard Feldman
6e5d9a7922
Fix some tests 2025-10-24 19:50:10 -04:00
Richard Feldman
d6ff9f393c
for loops in the interpreter 2025-10-24 19:18:45 -04:00
Richard Feldman
106bf6830a
Consolidate builtins into Builtin.roc 2025-10-24 19:12:04 -04:00
Richard Feldman
de6f113184
Merge remote-tracking branch 'origin/main' into builtin-str2 2025-10-24 13:41:13 -04:00
Richard Feldman
7004ae7791
Fix test flakiness 2025-10-24 12:20:32 -04:00
Richard Feldman
4462c6e16d
Merge remote-tracking branch 'origin/main' into builtin-str2 2025-10-24 11:57:12 -04:00
Richard Feldman
fe8f191969
Merge remote-tracking branch 'origin/main' into static-dispatch-interpret 2025-10-24 10:42:01 -04:00
Richard Feldman
ed67ef454a
Fix tests 2025-10-24 10:21:24 -04:00
Richard Feldman
df8927a478
Remove unsed arg 2025-10-24 00:05:46 -04:00
Richard Feldman
72c3d64e09
Revise some test names 2025-10-24 00:04:20 -04:00
Richard Feldman
7f3cab2598
Clarify a comment 2025-10-24 00:02:14 -04:00
Richard Feldman
ef1cc065d0
Remove unnecessary cloning 2025-10-23 23:49:25 -04:00
Richard Feldman
a00eaf9256
Clean up some error cases 2025-10-23 23:45:13 -04:00
Richard Feldman
9ca9de8299
Clean up some hash map logic 2025-10-23 23:38:11 -04:00
Richard Feldman
909ef17d5f
Merge branch 'main' into static-dispatch-interpret 2025-10-23 23:09:50 -04:00
Richard Feldman
ceef009d66
Consolidate some more logic 2025-10-23 18:33:25 -04:00
Richard Feldman
0228bf8822
Centralize some logic 2025-10-23 16:08:26 -04:00
Richard Feldman
86e4d24917
Clean up some comments 2025-10-23 15:21:16 -04:00
Richard Feldman
352830bacc
Fix an interpreter builtins bug 2025-10-23 14:54:03 -04:00
Richard Feldman
5aafd27d26
Initial Str.roc implementation and wiring 2025-10-23 13:34:15 -04:00
Fabian Schmalzried
712bfb8ec0
replacing array_list.Managed with ArrayList with script help 2025-10-23 14:24:15 +00:00
Fabian Schmalzried
9be36d89a9
replacing array_list.Managed with ArrayList with script help 2025-10-23 14:23:32 +00:00
Fabian Schmalzried
0c9f85aeb5
Replace ArrayListUnmanaged with ArrayList 2025-10-23 14:21:30 +00:00
Anton-4
66eeec0171
Merge pull request #8315 from roc-lang/fix-segfault-chip8
fix segfault chip8 file
2025-10-22 16:56:50 +02:00
Richard Feldman
f202eda589
Fix some cross-module stuff 2025-10-21 21:33:11 -04:00
Richard Feldman
d2571d8c7a
Add static dispatch to interpreter 2025-10-21 21:00:57 -04:00
Richard Feldman
481f73f541
Remove backwards compatibility 2025-10-21 20:48:36 -04:00
Richard Feldman
0d82f3243b
Support multi-module indexing 2025-10-21 20:43:07 -04:00
Jared Ramirez
8f3b432b0b
Merge pull request #8310 from roc-lang/jared/push-zmzkwpttkoyy
Static dispatch tpye checking
2025-10-21 19:05:42 -04:00
Jared Ramirez
7cba0b8a73
Propagate static dispatch receiver or args error 2025-10-21 17:31:07 -04:00
Anton-4
5265f0ff55
fix segfault chip* file
• ReleaseFast recursion now resolves correctly by registering closure placeholders before capture evaluation:

  - Added DefInProgress tracking and initialization to keep a per-definition stack so we can reuse the in-progress closure instead of re-entering
    the same definition (src/eval/interpreter.zig:95, src/eval/interpreter.zig:193, src/eval/interpreter.zig:205, src/eval/interpreter.zig:3356).
  - Updated resolveCapture to consult this stack before falling back to evaluating a top-level definition, preventing infinite recursion, and to
    bracket that evaluation with stack push/pop when it is truly required (src/eval/interpreter.zig:1298).
  - Reworked closure construction to derive capture layouts from type information first, allocate the closure, register its placeholder, and
    only then materialize capture values, so recursive self-captures immediately see the placeholder instead of re-evaluating themselves (src/
    eval/interpreter.zig:1342).
  - Applied the same placeholder registration to bare lambdas so they benefit from the new recursion handling path (src/eval/
    interpreter.zig:1236).
2025-10-21 19:47:00 +02:00
Jared Ramirez
d2fbc1c07c
Infer static dispatch types in check 2025-10-21 08:48:30 -04:00
Anton-4
ef22101e4b
fix roc check ReleaseFast 2025-10-21 13:56:46 +02:00
Richard Feldman
f45a51314a
Fix module name deserialization 2025-10-20 09:05:02 -04:00
Richard Feldman
69796c7039
Avoid string comparisons 2025-10-19 23:16:38 -04:00
Richard Feldman
7c8a9687fd
Merge remote-tracking branch 'origin/main' into import-builtins 2025-10-19 21:55:32 -04:00
Richard Feldman
8d66502182
Fix playground 2025-10-19 20:37:39 -04:00
Richard Feldman
66aef9167c
Refactor some nullables 2025-10-19 19:11:19 -04:00
Richard Feldman
46e7b07de4
Fix some tests 2025-10-19 16:15:00 -04:00
Richard Feldman
fb5077bd28
Fix Zig 0.15.2 issues 2025-10-19 16:12:01 -04:00