Commit graph

5882 commits

Author SHA1 Message Date
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
Brian Carroll
95e38a36b6
Merge pull request #1784 from rtfeldman/wasm_reduce_set_get
Improve WasmBackend's output, and its structure
2021-10-19 18:19:10 +02:00
Anton-4
bb715e0f84 cleanup 2021-10-19 17:51:47 +02:00
Anton-4
c7c421b2f5 fixed scope lookup bug 2021-10-19 16:45:28 +02:00
Brian Carroll
401f2ececd rename some methods 2021-10-18 21:35:16 +02:00
Brian Carroll
e4db06cbdd Add a debug assertion in code builder 2021-10-18 21:16:54 +02:00
Brian Carroll
64603a480c Get rid of Option in VM stack model 2021-10-18 21:03:54 +02:00
Brian Carroll
b86849347a Write test debug output to a path in /tmp 2021-10-18 20:42:13 +02:00
Anton-4
0a77b3f334 debugging wrong id in docs test 2021-10-18 19:58:03 +02:00
Brian Carroll
f242aade86 Rename a variable & fix a bug calling functions that return via stack memory 2021-10-18 18:35:48 +02:00
Brian Carroll
1b97675f1f Refactor the optimisation for immediately-returned Let statements
The original intention was to avoid creating a local when we define
and immediately return a primitive value. But now our default path
does avoids unnecessary locals anyway!

For StackMemory values we do need an optimised path but it's nicer
to just pass a flag to Storage::allocate.
2021-10-18 13:18:10 +02:00
Brian Carroll
2daefc8b32 Name a constant 2021-10-18 13:11:05 +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
Richard Feldman
6e0341890d
Merge pull request #1786 from rtfeldman/list-non-recursive-rc
make list inc/dec non-recursive (except when freeing the list)
2021-10-17 18:13:24 -04:00
Richard Feldman
7a44dd350a
Merge pull request #1790 from rtfeldman/remove-excess-parens
Remove excess parens
2021-10-17 17:43:01 -04:00
Folkert
dbf650f7ab fixes 2021-10-17 21:14:30 +02:00
Folkert
a4f7ddb1f5 rename 2021-10-17 20:45:49 +02:00
Folkert
434ccbbf68 working parallel implementation 2021-10-17 20:42:29 +02:00
Folkert
b8a2db793f Revert "Revert "code that makes new NewHigherOrderLowLevels, use this later""
This reverts commit 5052fe68a4.
2021-10-17 19:44:24 +02:00
Folkert
5052fe68a4 Revert "code that makes new NewHigherOrderLowLevels, use this later"
This reverts commit 2c702cc893.
2021-10-17 19:40:34 +02:00
Folkert
2c702cc893 code that makes new NewHigherOrderLowLevels, use this later 2021-10-17 19:39:05 +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
4b65430bef fix test 2021-10-17 16:32:45 +02:00
Chelsea Troy
03295d4369 So far, add type for divCeil to the language 2021-10-17 09:29:11 -05:00
Folkert
9763f9b51b WIP 2021-10-17 16:08:41 +02:00
Brian Carroll
99468b0aac Clarify a comment 2021-10-17 11:24:25 +02:00
Chadtech
8e0fd1b4cd Dont borrow sub_expr 2021-10-16 18:08:18 -04:00
Chadtech
5e2decf89a Binops with parentheses keep their parentheses 2021-10-16 18:01:13 -04:00
Chadtech
56c36c51d7 Commented in many tests which apparently did not work in the past 2021-10-16 13:44:14 -04:00
Anton-4
a272765fc7 started using scope properly, improved error backtrace conversion 2021-10-16 19:37:20 +02:00
Chadtech
2ca9dad156 Do not add parens around exprs if they are not needed in formatting 2021-10-16 13:30:32 -04:00
Anton-4
e003725f21 cleanup unwrap 2021-10-15 19:01:41 +02:00
Anton-4
428b4574ae Merge branch 'trunk' of github.com:rtfeldman/roc into function_closure_to_mark_node 2021-10-15 12:04:51 +02:00
Folkert
7773cf9b4d clippy 2021-10-14 20:12:43 +02:00
Folkert
19eadbfe70 make list inc/dec non-recursive (except when freeing the list) 2021-10-14 19:57:23 +02:00
Richard Feldman
8a4975ee8a
Merge pull request #1781 from rtfeldman/fix-parens
Remove parentheses from unapplied tags
2021-10-13 20:38:37 -04:00
Brian Carroll
6206418b67 Fix clippy warnings 2021-10-14 00:13:47 +02:00
Brian Carroll
e6245c41f5 README updates 2021-10-14 00:04:17 +02:00
Folkert
408aa899bf remove old code 2021-10-13 15:10:42 +02:00
Folkert
55f8a7f3a4 implement print of FunctionOrTagUnion 2021-10-13 14:50:21 +02:00
Brian Carroll
5c42455ca7 Rename some values & improve comments 2021-10-13 10:52:51 +02:00
Brian Carroll
472943a068 Refactoring: extract Storage out of WasmBackend 2021-10-12 10:22:38 +01:00
Brian Carroll
d2e01bd10a rename SymbolStorage -> StoredValue 2021-10-12 10:20:17 +01:00
Chelsea Troy
051b511d87 Remove parentheses from unapplied tags 2021-10-11 20:42:07 -05:00