Commit graph

1661 commits

Author SHA1 Message Date
Richard Feldman
54a1a33ddf Improve unreachable error message 2021-10-05 21:19:08 -04:00
Folkert de Vries
fa4875da83
Merge pull request #1761 from rtfeldman/giesch
Add List.dropAt
2021-10-04 15:01:17 +02:00
Richard Feldman
1054095e1a
Merge pull request #1744 from rtfeldman/call-with-closure
Call with closure
2021-10-03 15:49:34 -05:00
Dan Knutson
3baff93a97 add first version of List.dropAt
* adds an implementation with no uniqueness/mutability
2021-10-03 13:55:11 -05:00
Folkert
0690633116 spec for List.reverse 2021-10-03 13:34:09 +02:00
Folkert
486f1d540f add specifications for fromUtf8 and toUtf8 2021-10-03 13:22:03 +02:00
Folkert
7e6a3431e2 trick morphic into updating a value that comes from the host 2021-10-03 00:07:38 +02:00
Folkert
5a8547f2d4 trick morphic into specializing closure callers 2021-10-03 00:05:17 +02:00
Kofi Gumbs
b32a42f05a Add Str.repeat builtin 2021-09-29 17:32:42 -04:00
Folkert
bd6e966833 clippy 2021-09-26 13:28:03 +02:00
Folkert
e9f2fb6193 actually define the arguments 2021-09-26 13:06:06 +02:00
Folkert
ed658ca2aa ugly but working fix for passing the closure env to a function 2021-09-26 13:05:58 +02:00
Folkert de Vries
f7c1a6e952
Merge pull request #1734 from rtfeldman/alias-analysis-const-list
alias analysis static list
2021-09-26 12:43:28 +02:00
Folkert
f43c10373f represent empty closure as unit (not void) 2021-09-24 15:41:00 +02:00
Folkert
f3fae8ea61 alias analysis static list 2021-09-23 23:18:05 +02:00
Folkert
3c53435e7e properly handle arguments to a closure caller 2021-09-22 21:16:50 +02:00
Brendan Hansknecht
0c6f8f308f Remove f16. It is not really supported by modern CPU hardware. 2021-09-21 16:51:47 -07:00
Folkert
3541d1fc6c formatting 2021-09-18 22:58:44 +02:00
Folkert
ada331567a respect int/float precision in pattern matchs 2021-09-18 22:55:34 +02:00
Folkert
77911cb68a store closure data for bool/byte again 2021-09-18 01:01:38 +02:00
Folkert
7416cc4e81 don't pass closure argument if not expected 2021-09-17 22:51:51 +02:00
Folkert
c68689a52b drop closure argument if the function does not use it 2021-09-17 22:43:09 +02:00
Folkert
02ffcc2096 Merge remote-tracking branch 'origin/trunk' into mix-function-closure 2021-09-17 20:45:15 +02:00
Folkert
e97df90bda don't wrap in LambdaSet 2021-09-15 23:26:13 +02:00
Folkert
7fe652ab19 add Development optimization option 2021-09-15 20:05:39 +02:00
Folkert
58ee7f0bfc fix argument order bug for mapWithIndex 2021-09-14 22:20:35 +02:00
Richard Feldman
f619932255
Merge pull request #1699 from rtfeldman/effect-after
Fix closures only monomorphizing once
2021-09-13 19:50:50 -04:00
Folkert
52d36cbe72 fix closure weirdness (skipping or infinite looping) 2021-09-13 22:50:48 +02:00
Folkert
350891468a add LambdaSet layout variant 2021-09-12 17:00:09 +02:00
Folkert
0b893eb972 remove alignment bump again 2021-09-12 14:01:41 +02:00
Folkert de Vries
575aaa1f0b
Merge pull request #1682 from rtfeldman/gen_wasm_join
joinpoints for the wasm backend
2021-09-10 16:23:34 +02:00
Folkert
daf0a0e02b Merge remote-tracking branch 'origin/trunk' into gen_wasm_join 2021-09-10 13:16:46 +02:00
Folkert de Vries
001e94a071
Merge branch 'trunk' into single-record-update 2021-09-09 12:12:41 +02:00
Folkert
fe83de39fb don't do aliasing in join points any more 2021-09-08 19:55:30 +02:00
Folkert
bdd07b0968 special-case properly 2021-09-08 13:10:44 +02:00
Folkert
0d1cc3844e don't special-case a single element record any more in updates 2021-09-08 12:59:38 +02:00
Folkert
0865826364 Merge remote-tracking branch 'origin/trunk' into wasm-base64 2021-09-06 22:17:52 +02:00
Folkert
b97c2d5d84 store literals in lists directly 2021-09-05 21:23:08 +02:00
Folkert
8e7aef314a add ListLiteralElement 2021-09-05 21:23:08 +02:00
Folkert
9713645806 only round up to 2*usize on 32-bit platforms 2021-09-04 16:00:22 +02:00
Folkert
1d17a21d1f higher alignment requirement on rocstr/roclist 2021-09-04 15:18:37 +02:00
Folkert
97577c92cf layout add allocation_alignment_bytes 2021-09-04 00:03:10 +02:00
Folkert
c6163a73f6 use environment size of pointer 2021-08-27 12:25:21 +02:00
Richard Feldman
18231876be
Drop comment 2021-08-26 21:39:46 -04:00
Richard Feldman
ffeaa1ac08
Merge branch 'trunk' into store-dec-as-str 2021-08-26 21:24:56 -04:00
Folkert
e95cf7dd5f use non-hardcoded alignment 2021-08-26 22:58:24 +02:00
Folkert
a070a7fcc7 add ptr_bytes to layout env 2021-08-26 22:12:44 +02:00
Folkert
af1051ef89 add ptr_bytes to the layout cache 2021-08-26 22:06:47 +02:00
Jared Ramirez
4b2a63fb30 Merge branch 'trunk' of https://github.com/rtfeldman/roc into store-dec-as-str 2021-08-26 11:23:17 -07:00
Jared Ramirez
8594f2efbe Change how decimals are stored in mono 2021-08-26 11:18:26 -07:00