Commit Graph

20467 Commits

Author SHA1 Message Date
Ayaz Hafiz
0f0c02965a
pattern_presence expects type index 2022-10-24 17:49:02 -05:00
Ayaz Hafiz
0990eda0cb
equal_pattern_types takes type index 2022-10-24 17:41:13 -05:00
Ayaz Hafiz
c53e08f63c
equal_types_with_storage takes type index 2022-10-24 17:35:09 -05:00
Ayaz Hafiz
cca5f53e98
equal_types_var requires a type index 2022-10-24 17:30:04 -05:00
Ayaz Hafiz
91eb9aaea4
Rename variables 2022-10-24 14:30:50 -05:00
Ayaz Hafiz
83e35fa40d
Get rid of another clone 2022-10-24 14:29:05 -05:00
Ayaz Hafiz
0b8ac07287
Get rid of more type clones 2022-10-24 14:25:19 -05:00
Ayaz Hafiz
7c3fe5bc44
Remove some type clones 2022-10-24 14:11:53 -05:00
Ayaz Hafiz
55d7f3f658
Require type and expected indices in equal_types constraints 2022-10-24 14:05:19 -05:00
Ayaz Hafiz
35a4781045
Get rid of redundant references 2022-10-24 13:13:08 -05:00
Ayaz Hafiz
9b24205906
Emplace variables made from types in expectations 2022-10-24 13:11:35 -05:00
Ayaz Hafiz
04a3f1c00e
Use a helper to emplace type cells 2022-10-24 12:07:00 -05:00
Ayaz Hafiz
d3e14550d8
Leave variables behind when converting Types to variables
This is part one of addressing the present issues with emplacing type
directly where type variables should be reused. Now, when an
`Index<Type>` is converted to a variable in solving, we leave the
converted variable in the `Type`'s place. Specifically, we keep an index
to a `Cell<Type>`.

