Commit graph

951 commits

Author SHA1 Message Date
Folkert
bb12b39fc7 cleanup 2021-01-22 16:18:19 +01:00
Folkert
d8fd2d670d don't use alloca in inc/dec 2021-01-22 15:30:43 +01:00
Folkert
6344771a0c optimize refcount inc/dec (tail recursion) 2021-01-22 15:24:49 +01:00
Folkert
191dee73df clippy 2021-01-22 13:54:35 +01:00
Folkert
cb8de4ac04 move check out of main loop 2021-01-22 13:52:19 +01:00
Folkert
690f3ee5c9 simplify recursive case 2021-01-22 13:18:27 +01:00
Folkert
155c9fd9b0 pass the refcount value at runtime 2021-01-22 13:13:12 +01:00
Chadtech
9d776a2de5 rename Dict.size to Dict.len 2021-01-21 23:16:25 -05:00
Chadtech
609bb21fad Merge branch 'trunk' of github.com:rtfeldman/roc into dict 2021-01-21 22:46:47 -05:00
Folkert
9c90f27bfd use correct Symbol 2021-01-22 01:34:37 +01:00
Folkert
42f63ceac1 update other places 2021-01-22 01:17:57 +01:00
Folkert
7c22201344 unify inc/dec list 2021-01-22 00:51:28 +01:00
Folkert
af5c75ea39 unify inc/dec str 2021-01-22 00:45:00 +01:00
Folkert
93f0e732a4 unify inc/dec builtin 2021-01-22 00:35:59 +01:00
Folkert
2b887f64b4 unify inc/dec layout 2021-01-22 00:30:02 +01:00
Folkert
946ce9c292 implement incrementing by a variable number 2021-01-22 00:21:23 +01:00
Folkert
99058e7203 add inc field to mode 2021-01-22 00:18:35 +01:00
Folkert
15cbadf652 add inc field to Inc instruction 2021-01-22 00:16:20 +01:00
Folkert
df8ab829a6 fix one element struct unpacking
I think this broke when we decided that we want to not drop empty fields from layouts?
2021-01-21 21:40:04 +01:00
Folkert
ef89ff15a1 make match exhaustive 2021-01-21 20:37:05 +01:00
Folkert
2e52ed68a4 increment struct layouts ... 2021-01-21 20:21:45 +01:00
Folkert
5ec354229a refactor recursive tag refcounting 2021-01-20 22:19:12 +01:00
Folkert
b167098275 optimize bitcast generation 2021-01-19 16:46:02 +01:00
Folkert
0ac5a16e86 fix bug: incorrect block_of_memory layout 2021-01-18 23:41:42 +01:00
Folkert
cb0c5ef751 make bitcast more descriptive 2021-01-18 22:06:14 +01:00
Chadtech
bade5dd48d Dictionary rust modules 2021-01-18 15:26:21 -05:00
Chadtech
520dcfbaca Wiring up dictionary and hash rust code to their zig counterparts 2021-01-18 15:25:37 -05:00
Folkert
4f4d555197 fix complex Switch bug 2021-01-18 01:30:57 +01:00
Folkert
0b4af7e499 fix switching on the tag id 2021-01-17 21:12:46 +01:00
Folkert
8cd744342b Merge remote-tracking branch 'origin/trunk' into nullable-tags 2021-01-17 02:37:57 +01:00
Folkert
cf0b1ba206 clippy 2021-01-17 02:29:52 +01:00
Folkert
c1265574b3 drop the tag! 2021-01-17 02:26:04 +01:00
Folkert
897bc41b6b prepare to drop tag 2021-01-17 01:17:26 +01:00
Folkert
c1cf43eda3 simple implementation of NullableUnwrapped 2021-01-17 00:38:30 +01:00
Folkert
2ce35cca28 fix block_of_memory creation for recursive layouts 2021-01-17 00:38:30 +01:00
Folkert
c8970bbe45 remove field 2021-01-17 00:38:30 +01:00
Chadtech
c7f6de2afe Merge branch 'trunk' of github.com:rtfeldman/roc into dict 2021-01-16 14:55:09 -05:00
Folkert
de666c575f refactor union layout 2021-01-16 16:31:43 +01:00
Folkert
c85fa58648 a working state again 2021-01-16 01:55:38 +01:00
Folkert
c4e2b4f5cc clippy 2021-01-15 21:18:11 +01:00
Folkert
4202503d42 no dereference required for Cons tag_id 2021-01-15 20:51:11 +01:00
Folkert
ef3bda40c6 fix RC 2021-01-15 16:10:48 +01:00
Folkert
345ecd434b working is_empty (without RC) 2021-01-15 15:05:39 +01:00
Richard Feldman
d2876b152c
Merge pull request #899 from rtfeldman/nqueens
Nqueens
2021-01-14 23:51:53 -05:00
Folkert
167858ef06 reach the unreachable 2021-01-15 02:09:36 +01:00
Folkert
b47ccb20fd add NullableUnion layout 2021-01-15 00:25:28 +01:00
Folkert
f4b14b0b1b remove todo 2021-01-14 23:48:19 +01:00
Sébastien Besnier
fdc2b6ad86 add bitwise xor 2021-01-14 16:12:46 +01:00
Chadtech
64d69b9ec4 Hash Low Level 2021-01-13 21:24:16 -05:00
Chadtech
cddd64f1c9 Get rid of old Dict implementation, use Zig wyhash, and WIP for testing Roc use of zig wyhash 2021-01-12 00:59:40 -05:00