Brendan Hansknecht
2cd0d51409
add RocRefcounted to RocBox
2024-07-13 10:39:58 -07:00
Brendan Hansknecht
93fab26c01
Add a RocRefcounted trait in roc_std
...
This is required to properly handle refcounting of RocList.
Without it, we can't tell if we need to get the length from the heap.
That said, it isn't a pretty solution.
I think dealing with generating bespoke type in glue would feel nicer than this but be much more work.
It also would deal with the issue of implementations in the bitcode not matching external libraries.
That said, it would require exposing way more symbols from roc for each monomophorphized list variant.
2024-07-13 10:39:51 -07:00
Brian Carroll
84a230a2e5
Remove unused args from call
2023-11-05 23:32:20 +00:00
Folkert
6d2d65bb1e
remove Boxed layout
2023-07-09 15:47:28 +02:00
Ayaz Hafiz
457cdabc5c
Make repr private and accessible only via the interner
2023-06-06 16:01:27 -05:00
Ayaz Hafiz
c3eeb5e2cc
Wrap layouts in a LayoutRepr
constructor
...
Part 1 of support semantic layout representations.
2023-05-10 13:22:10 -05:00
Folkert
625b9c161a
implement wasm traits for roc_std::RocBox
2023-02-09 14:55:08 +01:00
Ayaz Hafiz
ee7e9d4ab5
Update gen wasm
2023-01-11 14:39:11 -06:00
Ayaz Hafiz
fdbc0ebdad
Thread LayoutInterner trait through
2023-01-03 11:48:46 -06:00
Brian Carroll
ddddb7d4f1
Fix import relocations in CodeBuilder.
2022-11-15 09:36:59 +00:00
Brian Carroll
4dea82b2f5
Move code_builder from wasm_module to gen_wasm
2022-11-14 09:18:53 +00:00
Brian Carroll
63d9187343
move wasm_module out of gen_wasm
2022-11-13 09:03:08 +00:00
Ayaz Hafiz
3b4b1838b8
Push layout interner further through Layout
2022-08-31 14:33:52 -05:00
Ayaz Hafiz
89457f9faf
Add Wasm32Result for Infallible
2022-08-12 15:42:20 -07:00
Folkert
e1b427839b
implement wasm traits for roc_std::{I128, U128}
2022-07-24 12:07:27 +02:00
Folkert
3ca24a6476
implement wasm memory traits for 4-tuples
2022-07-22 12:18:31 +02:00
Brian Carroll
a6faf875f8
wasm: Use Ord::max where possible instead of a custom function
2022-07-07 20:32:32 +01:00
Brian Carroll
a9aee13086
test_gen: support RocResult for Wasm tests
2022-07-06 22:01:03 +01:00
Folkert
6d7c329698
Str.walkScalars
2022-07-04 18:01:19 +02:00
Brian Carroll
6b1e9c75c8
mono: generate refcounting helper functions for Boxed layout
2022-07-03 23:31:49 +01:00
Anton-4
eee85fa45d
moved all crates into seperate folder + related path fixes
2022-07-01 17:37:43 +02:00