Commit Graph

23866 Commits

Author SHA1 Message Date
Ayaz Hafiz
9b7c4bf367
Debug assertion should be negated 2023-03-25 15:01:40 -05:00
Anton-4
41d7ade5a3
Merge pull request #5161 from sad2project/patch-2
Fix typo
2023-03-24 19:24:23 +01:00
Anton-4
cae7d5eaba
ignore in different order
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-03-24 18:00:14 +01:00
Anton-4
c48c8f6d2c
added zig build lock 2023-03-24 17:24:10 +01:00
Anton-4
c7a3d48817
Merge remote-tracking branch 'upstream/main' into patch-2 2023-03-24 13:52:24 +01:00
Anton-4
0ac8cbbb97
Merge pull request #5184 from miniBill/main
Fix field names in example
2023-03-24 13:46:55 +01:00
Leonardo Taglialegne
0a9549798c
Fix field names in example
Signed-off-by: Leonardo Taglialegne <cmt.miniBill@gmail.com>
2023-03-24 00:38:40 +01:00
Folkert de Vries
24e2c66187
Merge pull request #5171 from roc-lang/i5169
Fix repl eval of Str.toDec
2023-03-23 09:20:30 +01:00
Brendan Hansknecht
bf41570648
Merge pull request #5153 from roc-lang/morphic-perf
switch morphic to better hashing algorithms
2023-03-22 21:42:21 +00:00
Folkert de Vries
ffaa4a1c1d
Merge pull request #5178 from roc-lang/i5089
Ranged number abilities are derived and compiled correctly
2023-03-22 22:21:18 +01:00
Folkert de Vries
b867a4b061
Merge pull request #5172 from roc-lang/i5162
Properly recast nested recursion pointers to their expanded layouts as needed
2023-03-22 22:20:33 +01:00
Brendan Hansknecht
87a78407ec
remove accidentally added perf test files 2023-03-22 13:41:41 -07:00
Brendan Hansknecht
72c36129a4
switch to iterators with some cloning to enable reserving HashSet size and avoiding the cost of rehashing 2023-03-22 13:41:40 -07:00
Brendan Hansknecht
9bfe2af259
switch away from drain and instead use into_iter 2023-03-22 13:41:40 -07:00
Brendan Hansknecht
3ef6d9846c
switch morphic to better hashing algorithms 2023-03-22 13:41:40 -07:00
Brendan Hansknecht
913f2e7ae2
Merge pull request #5120 from dankeyy/jvm-interop
JVM Interop
2023-03-22 20:02:05 +00:00
dankeyy
5599da5724
format+typos for ci 2023-03-22 20:56:10 +02:00
Ayaz Hafiz
240c1f35d6
Ranged number abilities are derived and compiled correctly
Closes #5089
2023-03-22 09:42:06 -05:00
Ayaz Hafiz
3603183817
Apply opaque pointer recasting to all recursive layouts 2023-03-22 08:21:09 -05:00
Ayaz Hafiz
3a960e7809
Properly recast nested recursion pointers to their expanded layouts as needed
When we load a structure with a nested recursive pointer, the pointer
may be loaded opaquely. We need to refine it to the concrete type wanted
by the layout.

This conversion can be removed after we upgrade to LLVM 15.

