Commit Graph

23817 Commits

Author SHA1 Message Date
Ayaz Hafiz
e5fcb05a2d
Implement derivation keys for tuple encoders 2023-03-22 11:19:47 -05:00
Ayaz Hafiz
a361c4cfc1
Add the tuple ability member to EncoderFormatting 2023-03-22 11:14:46 -05:00
Ayaz Hafiz
8a7d9f8f23
Better debugging when lambda set region is missing 2023-03-22 11:13:00 -05:00
Ayaz Hafiz
72c9b76f23
Gen Eq test for tuple 2023-03-22 10:55:15 -05:00
Ayaz Hafiz
143f39d273
Gen tests for derivation of tuple hash 2023-03-22 10:53:14 -05:00
Ayaz Hafiz
c32bc5f152
Offset tuple element indices correctly when importing 2023-03-22 10:52:31 -05:00
Ayaz Hafiz
8f7b6aaeaa
Implement hash derivation for tuple 2023-03-22 10:28:13 -05:00
Ayaz Hafiz
66fb2f476e
Pretty-print tuple access 2023-03-22 10:27:49 -05:00
Ayaz Hafiz
d9c7010104
Add derive-key tests for derived hash 2023-03-22 10:19:14 -05:00
Ayaz Hafiz
e6cac71ca5
Add support for hash key of tuples 2023-03-22 10:09:57 -05:00
Ayaz Hafiz
f4f9ae7a5d
Implement obligation checking of tuples for all abilities 2023-03-22 10:03:01 -05:00
Ayaz
63ef4a486f
Merge pull request #5173 from roc-lang/i5148 2023-03-22 08:59:39 -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
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
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
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
Anton-4
3eda00cb62
Merge pull request #5144 from lukewilliamboswell/static-site
Add code file import feature for `static-site-gen` platform
2023-03-20 11:16:57 +01:00
Anton-4
28a8637927
Merge pull request #5160 from roc-lang/style-update
some style changes
2023-03-20 10:23:27 +01:00
itmuckel
d6a4564cd2
Fix typo in walk tutorial 2023-03-19 17:47:44 +01:00
Richard Feldman
00f1ca14c8
Merge pull request #5146 from roc-lang/ts-interop
TypeScript interop example
2023-03-19 11:35:19 -04:00
Richard Feldman
e8af38893b
Set refcount in init_rocbytes 2023-03-19 09:48:31 -04:00
Richard Feldman
8b65402e6c
Drop unused import 2023-03-19 09:26:45 -04:00
Yuki Omoto
3c95849914
Fix a sample code in tutorial to match its context 2023-03-19 21:21:34 +09:00
Luke Boswell
3832228a13
update to use file: prefix 2023-03-19 14:10:22 +11:00
Richard Feldman
dfcf086910
Rename decref_list 2023-03-18 18:36:30 -04:00
Richard Feldman
6845dae2b2
Handle seamless slices when decrementing RocStr 2023-03-18 15:14:24 -04:00
Richard Feldman
f862540c65
Account for seamless slices in C roc_str_len 2023-03-18 12:45:07 -04:00
Richard Feldman
75ca8816c3
Refactor out some C helper functions 2023-03-18 10:02:47 -04:00
Anton-4
9c0d2a2eb0
some style changes 2023-03-18 14:22:52 +01:00
Anton-4
c536c70238
Merge pull request #5159 from swork1/better-mobile-support
fix mobile support for button container
2023-03-18 12:37:22 +01:00
Richard Feldman
05f63573c2
Make some files POSIX compliant (end in newline) 2023-03-17 21:55:21 -04:00
Richard Feldman
6f8cfc6229
Free Roc heap allocations in ts interop example 2023-03-17 21:49:21 -04:00