Commit graph

235 commits

Author SHA1 Message Date
Michael Downey
1f74fd6856 fixing formatting and adding str_trim_left back to solve_expr 2021-11-09 14:57:35 -05:00
Michael Downey
7e074d300e cleaning up and adding comments 2021-11-09 14:37:31 -05:00
Michael Downey
1bc278d962 initial commit of Str.trimLeft 2021-11-09 14:25:24 -05:00
satotake
d0b09e1922 cleanup unused args 2021-11-08 14:31:34 +00:00
satotake
878400f95f Implement List.takeFirst 2021-11-08 14:10:53 +00:00
Richard Feldman
0a347456ef
Merge pull request #1903 from rtfeldman/fix-str-from-int
Implement Str.fromInt for any integer type
2021-11-07 23:42:59 +00:00
Kevin Sjöberg
5e1a9832cb Return false in case of empty list 2021-11-07 20:47:09 +01:00
Kevin Sjöberg
44938a9e35 Implement List.any 2021-11-07 20:44:10 +01:00
Folkert de Vries
c0c2c1341c
Merge branch 'trunk' into fix-str-from-int 2021-11-07 00:00:21 +01:00
Kevin Sjöberg
f6d055dc62 Correct minor spelling mistakes 2021-11-06 15:29:08 +01:00
Kevin Sjöberg
c18f306a7e Remove dead code 2021-11-06 14:55:27 +01:00
Richard Feldman
4e19320982
Merge branch 'trunk' into false-cleanup 2021-11-01 22:30:45 -04:00
Kevin Sjöberg
f9ed060e49 Implement List.map4 2021-10-31 21:08:41 +01:00
Folkert
27e70b03e0 cleanup 2021-10-30 22:20:14 +02:00
Folkert
36496662d2 add comment on uninitialized memory 2021-10-30 22:14:26 +02:00
Folkert
44e8fbc203 construct tag in alloca (to eventually pass them by pointer) 2021-10-30 22:05:22 +02:00
Dan Gieschen Knutson
02117ba512
Merge branch 'trunk' into str_trim 2021-10-27 18:01:29 -05:00
Folkert
d561f2661d speedups 2021-10-27 00:01:21 +02:00
Dan Knutson
e7523ad41d add Roc wiring 2021-10-25 20:22:37 -05:00
Folkert
ad9f0b0609 clippy 2021-10-22 13:07:45 +02:00
Folkert
10b9307ab6 centralize calling roc functions in llvm 2021-10-22 12:56:58 +02:00
Folkert
e6edfda9a5 refactor call to roc function 2021-10-22 12:32:37 +02:00
Folkert
83de4b55ef remove another instance of RocCallResult 2021-10-22 12:26:04 +02:00
Folkert
76e26e47f3 more cleanup 2021-10-20 17:05:59 +02:00
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
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
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
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