Closes #5162
2023-03-22 08:21:08 -05:00
Ayaz
6d8ddcc583
Merge branch 'main' into i5169
Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
2023-03-22 09:02:03 -04:00
Ayaz
63ef4a486f
Merge pull request #5173 from roc-lang/i5148 2023-03-22 08:59:39 -04:00
Ayaz Hafiz
41541b01e6
Pattern is exhaustive 2023-03-21 13:54:17 -04:00
Ayaz
6b3f3ba1a1
Merge pull request #5167 from roc-lang/fix-closure-captures-recursive
Ensure that closures inside recursive closures capture correctly
2023-03-21 13:53:33 -04:00
Ayaz Hafiz
4c2f8f3566
Support tuples in the repl
Closes #5148
2023-03-21 13:53:07 -04:00
Ayaz Hafiz
6ea6aef0db
Fix repl eval of Str.toDec
Closes #5169
2023-03-21 12:22:08 -04:00
Anton-4
9620f9e0e8
Merge pull request #5164 from yukiomoto/fix-tutorial-sample-code
Fix a field name in tutorial to match its context
2023-03-21 16:37:11 +01:00
Anton-4
9742fc0f9e
Merge pull request #5132 from itmuckel/docs-links-in-headers
Add github style links to docs sections
2023-03-21 15:22:07 +01:00
Richard Feldman
2276c78d9f
Merge pull request #5093 from roc-lang/glue-getters-rtfeldman
Glue for functions and closures
2023-03-21 08:12:19 -04:00
Ayaz Hafiz
700d2d1b31
Check in mono golden 2023-03-21 07:18:12 -04:00
Anton-4
f11bf90d6d
values name change 2023-03-21 11:34:10 +01:00
dankeyy
eb4dfbca5a
fixing embarrassing typos 2023-03-21 00:32:05 +02:00
dankeyy
2f6d82ad01
macos comments and typo cleanups 2023-03-21 00:12:56 +02:00
Ayaz Hafiz
e8a29d2df4
Ensure that closures inside recursive closures capture correctly
With a code like

```
thenDo = \x, callback ->
    callback x

f = \{} ->
    code = 10u16

    bf = \{} ->
        thenDo code \_ -> bf {}

    bf {}
```

The lambda `\_ -> bf {}` must capture `bf`. Previously, this would not
happen correctly, because we assumed that mutually recursive functions
(including singleton recursive functions, like `bf` here) cannot capture
themselves.

Of course, that premise does not hold in general. Instead, we should have
mutually recursive functions capture the closure (haha, get it) of
values captured by all functions constituting the mutual recursion.
Then, any nested closures can capture outer recursive closures' values
appropriately.
2023-03-20 17:44:59 -04:00
dankeyy
8fa421f35a
fix roc_panic to accept RocStr 2023-03-20 23:39:48 +02:00
dankeyy
8c468b15ce
rename RocList and make 0-len RocStr a small str 2023-03-20 23:31:03 +02:00
Anton-4
53c55d112d
forgot old basic-cli release 2023-03-20 20:16:49 +01:00
Anton-4
cdd0449391
re-enable nightly tests 2023-03-20 20:10:59 +01:00
Anton-4
b5ef4f1d99
workflow fixes 2023-03-20 20:07:31 +01:00
Anton-4
8da9af94f2
use latest basic-cli, better error messages 2023-03-20 20:06:36 +01:00
itmuckel
97f68974a9
Code Review Changes 2023-03-20 19:53:38 +01:00
itmuckel
cc70413e05
Add github style links to docs sections 2023-03-20 19:53:31 +01:00
Ayaz
ceacc1792d
Merge pull request #5165 from roc-lang/nixos-commit-signing
nixos commit signing tips
2023-03-20 19:33:26 +01:00
Anton-4
d477ccf0db
nixos commit signing
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-03-20 16:47:05 +01:00
Anton-4
43eb1b6ea2
ci is not triggering 2023-03-20 16:35:31 +01:00
Anton-4
6e0dc30797
fixes, build tar.br now 2023-03-20 16:32:54 +01:00
Folkert de Vries
9aeaa5ca08
Merge pull request #5158 from itmuckel/fix-typo
Fix typo in walk tutorial
2023-03-20 15:41:36 +01:00
Anton-4
5853ece0a8
basic-cli release prep 2023-03-20 15:30:15 +01:00
Anton-4
637c98b1f1
temp disable nightly testing 2023-03-20 13:44:16 +01:00
Anton-4
f619a35c7c
.rh and .rm adjustments, basic-cli nightly prep 2023-03-20 12:24:30 +01:00