Richard Feldman
523b18900f
Give RocDict a FromIterator instance
2022-09-19 12:44:13 -04:00
Richard Feldman
96f8818b24
Fix type mismatches in file.roc example
2022-09-19 10:27:44 -04:00
Richard Feldman
88ab511687
Report canonicalization errors on opaque names
2022-09-19 09:20:51 -04:00
Richard Feldman
f0a9bb0a96
Reorganize Program to use effects for getting args
2022-09-19 09:13:11 -04:00
Brian Carroll
e9e8904d10
Merge pull request #4057 from roc-lang/dll-export-asserts
...
dll export asserts
2022-09-18 14:49:31 +01:00
Brian Hicks
43978a419c
Merge pull request #3960 from BrianHicks/repr-for-dict
2022-09-17 21:37:04 -05:00
Folkert
daa7e72a2f
clarify comment
2022-09-18 01:00:36 +02:00
Folkert
270949aa07
Revert "add test for preprocessing on a zig host"
...
This reverts commit 5ee12aeb7d
.
2022-09-18 00:58:34 +02:00
Folkert
5ee12aeb7d
add test for preprocessing on a zig host
2022-09-18 00:58:27 +02:00
Folkert
4f51f18a08
remove a constant, add an assert
2022-09-18 00:32:55 +02:00
Folkert
c7bb2672a9
fix typo
2022-09-17 14:44:37 +02:00
Folkert
92514a1499
custom logic around finding 'forward' exports
2022-09-17 14:42:36 +02:00
Folkert
0da6484618
add some asserts about addresses in the dummy dll generation
2022-09-17 14:37:10 +02:00
Folkert de Vries
6a9a1330b6
Merge pull request #4035 from roc-lang/windows-linker-preprocess-exe
...
windows linker preprocess exe
2022-09-17 12:10:57 +02:00
Brian Carroll
b0c4f74109
Add some extra context clues to a name and a comment
2022-09-17 07:44:41 +01:00
Folkert de Vries
d9217caae5
Merge pull request #4048 from roc-lang/JanCVanB-patch-1
...
Fix/update path
2022-09-16 23:29:50 +02:00
Folkert
bdec61d5bb
fix bug in expect serialization of lambda sets
2022-09-16 22:19:55 +02:00
Ayaz Hafiz
d2cc1041aa
Unused import
2022-09-16 10:25:31 -05:00
Ayaz Hafiz
a81d4d4be2
Allow any numeric range to become a float
...
Currently things like `1 / 200` lead to a miscompilation because we type
`200` (and as a result, both `1` and the division result) as a ranged
number with width >= U8. During mono that forces the number to become an
`I64` because our logic was that a ranged number can only become a float
if it's at least as wide as an I8. But this is incorrect; as long as the
type is wrapped in `Frac` constructor and it's a ranged number (and not
a ranged int), it should become a fractional type.
```
» 1 / 200
0.005 : Float *
```
Closes #4047
2022-09-16 10:05:43 -05:00
Jan Van Bruggen
063464cb12
Fix/update path
...
I don't know if this file moved, but this is where it is now.
Signed-off-by: Jan Van Bruggen <JanCVanB@users.noreply.github.com>
2022-09-15 23:29:33 -06:00
Folkert
c00e458bad
refactor
2022-09-15 20:06:07 +02:00
Brian Hicks
6236be9416
fix formatting
2022-09-15 12:53:17 -05:00
Folkert
bad715e18a
add some objdump snippets to make clearer what is happening
2022-09-15 19:37:28 +02:00
Folkert
132ea07191
refactor out a constant
2022-09-15 19:37:12 +02:00
Ayaz Hafiz
8cd4281173
Complex bitcast recursive tag union pointers when we need them to be opaque
...
Resolves a discussion on Zulip: https://roc.zulipchat.com/#narrow/stream/231635-compiler-development/topic/When.20recursive.20structs.20aren't.20recursive
2022-09-14 20:58:54 -05:00
Folkert de Vries
4b0342ef34
Merge pull request #4039 from roc-lang/fix-expect-oom
...
Copy list values from the correct offset when reporting expects
2022-09-14 22:51:57 +02:00
Brian Hicks
335a8372c5
implement Drop for RocDictItem
2022-09-14 15:39:46 -05:00
Brian Hicks
98a8cc02e6
follow Roc's layout rules for RocDictItem
2022-09-14 15:36:54 -05:00
Ayaz Hafiz
fa700259aa
Clippy
2022-09-14 14:53:00 -05:00
Ayaz Hafiz
c4a3a8bd31
Copy list values from the correct offset when reporting expects
...
Co-authored-by: Folkert de Vries <folkert@folkertdev.nl>
2022-09-14 14:28:56 -05:00
Folkert de Vries
c218543408
Merge pull request #4033 from roc-lang/i4028
...
Span body of last branch in exhaustiveness checking
2022-09-14 21:24:23 +02:00
Folkert
1b74dec8ac
remove test
2022-09-14 21:19:39 +02:00
Folkert
cead509255
comment out test
2022-09-14 21:19:25 +02:00
Ayaz Hafiz
c9e73b6761
Change example to be a calculator
2022-09-14 12:06:35 -05:00
Folkert
d8c0c176d8
comment
2022-09-14 18:31:27 +02:00
Ayaz Hafiz
e39fccb0fa
Add cli run test
2022-09-14 11:26:52 -05:00
Ayaz Hafiz
6a83babaf3
Don't write extra newline if it's already there
2022-09-14 11:26:52 -05:00
Ayaz Hafiz
44772b8f3d
Don't add to host exposed during roc test
2022-09-14 11:26:50 -05:00
Ayaz Hafiz
0c2b0b1bcc
Unwrap recursion var
2022-09-14 11:26:49 -05:00
Ayaz Hafiz
31b894d027
Remove region when normalizing expects
2022-09-14 11:26:48 -05:00
Ayaz Hafiz
274f40e4e1
Print on unreachable
2022-09-14 11:26:47 -05:00
Ayaz Hafiz
a8282f36c3
Handle values that are functions in expects
2022-09-14 11:26:46 -05:00
Folkert
2e8952d8a7
windows PE preprocessing of the .exe
2022-09-14 18:02:01 +02:00
Richard Feldman
21f3d4b8bc
Merge pull request #3990 from roc-lang/pass-args-to-cli
...
Pass args from cli platform to app
2022-09-14 08:43:13 -07:00
Anton-4
f1e799c6da
removed debug stuff, legacy linker for args test
2022-09-14 16:25:24 +02:00
Anton-4
412e7efdc8
use legacy linker for cli_run tests
2022-09-14 13:45:16 +02:00
Brian Carroll
6613e9d347
Merge pull request #4029 from roc-lang/disable-web-repl-until-loaded
...
Disable Web REPL input until the compiler .wasm has loaded
2022-09-14 05:36:31 +01:00
Richard Feldman
ac68d75eec
Merge pull request #3989 from roc-lang/fix-glue-segfault
...
Fix glue segfault for newtype wrappers around recursive tag unions
2022-09-13 13:47:51 -07:00
Ayaz Hafiz
42633c1f96
Span body of last branch in exhaustiveness checking
...
Closes #4028
2022-09-13 16:24:59 -04:00
Folkert de Vries
3ee3f23836
Merge pull request #3971 from roc-lang/dependabot/cargo/bumpalo-3.11.0
...
Bump bumpalo from 3.10.0 to 3.11.0
2022-09-13 21:00:00 +02:00