Commit graph

496 commits

Author SHA1 Message Date
Folkert
dbb1484a91 fix isize/usize mixup 2021-01-26 01:12:46 +01:00
Folkert
712be89c9d fix zig tests 2021-01-25 20:12:37 +01:00
Folkert
205f55be2e cleanup 2021-01-25 17:24:22 +01:00
Folkert
5a62359a5f remove T from join 2021-01-25 17:23:45 +01:00
Folkert
517bde4f4a remove T from concat 2021-01-25 17:22:22 +01:00
Folkert
257985496b use usize to determine size of roc str 2021-01-25 17:13:52 +01:00
Folkert
7e89307292 implement Dict.empty 2021-01-25 16:53:11 +01:00
Folkert
73de5b8132 joinWith zig implementation and general string improvements 2021-01-25 00:17:41 +01:00
Chadtech
ec7d8e0dc9 Bringing in Trunk and resolving conflict 2021-01-23 21:23:31 -05:00
Chadtech
9d776a2de5 rename Dict.size to Dict.len 2021-01-21 23:16:25 -05:00
Folkert
18d04614d4 clean up zig str concat 2021-01-21 20:20:20 +01:00
Chadtech
520dcfbaca Wiring up dictionary and hash rust code to their zig counterparts 2021-01-18 15:25:37 -05:00
Chadtech
c7f6de2afe Merge branch 'trunk' of github.com:rtfeldman/roc into dict 2021-01-16 14:55:09 -05:00
Chadtech
41c1fa06da Beginning to implement Dict size 2021-01-16 14:55:04 -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
Chadtech
d3b569f6eb Reformatted some comments and rearranged things within the RocDict def 2021-01-03 13:17:03 -05:00
Folkert
2ac19fb6e3 add equality for strings 2021-01-02 18:50:29 +01:00
Chadtech
12d836bfb0 Many functions taken an allocator 2021-01-02 01:45:22 -05:00
Chadtech
00ec961bfe Switch method function names from snake case to camel case 2021-01-02 00:09:44 -05:00
Chadtech
f4a85160d1 Ran Zig fmt on dict.zig 2021-01-01 21:45:52 -05:00
Chadtech
2e1d1a7602 Re-arrange expected and found value in RocDict.init test to fix compile error 2021-01-01 21:44:45 -05:00
Chadtech
58d33e643d Made entries recursive 2021-01-01 21:08:13 -05:00
Chadtech
bd5259363c Remove render indices comment 2020-12-29 03:29:17 -05:00
Chadtech
c8c3944673 Dict and Hash zig modules 2020-12-29 03:27:01 -05:00
Folkert
20c041dc60 improvements to str.zig 2020-12-12 01:46:33 +01:00
Jared Ramirez
170b5eb707 Small rename 2020-12-08 17:08:33 -08:00
Jared Ramirez
784f299b43 Various small zig str changes 2020-12-08 17:05:26 -08:00
Jared Ramirez
c39ac471ea Zig format 2020-12-04 14:25:29 -07:00
Jared Ramirez
5697ec209b Fix call to str split; Move some comments around 2020-12-04 14:16:07 -07:00
Jared Ramirez
7e9cf27d94 [WIP] Use zig build system in build script; Nearly fix str tests 2020-12-04 14:07:47 -07:00
Richard Feldman
fc2a37b22b Use alloc over dupe 2020-12-04 01:35:20 -05:00
Richard Feldman
c83e3ce27f Merge branch 'trunk' into no-implicit-zig-allocator 2020-12-04 00:59:23 -05:00
Richard Feldman
7b5eb08617 Re-snake_case main.zig args 2020-12-04 00:38:33 -05:00
Richard Feldman
ee9f426ed8 Re-camelCase function names 2020-12-04 00:38:33 -05:00
Richard Feldman
0b16f5c1ea Revert "Use camelCase in str.zig"
This reverts commit 0583cc1a27.
2020-12-04 00:38:33 -05:00
Richard Feldman
3ee990b0a0 Explicitly link libc in build.zig 2020-12-04 00:34:31 -05:00
Richard Feldman
497e1538b0 fix some memory leaks in tests 2020-12-04 00:29:47 -05:00
Richard Feldman
505ade3282 Don't try to free empty strings 2020-12-04 00:17:46 -05:00
Richard Feldman
ef258fe675 deinit more in tests 2020-12-04 00:05:07 -05:00
Richard Feldman
f55af7282c Merge branch 'trunk' into no-implicit-zig-allocator 2020-12-03 23:53:46 -05:00
Richard Feldman
5a111cb263 Rename drop to deinit, per Zig convention 2020-12-03 23:08:30 -05:00
Richard Feldman
83529079cf allocateStr uses @sizeOf(usize) instead of 8 2020-12-03 23:01:46 -05:00
Richard Feldman
8a4e131abd Fix typo 2020-12-03 22:59:46 -05:00
Richard Feldman
aeacbed870 Use camelCase in main.zig 2020-12-03 22:59:05 -05:00
Richard Feldman
0583cc1a27 Use camelCase in str.zig 2020-12-03 22:58:19 -05:00
Richard Feldman
31fd70d0b1
Merge branch 'trunk' into str-from-int 2020-12-03 22:26:23 -05:00
Richard Feldman
567e0e6a8f
Merge pull request #765 from rtfeldman/list-refcount-issues
Fix some list refcount issues
2020-12-03 22:23:21 -05:00
Folkert
4f549b7889 zig style 2020-12-04 01:17:11 +01:00
Folkert
4b0b5126a1 add Str.fromInt 2020-12-04 00:37:19 +01:00
Richard Feldman
77d68491fb
Revise comment about RocStr.init ownership 2020-12-03 18:36:54 -05:00