Commit graph

413 commits

Author SHA1 Message Date
Folkert
7735ca21ea cleanup 2021-10-20 17:03:55 +02:00
Folkert
f8dec9453b make things static again 2021-10-20 16:58:25 +02:00
Folkert
63b1aaad4e hook up polymorphic zig builtins 2021-10-20 16:43:39 +02:00
Folkert
ab34c2a55e generalize all number intrinsics 2021-10-20 16:21:57 +02:00
Folkert
9fc832d8ef new intrinsic approach 2021-10-20 15:18:02 +02:00
Folkert
bd98ac6dc7 Merge remote-tracking branch 'origin/trunk' into divTruncate 2021-10-19 23:36:03 +02:00
Folkert
78c49d3095 support intrinsics/builtins for more integer types 2021-10-19 21:41:38 +02:00
Folkert
031c7cc2e2 Merge remote-tracking branch 'origin/trunk' into mono-lowlevel 2021-10-18 11:11:04 +02:00
Folkert
6cc8f8624c a way forward 2021-10-18 11:09:38 +02:00
Richard Feldman
6e0341890d
Merge pull request #1786 from rtfeldman/list-non-recursive-rc
make list inc/dec non-recursive (except when freeing the list)
2021-10-17 18:13:24 -04:00
Folkert
dbf650f7ab fixes 2021-10-17 21:14:30 +02:00
Folkert
a4f7ddb1f5 rename 2021-10-17 20:45:49 +02:00
Folkert
f236ae0a6a cleanup 2021-10-17 19:38:12 +02:00
Folkert
4152519bfb formatting & catch zig overflow error 2021-10-17 18:03:40 +02:00
Chelsea Troy
0cc6e44d35
Thread through the divCeil implementation from Zig:
+ OPEN QUESTION: Evidently the Zig implementation can throw an overflow error. Do we want to do something in Roc to fix this?
2021-10-17 10:46:16 -05:00
Folkert
9763f9b51b WIP 2021-10-17 16:08:41 +02:00
Folkert
7773cf9b4d clippy 2021-10-14 20:12:43 +02:00
Folkert
19eadbfe70 make list inc/dec non-recursive (except when freeing the list) 2021-10-14 19:57:23 +02:00
Folkert
94e8c62613 make things compile, base64 has a memory leak 2021-10-06 22:57:11 +02: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
47c52b0220
Merge pull request #1737 from rtfeldman/fix-repl-sum-crash
repl cannot handle some functions
2021-10-03 15:52:26 -05:00
Dan Knutson
65821d6a9f remove giesch/todo tags, add List.drop doc 2021-10-03 13:55:11 -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
13d480d5f3 spec for list append 2021-10-03 13:27:47 +02:00
Folkert
018348bd83 make Str.fromUtf8 in-place 2021-10-03 12:13:17 +02:00
Folkert
9e97a09a87 check if exposed function is defined already 2021-10-03 00:57:54 +02:00
Folkert
dbb8acbe67 add in-place List.swap 2021-10-03 00:25:35 +02:00
Folkert
3d7b42deba better error message for when morphic did not specialize 2021-10-03 00:17:15 +02:00
Folkert
fa57ff88a5 disable list of constants in read-only section 2021-10-03 00:16:52 +02:00
Kofi Gumbs
2f574ea75e Remove extraneous .into() 2021-09-29 22:41:30 -04:00
Kofi Gumbs
b32a42f05a Add Str.repeat builtin 2021-09-29 17:32:42 -04:00
Folkert
c11d89c4bf fix typo 2021-09-24 15:47:53 +02:00
Folkert
34a25408c3 fix issue 2021-09-24 14:27:38 +02:00
Folkert
cfdda10df4 fix argument passing 2021-09-22 21:23:53 +02:00
Richard Feldman
33d9077989
Merge pull request #1720 from rtfeldman/direct-return-known-types
return values from roc
2021-09-21 21:43:51 -04:00
Brendan Hansknecht
0c6f8f308f Remove f16. It is not really supported by modern CPU hardware. 2021-09-21 16:51:47 -07:00
Folkert
a4903ccf81 fix repl 2021-09-20 23:27:20 +02:00
Folkert
e319d1e758 make roc main return values, instead of write them into pointer 2021-09-19 22:05:48 +02:00
Folkert
c5eeaab2c2 remove callresult from cli examples 2021-09-19 18:34:42 +02:00
Folkert
7fe652ab19 add Development optimization option 2021-09-15 20:05:39 +02:00
Folkert
bd7ce52e26 only unwrap lambda set at the last moment 2021-09-14 22:20:14 +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
c0cfd6ac16 make conversion a cast again 2021-09-12 14:28:44 +02:00
Folkert
0b893eb972 remove alignment bump again 2021-09-12 14:01:41 +02:00
Richard Feldman
0dd1395331
Merge pull request #1686 from rtfeldman/refcounting-cleanup
Refcounting cleanup
2021-09-11 13:33:36 -04:00
Folkert
cf5bb7ae6e cleanup 2021-09-11 13:56:06 +02:00
Folkert
eeb3c26e16 decref for dict/set 2021-09-10 22:31:39 +02:00