Ayaz Hafiz
51fd7711e7
Remove dead code
2022-07-14 16:16:30 -04:00
Ayaz Hafiz
6611cce22c
Prefer keeping recursion var when merging tag union payloads
2022-07-14 16:16:30 -04:00
Ayaz Hafiz
7433cc5c95
Generate alias type size for ZATs
2022-07-14 16:16:25 -04:00
Ayaz Hafiz
3c4a55f4c1
Fix layout of ZATs when they end up with a closure argument
2022-07-14 16:16:17 -04:00
Ayaz Hafiz
70c77596a3
Apply unnecessary lambda set arg correction
2022-07-14 12:38:53 -04:00
Ayaz Hafiz
e2326efd0b
Include real_var when checking occurs
...
The real_var can have occurs that aren't represented by the type
variables, especially in the presence of recursive checks.
2022-07-14 12:26:34 -04:00
Ayaz Hafiz
20c2c308fa
Include ZATs in host exposed aliases
2022-07-14 12:26:11 -04:00
Ayaz Hafiz
161c2101a7
Properly link lambda set variables in host exposed aliases
2022-07-14 12:20:39 -04:00
Folkert de Vries
cab1ec0be5
Merge pull request #3532 from rtfeldman/3504
...
Wrap opaque types in the repl with the appropriate opaque wrapper
2022-07-14 10:04:41 +02:00
Richard Feldman
a812369299
Merge pull request #3510 from rtfeldman/fix-loading
...
Fix some file loading bugs
2022-07-13 21:30:39 -04:00
Richard Feldman
da7c7ac5f2
Merge pull request #3525 from rtfeldman/3522
...
Num.toStr for f32, f64, Dec
2022-07-13 21:30:05 -04:00
Ayaz Hafiz
9b7950f765
Wrap opaque types in the repl with the appropriate opaque wrapper
...
Closes #3504
2022-07-13 17:46:04 -04:00
Ayaz Hafiz
b50974e4ee
Update zig tests
2022-07-13 17:20:47 -04:00
Richard Feldman
b734986fc8
Use config_shorthand of "" but never a shorthand of ""
...
This was breaking bindgen's ability to work on some platform modules.
2022-07-13 17:03:32 -04:00
Richard Feldman
77afe0c1f1
Merge pull request #3503 from rtfeldman/string-memory-problems
...
String memory problems
2022-07-13 15:17:28 -04:00
Richard Feldman
af39bc5369
Revert "Don't invent shorthands"
...
This reverts commit 8b6d55df01
.
2022-07-13 13:24:48 -04:00
Richard Feldman
bf63c45b46
Compute src_dir from original filename
...
This fixed a bug where bindgen was providing cwd() for src_dir,
but actually the src_dir should have been based on the filename.
This prevents that problem from happening in the future!
2022-07-13 12:49:06 -04:00
Richard Feldman
8b6d55df01
Don't invent shorthands
2022-07-13 12:42:43 -04:00
Ayaz Hafiz
980c3f1421
Use decimal formatting for float Num.toStr
2022-07-13 12:35:49 -04:00
Ayaz Hafiz
b7b9227675
Num.toStr Dec for wasm
2022-07-13 12:24:07 -04:00
Richard Feldman
2efb605d68
Update mono tests
2022-07-13 12:20:16 -04:00
Richard Feldman
e744cd2a33
gen capacity operations in LLVM
2022-07-13 12:19:38 -04:00
Richard Feldman
af14efea91
Fix some comments
2022-07-13 12:19:38 -04:00
Richard Feldman
55ca75a37f
Update wrapper docs
2022-07-13 12:19:38 -04:00
Richard Feldman
aad922251d
Use Builtin::WRAPPER_* in gen_wasm
2022-07-13 12:19:38 -04:00
Richard Feldman
25facfa9c6
Expose capacity builtins
2022-07-13 12:19:37 -04:00
Ayaz Hafiz
66b8d145a9
Support Num.toStr for dec
2022-07-13 12:13:21 -04:00
Ayaz Hafiz
b7c312d449
Support Num.toStr for f32, f64
2022-07-13 12:13:01 -04:00
Folkert
9a51737a47
fix use after free
2022-07-13 10:34:30 +02:00
Richard Feldman
5f430034f3
roc format List.roc
2022-07-12 22:04:55 -04:00
Richard Feldman
455dde1ba4
Merge remote-tracking branch 'origin/trunk' into string-memory-problems
2022-07-12 22:03:49 -04:00
Ayaz Hafiz
8393778159
Typo
2022-07-12 21:15:33 -04:00
Ayaz Hafiz
6985b2b6a1
Pretty print opaque wrap functions
2022-07-12 21:15:14 -04:00
Ayaz Hafiz
f1a6ea6a40
Typecheck and compile opaque wrapping functions
...
This enables you to write something like
```
A := U8
List.map [1, 2, 3] @A
```
which will be compiled as if it was `List.map [1, 2, 3] \x -> @A x`.
Closes #3499
2022-07-12 18:38:03 -04:00
Folkert de Vries
d889f1fda9
Merge pull request #3498 from rtfeldman/no-line-numbers-in-runtime-error-function
...
Remove compiler-file/line-dependent runtime error messages
2022-07-12 23:04:06 +02:00
Folkert de Vries
846bab7425
Merge pull request #3493 from rtfeldman/deep-copy-var-in-body
...
mono copy: deep copy all vars in an expr
2022-07-12 23:02:27 +02:00
Folkert
bc24841921
Str.fromUtf8Range: take list argument as owned; make sure it's decremented in the small string case
2022-07-12 22:57:48 +02:00
Folkert
32207beedf
List.sublist: make sure input list is decremented if slice length is 0
2022-07-12 22:51:44 +02:00
Ayaz Hafiz
94142bf474
Remove compiler-file/line-dependent runtime error messages
...
This will help avoid the diff changes we've been running into often when
changes to mono line numbers change test results.
2022-07-12 15:17:19 -04:00
Richard Feldman
f5f137982c
Merge pull request #3432 from rtfeldman/fmt-multiline-when
...
Format multiline `when` branches
2022-07-12 12:54:11 -04:00
Ayaz Hafiz
669d69c4cf
Clippy
2022-07-12 11:29:11 -04:00
Ayaz Hafiz
e626bac931
Be extremely aggressive about inlining
2022-07-12 11:00:05 -04:00
Ayaz Hafiz
0274691813
Preserve uls_of_var when copying types
2022-07-12 10:58:21 -04:00
Ayaz Hafiz
4707b11727
Clone tag and field names across subs, add a test
2022-07-12 10:47:44 -04:00
Ayaz Hafiz
c915707c83
Get rid of arenas
2022-07-12 10:07:34 -04:00
Ayaz Hafiz
46fdda333f
Use a trait to do copies
2022-07-12 10:02:11 -04:00
Ayaz Hafiz
c3b2e9aa97
Add copy expr test
2022-07-12 09:30:51 -04:00
Ayaz Hafiz
7031d26299
mono copy: copy all vars in deep expr
2022-07-12 09:18:43 -04:00
Richard Feldman
c61795197f
Merge pull request #3478 from rtfeldman/toplevel-expect-captures
...
toplevel expect captures
2022-07-12 08:58:19 -04:00
Richard Feldman
f5fac8230f
Prune some unused dependencies
2022-07-11 20:51:41 -04:00