Folkert
69fc1ad7e7
sketch of StrToNum
2021-12-01 15:33:16 +01:00
rvcas
f995a07029
feat: Num.toStr
...
* add type for Num.toStr
* create new lowlevel
* delete types and Symbol for fromInt and fromFloat
* leave LowLevel::{StrFromFloat,StrFromInt}
* match on LowLevel::NumToStr and figure out the layout to decide
which build function to delegate to
2021-11-30 14:52:06 -05:00
rvcas
27e77f446f
feat(wasm): implement EmptyArray
2021-11-29 15:08:52 -05:00
Brian Carroll
1f747e971f
Clippy & fmt
2021-11-29 01:09:31 +00:00
Brian Carroll
dcd4914ac1
Fix and enable tests involving empty records
2021-11-29 00:57:28 +00:00
Brian Carroll
88bf6bf1b7
Clean up Wasm calling convention code
2021-11-29 00:17:45 +00:00
Brian Carroll
27af5897d1
Handle zero-size structs
2021-11-28 21:04:40 +00:00
Folkert
a1fd34feef
remove empty layout types (list,str,dict,set)
2021-11-27 14:05:16 +01:00
Brian Carroll
44cf238a67
Merge pull request #2056 from rtfeldman/wasm-dec-add
...
Wasm dec add
2021-11-23 13:37:04 +00:00
Folkert
4e6568016d
fix comment: rust thought it was code it should execute
2021-11-23 11:56:33 +01:00
Brian Carroll
8c3c01cd1f
Reduce recursion for sequences of Let statements in gen_wasm
2021-11-23 09:22:41 +00:00
Folkert
44fdf8df18
remove unreachable cases
2021-11-22 21:40:44 +01:00
Folkert
f2f4f3bd72
Merge remote-tracking branch 'origin/trunk' into wasm-dec-add
2021-11-22 21:25:01 +01:00
Folkert
78c26c6096
fix returning an aggregate value with ccc
2021-11-22 10:17:17 +01:00
Brian Carroll
5a8c3d4f0f
Fix it again, properly this time
2021-11-21 23:49:26 +00:00
Brian Carroll
bd2813f36c
Fix loading of 128-bit numbers
2021-11-21 23:46:04 +00:00
Folkert
f96d60a13e
Merge remote-tracking branch 'origin/trunk' into layout-builtin-numbers-refactor
2021-11-21 23:19:55 +01:00
Folkert
bceebc4f8f
first pass at decimal addition in the wasm backend
2021-11-21 23:00:12 +01:00
Brian Carroll
0a5b0bdb0a
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-load-128bit-numbers
2021-11-21 20:53:38 +00:00
Brian Carroll
2e31350010
Logic to load 128-bit numbers
2021-11-21 20:44:16 +00:00
Folkert
fc635abe0b
Revert "decimal add experiment"
...
This reverts commit bfd5ca623c
.
2021-11-21 20:29:12 +01:00
Folkert
bfd5ca623c
decimal add experiment
2021-11-21 20:02:33 +01:00
Folkert
5529841d68
Merge remote-tracking branch 'origin/trunk' into decimal-literals
2021-11-21 19:31:38 +01:00
Folkert
dc44eaac97
cleanup
2021-11-21 14:11:18 +01:00
Folkert
ce8615fbbc
wasm working
2021-11-21 00:41:37 +01:00
Folkert
c4ec9aa898
working mono
2021-11-20 23:25:30 +01:00
Michael Downey
d11bb93539
Merge branch 'trunk' into add_list_all
2021-11-18 16:09:24 -05:00
Michael Downey
12f7d4b458
fixing format
2021-11-18 16:04:38 -05:00
Michael Downey
9d587d37b4
Merge branch 'trunk' into add_list_all
2021-11-18 06:41:08 -05:00
Brian Carroll
be55582290
Enable some more gen_wasm string builtins
2021-11-18 09:59:52 +00:00
Brian Carroll
3d124b4122
Fix builtin calls for primitives
2021-11-17 16:51:42 +00:00
Brian Carroll
1134b6f45c
Fix test_wrapper linking bug
2021-11-17 16:45:38 +00:00
Brian Carroll
e75a9ec281
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-str-builtins
2021-11-17 13:51:11 +00:00
Brian Carroll
a3bfee5cd8
Leave other string builtins for later
2021-11-17 13:48:29 +00:00
Brian Carroll
03c19b727a
String concatenation working in gen_wasm!
2021-11-17 13:38:50 +00:00
Brian Carroll
4aaa6d92a1
For now, commit a binary archive of Wasm libc
2021-11-17 12:52:48 +00:00
Brian Carroll
af896e5d33
Comments
2021-11-17 09:39:16 +00:00
Michael Downey
51ad326d11
fmt
2021-11-16 17:30:04 -05:00
Michael Downey
d946b84e63
adding initial List.all
2021-11-16 16:34:36 -05:00
Brian Carroll
b8f40011b9
Generate a test "platform" with libc allocator functions
2021-11-16 11:59:46 +00:00
Brian Carroll
e9f920827e
Add support for Zig/LLVM "fast calling convention"
2021-11-15 19:20:55 +00:00
Brian Carroll
8ad2f13ba9
Map some Str lowlevels to builtin calls
2021-11-15 19:17:27 +00:00
Folkert de Vries
1a3f2aed4f
Merge branch 'trunk' into refactor-builtin-list-drop
2021-11-15 19:51:17 +01:00
Brian Carroll
7ac1c7a72f
Get long string literals working in gen_wasm
2021-11-15 15:22:07 +00:00
Brian Carroll
a5c3809290
Delete DataCountSection. Not well-supported and only needed for instructions we don't use
...
https://webassembly.github.io/spec/core/binary/modules.html#binary-datacountsec
Tools like wasm2wat and wasm-validate reject the module when this section is included!
Its purpose is to enable single-pass validation for two specific instructions that were
not in the original Wasm MVP: memory.init and data.drop.
We don't use them in our Roc backend. It seems to make sense just to drop the section.
2021-11-15 12:59:28 +00:00
Brian Carroll
46636ef331
Ensure lowlevel inlining does not skip bounds checks
2021-11-15 12:56:34 +00:00
satotake
c253273490
Merge branch 'trunk' into refactor-builtin-list-drop
2021-11-15 11:37:32 +00:00
satotake
8e29daa160
remove low-level List.drop
codes
2021-11-15 11:28:38 +00:00
Brian Carroll
1c17797aa6
Fix de-duplication of builtin imports
2021-11-15 09:01:36 +00:00
Brian Carroll
79bd9ccf71
Symbol-to-lowlevel mapping for both dev backends
2021-11-15 00:27:04 +00:00