Commit graph

62 commits

Author SHA1 Message Date
Folkert
baef33fc0c llvm bindings
map the lowlevel op into LLVM code; it calls zig code, but the zig code does not do anything yet
2021-03-04 14:54:41 +01:00
Folkert
a6edc58323 make fromUtf8 do RC 2021-02-24 21:25:14 +01:00
Folkert
9116e9e8c9 add Str.toBytes 2021-02-21 19:52:32 +01:00
Folkert
57b78dde06 Merge remote-tracking branch 'origin/trunk' into str-fromUtf8 2021-02-21 15:25:36 +01:00
Folkert
d29b8764f0 List.repeat in zig 2021-02-18 23:39:50 +01:00
Folkert
65ab08728a List.mapWithIndex 2021-02-17 22:29:15 +01:00
Folkert
a3d0dc2fc3 move bitcode support functions around 2021-02-17 21:52:19 +01:00
Folkert
3fe80b1a1e List.keepOks and List.keepErrs 2021-02-17 21:03:21 +01:00
Folkert
56427c5fac List.walk in zig 2021-02-17 17:37:06 +01:00
Folkert
7aceb8dc70 List.keepIf in zig 2021-02-17 16:45:21 +01:00
Folkert
42c5662872 List.map in zig! 2021-02-17 15:38:55 +01:00
Folkert
49ca8f3e86 add Set.fromList 2021-02-16 00:51:23 +01:00
Folkert
13b2c23c01 working AStar 2021-02-15 21:34:55 +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
210bd18fe3 implement decref, fuse RC operations 2021-02-14 03:16:11 +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
afe2f51660 basic versions of contains and remove 2021-02-12 23:47:02 +01:00
Folkert
ee21f86f8f hooking everything up 2021-02-12 17:18:06 +01:00
Jared Ramirez
f3d9c2f2bb Finish first pass of Str.fromUtf8 2021-02-07 20:04:10 -08:00
Jared Ramirez
815f633a58 [WIP] Setup rust side to call Str.fromUtf8 2021-02-07 20:04:10 -08:00
Jared Ramirez
8d73fcda7f Add zig function to check if bytes are valid unicode 2021-02-07 20:01:45 -08:00
Folkert
2d63e24843 make hash work for integers/floats/strings 2021-02-06 21:33:56 +01:00
Chadtech
7a64ffede5 Merge branch 'trunk' of github.com:rtfeldman/roc into dict 2021-01-29 21:17:32 -05: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
9d776a2de5 rename Dict.size to Dict.len 2021-01-21 23:16:25 -05: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
Folkert
2ac19fb6e3 add equality for strings 2021-01-02 18:50:29 +01: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
f55af7282c Merge branch 'trunk' into no-implicit-zig-allocator 2020-12-03 23:53:46 -05:00
Richard Feldman
aeacbed870 Use camelCase in main.zig 2020-12-03 22:59:05 -05:00
Folkert
4b0b5126a1 add Str.fromInt 2020-12-04 00:37:19 +01:00
Folkert
82e87d04e3 rename str.len to str.number_of_bytes 2020-12-03 21:23:07 +01:00
Folkert
22d798b7c7 add Str.endsWith 2020-12-03 19:16:50 +01:00
Folkert
3162ab5fc4 simplify str_len 2020-12-03 16:22:47 +01:00
Jared Ramirez
4504306370 [WIP] Fix str.split allocation 2020-12-02 19:16:17 -08:00
Folkert
1a71b8bac7 define Str.concat in zig 2020-12-01 21:36:33 +01:00
Folkert
1589e688b3 use the zig formatter 2020-12-01 21:26:37 +01:00
Sébastien Besnier
b36c2bf499 implement startsWith builtin using Zig 2020-11-22 21:48:42 +01:00
Chad Stearns
9bedb818cb Fix spelling error in bitcode function name 2020-11-08 13:04:13 -05:00
Jared Ramirez
e112a406a2 Fix countGrapheme wiring; Reorganize zig builtins; Streamline how we export zig function 2020-11-06 16:54:28 -06:00
Jared Ramirez
63308d90e1 Add Str.countGraphemes 2020-11-06 16:54:28 -06:00
lrosa007
bd696e1f6f feat(builtins): Num.asin : Float -> Float 2020-11-01 09:54:00 -05:00
lrosa007
4da2d7f101 feat(builtins): Num.acos : Float -> Float 2020-11-01 09:27:42 -05:00