Ayaz Hafiz
94c2c47da4
Handle case where only other tag of nullable unwrapped needs no refcount
...
It's possible to have a nullable unwrapped code where the only material
payload does not need refcounting operations. In this case the
refcounting function is the trivial one.
2023-02-16 09:38:49 -06:00
Folkert
eb48f01f63
Str.startsWith, str.endsWith and friends
2023-02-11 00:51:04 +01:00
Folkert
8df8c19ae2
dev backend: Box.unbox and List.get str
2023-02-10 20:19:50 +01:00
Folkert
4d1a6b17a8
dev backend: box a str
2023-02-10 20:19:50 +01:00
Folkert
8421824e31
WIP
2023-02-10 20:19:49 +01:00
Folkert
f32d31341a
add basic functionality of Str.split
2023-02-10 20:19:49 +01:00
Folkert de Vries
301bf0f367
Merge pull request #5009 from roc-lang/dev-box-box
...
implement Box.box and Box.unbox in the dev backend
2023-02-09 18:04:53 +01:00
Folkert
625b9c161a
implement wasm traits for roc_std::RocBox
2023-02-09 14:55:08 +01:00
Folkert
b022175489
implement Box.box and Box.unbox in the dev backend
2023-02-08 13:51:30 +01:00
Joshua Warner
5a6be05ead
implement mono / lowering for tuples
2023-02-07 18:54:50 -08:00
Ahmad Sattar
e8f40cdbb1
Add bools to array building
2023-02-04 01:06:34 +01:00
Ahmad Sattar
7fc24d5720
Add List.prepend
implementation for generic64
2023-01-28 22:46:35 +01:00
Folkert de Vries
6fc57f0a0c
Merge pull request #4976 from thehabbos007/list-concat
...
gen_dev: add `List.concat` and fix element width bug
2023-01-28 13:56:36 +01:00
Ahmad Sattar
f6b8a27955
Add List.concat
implementation for generic64
2023-01-28 02:16:05 +01:00
Ahmad Sattar
2f620f048e
Address clippy lint for gen-dev
2023-01-28 01:53:55 +01:00
Richard Feldman
b5caddcb77
Merge pull request #4973 from roc-lang/fix-string-split
...
fix string split on overlapping delimiters
2023-01-27 19:34:07 -05:00
Folkert de Vries
c4cbbea4cb
Merge pull request #3958 from roc-lang/dev-backend-bitwise-shifts
...
Dev backend bitwise shifts
2023-01-28 00:46:09 +01:00
Folkert
d52c037cba
fix string split on overlapping delimiters
2023-01-27 17:35:10 +01:00
Ayaz
99050956d3
Merge pull request #4971 from roc-lang/str-trim-null-byte
...
fix bug in Str.trim
2023-01-27 09:29:01 -06:00
Folkert
7cc5aa243b
fix some comments
2023-01-27 11:24:47 +01:00
Folkert
843f5b15e5
bitshifts for the dev backend
2023-01-27 11:23:51 +01:00
Christoph Rüßler
1b023f828f
dev backend: implement subWrap for all integer types
2023-01-27 10:27:50 +01:00
Folkert de Vries
081c61ead6
Merge pull request #4962 from thehabbos007/list-reserve-append
...
gen_dev: add `List.reserve` and `List.append` using zig builtins
2023-01-26 23:43:27 +01:00
Folkert
a77f137a9d
fix bug in Str.trim
2023-01-26 22:52:14 +01:00
Ayaz
0672879fff
Merge pull request #4965 from roc-lang/recursive-layouts-rec-by-default
...
Support equivalence for finding lambda sets
2023-01-26 15:20:59 -06:00
Ahmad Sattar
918d9d2308
Fix clippy lints
2023-01-26 20:32:47 +01:00
Brian Carroll
c2faaef092
test_gen: enable Dict tests for gen_wasm
2023-01-26 20:05:16 +01:00
Ahmad Sattar
e70b491816
gen_dev: more tests for append
2023-01-26 10:22:53 +01:00
Ayaz Hafiz
6193f0be85
Turn test back on
2023-01-25 18:06:11 -06:00
Ahmad Sattar
0adb38beca
Add List.append
implementation for generic64
2023-01-25 19:47:11 +01:00
Ahmad Sattar
9b525143cb
Add List.reserve
implementation for generic64
2023-01-25 19:46:54 +01:00
Folkert de Vries
8e5efe67b4
Merge pull request #4912 from roc-lang/remove-polymorphic-expression-compilation
...
Rip out polymorphic expression compilation
2023-01-24 21:35:08 +01:00
Brian Carroll
ac45fa2bba
Merge pull request #4683 from roc-lang/gen-wasm-shr-128
...
gen_wasm: Implement u128 right shift by delegating to compiler_rt
2023-01-24 00:36:27 +00:00
Brian Carroll
28d6d000ec
gen_wasm: Implement u128 right shift by delegating to compiler_rt
2023-01-23 22:07:40 +00:00
Ayaz Hafiz
36f8ed6478
Rip out polymorphic expression compilation
...
We no longer need this except for number literals, which are simple to
handle.
2023-01-21 12:37:09 -06:00
Ahmad Sattar
312997f1c6
Add List.withCapacity
implementation for x86
...
Uses the zig builtin `listWithCapacity`
2023-01-21 15:57:10 +01:00
Folkert de Vries
04449c3a0c
Merge pull request #4910 from roc-lang/weakening-6
...
Add some regression tests for problems weakening solves
2023-01-21 00:14:49 +01:00
Ahmad Sattar
be445f6f11
Enable more List.len
tests for gen-dev
2023-01-20 00:45:38 +01:00
Folkert de Vries
810e05cd9a
Merge pull request #4922 from thehabbos007/asa/numgt
...
gen_dev: fix signed/unsigned `less than` and add signed/unsigned `greater than`
2023-01-19 20:49:06 +01:00
Ahmad Sattar
bbd4c9886c
Add NumSubWrap as a NumSub copy
2023-01-19 09:19:20 +01:00
Ayaz Hafiz
9a4e4f25c2
Add regression tests for #4772
...
Closes #4772
2023-01-18 18:11:57 -06:00
Ahmad Sattar
6670a5d205
Add greater than
comparison
2023-01-18 20:26:45 +01:00
Ahmad Sattar
3683e9d436
Fix up less than
comparison
2023-01-18 20:26:45 +01:00
Ayaz Hafiz
59eb980fb2
Fix gen tests
2023-01-18 10:14:19 -06:00
Ayaz
ed7123ed5b
Merge pull request #4887 from roc-lang/weakening-5
...
Finish weakening let-bindings
2023-01-17 12:47:12 -06:00
Ayaz Hafiz
ec8c6bdfc5
Add gen tests for #4734
...
Closes #4734
2023-01-16 12:45:09 -06:00
Ayaz Hafiz
3109b2b00f
Store args/return layout in the lambda set specialization layout
2023-01-16 12:45:08 -06:00
Ayaz Hafiz
58081ada19
Weaken aliased variable names
2023-01-16 10:49:17 -06:00
Ayaz Hafiz
52c2f3a054
Weaken zero-argument tags in let bindings
2023-01-16 10:49:16 -06:00
Ayaz Hafiz
3d0a0a4a99
Update more dict/set references
2023-01-14 15:33:54 +01:00