Commit graph

64 commits

Author SHA1 Message Date
Folkert
9528f63d87
make Dict.keys and Dict.values use list helpers for returning 2022-03-26 12:36:14 +01:00
Folkert
3d7254726d
WIP 2022-02-18 23:33:24 +01:00
Richard Feldman
778d32f6b2
Acknowledge possibility of roc_alloc failing 2022-02-02 19:25:08 -05:00
Brian Carroll
3c74acafa4 More precise alignCast (allow for 32-bit targets) 2021-12-16 11:45:54 +00:00
Folkert
94e8c62613 make things compile, base64 has a memory leak 2021-10-06 22:57:11 +02:00
Folkert
3ef4a40f45 hopefully get the logic right this time 2021-09-01 15:56:50 +02:00
Folkert
106f1311d2 only conditionally flip a bit 2021-08-31 22:32:56 +02:00
Folkert
b9cd254b9a allow 4byte alignment in dict values 2021-08-25 22:07:16 +02:00
Folkert
e99237e302 make Dict.empty C ABI safe 2021-08-25 20:48:58 +02:00
Folkert
9037e57e14 fix zig usize/u64 issues 2021-08-23 21:45:12 +02:00
Folkert
9903e14cd3 update zig to compile on nightly 2021-08-23 21:41:13 +02:00
rvcas
3452037d44 chore: dict remove unused vars 2021-07-02 18:36:30 -04:00
Folkert
12c186813d use std.mem.swap 2021-06-09 14:25:45 +02:00
Folkert
6850fd4ed9 formatdict.zig 2021-06-07 21:04:09 +02:00
Richard Feldman
aa96d2373b Reorder args in decref 2021-05-24 22:06:35 -04:00
Richard Feldman
0b3715ebee Rearrange arg order for roc_alloc etc 2021-05-24 21:01:12 -04:00
Richard Feldman
7d7588ca19 Merge remote-tracking branch 'origin/trunk' into roc_alloc 2021-05-24 20:10:26 -04:00
Richard Feldman
ab51582541 Switch builtins to use roc_alloc and friends 2021-05-23 23:46:09 -04:00
Folkert
f3199ed2a7 work on dicts 2021-05-19 22:32:31 +02:00
Folkert
48dee993d0 stop aliasing in dictWalk 2021-02-20 04:25:21 +01:00
Folkert
903c0d8dec enable valgrind for AStar 2021-02-19 19:42:11 +01:00
Folkert
17fddaf0dd refcount details of builtins 2021-02-19 17:13:09 +01:00
Folkert
619749c954 use generic function to define the stepper wrapper 2021-02-17 21:16:00 +01:00
Folkert
3093fe9e18 Merge remote-tracking branch 'origin/dict-more' into zig-list 2021-02-17 16:19:36 +01:00
Folkert
2166b1355b check for empty key/value (not doing so caused problems for set) 2021-02-17 16:18:42 +01:00
Folkert
821e750876 implement primitives 2021-02-17 14:08:59 +01:00
Folkert
b8b0156c7b factor out utils.zig 2021-02-17 13:56:40 +01:00
Folkert
49ca8f3e86 add Set.fromList 2021-02-16 00:51:23 +01:00
Folkert
57e8d5b4c3 implement Set inclusion functions 2021-02-14 23:57:35 +01:00
Folkert
1256327caa dict walk 2021-02-14 21:16:42 +01:00
Folkert
39c4353554 add difference 2021-02-14 20:01:24 +01:00
Folkert
02db8f1a05 union and intersection 2021-02-14 19:55:01 +01:00
Folkert
87ce5d9dd8 remove dict test 2021-02-14 16:24:26 +01:00
Folkert
02e161f839 add dict tests with string keys/values 2021-02-14 15:49:40 +01:00
Folkert
62d0bc62ce deallocate dict when it becomes empty 2021-02-14 14:49:01 +01:00
Folkert
67aaaf4623 remove some dead code 2021-02-14 03:44:00 +01:00
Folkert
210bd18fe3 implement decref, fuse RC operations 2021-02-14 03:16:11 +01:00
Folkert
c9e2958947 add refcount check 2021-02-14 00:42:42 +01:00
Folkert
27c3a7c8f2 only refcount filled cells 2021-02-14 00:33:07 +01:00
Folkert
49bba11e06 refactor findIndex and insert 2021-02-14 00:25:44 +01:00
Folkert
b2e626ab0c Dict.insert WIP 2021-02-13 23:32:01 +01:00
Folkert
63b4d1dd65 don't reset slots when making unique 2021-02-13 19:42:35 +01:00
Folkert
e9f2d9d608 work on refcount 2021-02-13 16:41:13 +01:00
Folkert
ac5eb0f6f6 Dict.get 2021-02-13 16:12:45 +01:00
Folkert
cba729a933 use inline always strategically 2021-02-13 01:10:37 +01:00
Folkert
afe2f51660 basic versions of contains and remove 2021-02-12 23:47:02 +01:00
Folkert
d9d31f6cb4 getting and setting of key/value/tag 2021-02-12 21:16:28 +01:00
Folkert
ee21f86f8f hooking everything up 2021-02-12 17:18:06 +01:00
Chadtech
ba5f87e149 Zig fmt 2021-02-04 00:37:27 -05:00
Chadtech
bec9e6ff53 Avoided memory leak problem, theres no real implementation beyond RocDict.empty so there is no need for memory allocation yet 2021-02-01 23:24:04 -05:00