Shritesh Bhattarai
be9d817830
Just enough changes to compile on M1
2021-10-20 20:07:33 -04: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
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
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
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
Chadtech
2ca9dad156
Do not add parens around exprs if they are not needed in formatting
2021-10-16 13:30:32 -04: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
Brian Carroll
85ca33ddd6
tweak test script
2021-10-11 08:20:33 +01:00
Brian Carroll
403fbb362d
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_reduce_set_get
2021-10-10 23:20:06 +01:00
Brian Carroll
f6685349b3
Batch local declarations to save a few bytes and make some code a little nicer
2021-10-10 22:21:13 +01:00
Brian Carroll
58549bdf07
CodeBuilder doc comments
2021-10-10 20:56:49 +01:00
Brian Carroll
041e26e807
rename CodeBuilder methods
2021-10-10 20:56:39 +01:00
Brian Carroll
c5ee41af25
rename code_builder
2021-10-10 20:56:32 +01:00
Brian Carroll
8164a14dfa
rename module_builder
2021-10-10 20:56:20 +01:00
Brian Carroll
c9997f2115
Turn off output file generation & delete duplicate test
2021-10-10 20:55:53 +01:00
Folkert
5084fd533b
only do type checing for roc check
2021-10-10 16:32:14 +02:00
Richard Feldman
a0887da6ca
Merge pull request #1645 from rtfeldman/list-walk-flip
...
Reorder List.walk arguments
2021-10-10 08:38:20 -04:00