Chad Stearns
78fc5d2fec
List append symbol and partial implementation
2020-07-04 18:11:57 -04:00
Chad Stearns
9147661e02
More comments for List.reverse
2020-07-03 15:14:21 -04:00
Chad Stearns
d66cf913a9
Refactored the phi2 away
2020-07-03 14:20:34 -04:00
Chad Stearns
fb7cbfdce4
LIST_REVERSE works, so long as the list is made up of ints equal to 1
2020-07-02 22:49:12 -04:00
Chad Stearns
7bd7e697b0
LIST_REVERSE works, so long as the list is made up of ints equal to 1
2020-07-02 22:39:58 -04:00
Chad Stearns
d8a8741aed
Merge branch 'trunk' of github.com:rtfeldman/roc into list-reverse
2020-07-02 21:33:24 -04:00
Chad Stearns
f409e1827b
Added LIST_REVERSE symbol and an untested implementation in build.rs
2020-07-02 21:33:15 -04:00
Richard Feldman
dc4807bfcb
Add low-level ops for ListPush, ListRepeat
2020-06-29 22:10:46 -04:00
Richard Feldman
8c96d12661
Merge trunk
2020-06-29 22:10:46 -04:00
Chad Stearns
2f440ecb6a
Removed incorrect comment
2020-06-27 16:12:59 -04:00
Chad Stearns
20b0e986ad
Merge branch 'list-push' of github.com:rtfeldman/roc into list-push
2020-06-27 15:12:01 -04:00
Chad Stearns
f72cf65f35
Use old size when copying memory in list_push
2020-06-27 15:10:55 -04:00
Richard Feldman
44477f98e9
Fix Num.sqrt, div, mod, and rem
2020-06-25 21:47:02 -04:00
Richard Feldman
9faf47e5cd
Fix an incomplete comment
2020-06-25 01:25:11 -04:00
Richard Feldman
0550af17d2
Fix some empty list edge cases
2020-06-25 00:02:52 -04:00
Richard Feldman
0f36255f83
Fix List.first types
2020-06-24 23:08:25 -04:00
Richard Feldman
750523ba5c
Fix List.single
2020-06-23 19:34:09 -04:00
Richard Feldman
30a95e90d1
Fix Num.toFloat
2020-06-23 19:31:50 -04:00
Richard Feldman
dd8dff0f9e
Fix some unary ops
2020-06-23 19:17:39 -04:00
Richard Feldman
3309270747
Fix trig ops
2020-06-23 18:21:07 -04:00
Richard Feldman
1c98248b91
Ops for sqrt and round
2020-06-23 18:05:30 -04:00
Richard Feldman
88990c8711
Move Int and Float modules into Num
2020-06-22 23:25:38 -04:00
Richard Feldman
44b19d3174
Merge branch 'trunk' into list-push
2020-06-21 22:23:24 -04:00
Richard Feldman
cad0a1421e
Annotate low-level usages
2020-06-21 21:06:52 -04:00
Chad Stearns
af34f248ea
move from i32 to i64
2020-06-21 18:20:45 -04:00
Richard Feldman
187f3f8dc5
Move some Num operations into LowLevel
2020-06-21 15:07:32 -04:00
Chad Stearns
0eee0cc07b
A comment about the output list length
2020-06-21 14:14:26 -04:00
Chad Stearns
9376b4b988
empty_list helper
2020-06-21 14:03:04 -04:00
Chad Stearns
10aa44e12b
More comments
2020-06-21 14:02:52 -04:00
Chad Stearns
ca411b11a3
Switched all i32 to i64 in gen builtins
2020-06-21 13:23:59 -04:00
Chad Stearns
5898fa0905
Cleaned up list_push
2020-06-21 04:37:58 -04:00
Chad Stearns
e4eeff5bd0
List repeat works for all test cases except one with a negative number repeats param, and avoids malloc in the case that the number of repeats is not more than 0
2020-06-21 00:55:53 -04:00
Chad Stearns
6485b039c7
List repeats code gen works.. so long as its 5
2020-06-20 15:49:58 -04:00
Chad Stearns
4cf87d2374
Fixed small errors in list push, such as using wrong argument, and using wrong list length
2020-06-20 15:00:11 -04:00
Richard Feldman
461e166254
wip
2020-06-20 13:59:04 -04:00
Chad Stearns
0531d91301
WIP
2020-06-20 13:40:48 -04:00
Richard Feldman
07689ca9dc
Switch back to builtin_defs returning Def
2020-06-20 10:57:44 -04:00
Chad Stearns
3af6d5f0b3
WIP
2020-06-19 21:02:52 -04:00
Richard Feldman
dec5c3a062
Get low-level ops compiling
2020-06-19 20:07:04 -04:00
Richard Feldman
245a9fc951
Merge remote-tracking branch 'origin/trunk' into specialize-separately
2020-06-13 21:03:38 -04:00
Chad Stearns
97cb4a737e
List.single implementation
2020-06-03 18:56:23 -04:00
Richard Feldman
60e583fb78
Improve debug stuff a bit
2020-05-26 21:19:47 -04:00
Richard Feldman
887ec9860a
wip
2020-05-26 21:19:46 -04:00
Chad Stearns
5c1c9efb89
Added trigonometric functions to code gen and builtins
2020-05-25 16:28:41 -04:00
Richard Feldman
7f05678bf8
Merge branch 'trunk' into int-rem
2020-05-13 22:53:31 -04:00
Chad Stearns
7df4771f7b
Int.rem
2020-05-13 04:27:08 -04:00
Richard Feldman
33a5f36d7c
Refactor out name
arg from from_can
2020-05-10 15:13:18 -04:00
Richard Feldman
85ec1e0f72
Fix anonymous function code gen
2020-05-10 15:13:18 -04:00
Richard Feldman
bf11262e61
Move layout_id from mono to gen
...
This is because it's actually important that mono never use this.
It should only be used in gen, because it's only safe to use
synchronously, and it's important that mono be done in parallel.
Moving it to gen guarantees that mono will not use it, even accidentally!
2020-05-10 15:13:18 -04:00
Richard Feldman
6e05ba816f
Have CallByName use Layout
2020-05-10 15:13:18 -04:00