Note that this transformation is only temporary, it will be removed once
we merge this with the `Type` SoA representation, but it is needed in
the meantime as I transform the `Constrain` API to get rid of
type-emplacement.
2022-10-24 11:42:35 -05:00
Ayaz
50fac9cc9e
Merge pull request #4393 from roc-lang/simple-signing
simple signing workaround
2022-10-24 08:06:00 -05:00
Folkert de Vries
8fd2a33a7b
Merge pull request #4395 from keerthanak-tw/main
Add how to sign unsigned commits section
2022-10-24 14:39:38 +02:00
Anton-4
14710e1dc9
minor changes
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-24 13:47:40 +02:00
Keerthana Kasthuril
38409221b6
Add how to sign unsigned commits section
Signed-off-by: Keerthana Kasthuril <76804118+keerthanak-tw@users.noreply.github.com>
2022-10-24 17:01:34 +05:30
Folkert de Vries
e7bbef04e5
Merge pull request #4385 from nickgravgaard/main
Change TUI platform to call view on initial model
2022-10-24 12:29:53 +02:00
Anton-4
a8dda54a2b
simple signing workaround
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-24 11:34:33 +02:00
Nick Gravgaard
6d02332b62
Change TUI platform to call view on initial model
Signed-off-by: Nick Gravgaard <nick@nickgravgaard.com>
2022-10-24 09:44:49 +01:00
Anton-4
0286524892
Merge pull request #4289 from cjduncana/dict-testing
Add Dict module to the testing CI
2022-10-24 09:12:07 +02:00
Folkert de Vries
a4ed5a582d
Merge pull request #4378 from roc-lang/windows-resize-reloc-section
resize reloc section when required
2022-10-23 20:05:11 +02:00
Christopher Duncan
a627a47709
Add Dict module to the testing CI 2022-10-23 08:37:59 -04:00
Richard Feldman
f734cc11c2
Merge pull request #4364 from travisstaloch/str-graphemes
Str graphemes
2022-10-22 22:31:50 -07:00
Travis Staloch
c2dbed2ff5
str-graphemes: rework and add some zig tests
- rework strGraphemes() to use a mutable slice and keep track of just
`last_codepoint_len`.
- add zig tests for empty string, ascii, utf8, ascii+utf8+emoji
2022-10-22 19:29:49 -07:00
Prajwal S N
df7e4eea7e
builtin(str): implement Str.graphemes
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2022-10-22 19:29:49 -07:00
Folkert de Vries
be624f8bcb
Merge pull request #4359 from roc-lang/i4313
Disallow typing optional fields when required fields are annotated
2022-10-23 01:20:55 +02:00
Folkert de Vries
bcf2fc340d
Merge pull request #4350 from roc-lang/i4348
Use runtime representation of values when building structural eq
2022-10-23 01:19:17 +02:00
Folkert de Vries
4a5c8fd7ae
Merge pull request #4303 from roc-lang/i4291
Make sure self-recursive checks only happen after typechecking
2022-10-23 01:18:56 +02:00
Folkert
c55a3e7b37
resize reloc section when required 2022-10-22 14:49:59 +02:00
Richard Feldman
eeeab8c6d2
Merge pull request #4374 from roc-lang/fix-examples
Fix examples that are failing to build
2022-10-21 18:20:51 -07:00
Richard Feldman
7f2b5fbe55
Merge pull request #4376 from roc-lang/windows-execve
use execve on windows!
2022-10-21 18:08:33 -07:00
Folkert
989784620d
use execve on windows! 2022-10-22 01:23:41 +02:00
Brendan Hansknecht
7bbf1fb9c5
fix examples that are failing to build 2022-10-21 13:57:22 -07:00
Folkert de Vries
863d0ab63e
Merge pull request #4353 from roc-lang/refine-relocation-location
refine relocation location
2022-10-21 12:16:31 +02:00
Brendan Hansknecht
9f8bf3f513
Merge pull request #4361 from roc-lang/send-safe-roc-list
Send safe roc list
2022-10-21 08:23:05 +00:00
Ayaz
a7dbe765c2
Merge pull request #4367 from roc-lang/remove-hashI
Remove addI* variants from Hash
2022-10-20 15:10:28 -05:00
Brendan Hansknecht
e27b874331
update test to use HASH_HASH_I* instead of HASH_ADD_I* 2022-10-19 18:22:44 -07:00
Ayaz Hafiz
f826ff1a71
Remove addI* variants from Hash
These are trivially fulfilled by converting a signed int to its unsigned
repr and hashing that.
2022-10-19 14:24:21 -05:00
Brendan Hansknecht
8804b28be0
expand safety doc comment 2022-10-19 12:09:05 -07:00
Brendan Hansknecht
6ebfcc8fa1
add clone to SendSafe* types 2022-10-19 11:54:17 -07:00
Folkert
d0492327e8
Revert "re-enable"
This reverts commit 644a12e7aa.
2022-10-19 17:41:46 +02:00
Folkert
644a12e7aa
re-enable 2022-10-19 16:52:51 +02:00
Richard Feldman
b6a282b0ce
Merge pull request #4337 from joshuawarner32/when-indentation-1
Allow parsing `when` cases with python-like indentation
2022-10-19 07:03:05 -07:00
Folkert
4de148456c
stop updating reloc data directory 2022-10-19 15:32:34 +02:00
Folkert
e2128a55f4
add assert to check we fit in the reloc section 2022-10-19 15:12:51 +02:00
Folkert
a572622ff7
update basereloc dir size 2022-10-19 14:12:41 +02:00
Anton-4
bd7b1a5616
Merge pull request #4357 from lukewilliamboswell/main
added Comments section for tutorial.md
2022-10-19 13:06:53 +02:00
Brendan Hansknecht
24cd78fe7e
add tests and expose types 2022-10-18 23:35:15 -07:00
Brendan Hansknecht
58f4afd9f0
add a wrapper for RocStr and RocList that is Send safe 2022-10-18 23:00:43 -07:00