Commit graph

687 commits

Author SHA1 Message Date
Brendan Hansknecht
1319ba4844
add List.releaseExcessCapacity builtin 2023-03-13 17:43:21 -07:00
Brendan Hansknecht
e6964536b2
add more Num.bytesTo* functions 2023-03-12 08:41:05 -07:00
Brendan Hansknecht
785da377c8
add Num.count*Bits functions 2023-03-12 08:41:04 -07:00
Brendan Hansknecht
cb191d3788
Split utils into error and command utils
Error utils pulls in snafu which requires procedural macros.
This means it can't start compiling until syn and macro related crates are compiled.
This deals compiling all crates that depend on commands like running zig for the bitcode.
The split enables those crates to run sooner.
2023-03-10 09:39:43 -08:00
Brendan Hansknecht
d5e191d083
split up bitcode building to reduce dependency chains 2023-03-10 09:39:43 -08:00
Brendan Hansknecht
75e996c445
remove unused dependencies and ignore false positives 2023-03-06 20:09:01 -08:00
Brendan Hansknecht
f42f61e271
run a toml formatter and then clean it up a bit 2023-03-06 19:47:57 -08:00
Brendan Hansknecht
4a89bee0a5
centralize package versions except for vendor and excluded 2023-03-06 19:29:09 -08:00
Brendan Hansknecht
5485c8a5b0
update to using workspace package spec 2023-03-06 16:36:18 -08:00
Richard Feldman
82663fd30d
Merge pull request #5076 from roc-lang/fix-list-range
Fix List.range crashing
2023-03-01 19:29:24 -05:00
Brendan Hansknecht
865bae9468
clarify type for test 2023-02-27 18:41:31 -08:00
Brendan Hansknecht
f77d1dcd6b
fix List.range so that it will only crash when Length is too large 2023-02-27 16:01:05 -08:00
Folkert
1f296a5907
fix test I broke 2023-02-26 22:32:19 +01:00
Folkert
44f08f9e47
implement sqrt and log in the dev backend 2023-02-26 21:41:25 +01:00
Folkert
6a40d75353
float comparisions 2023-02-26 18:14:11 +01:00
Folkert
f1fa014524
support 128-bit literals 2023-02-26 15:11:49 +01:00
Folkert de Vries
34340de60c
Merge pull request #5020 from roc-lang/dev-unbox-u32
dev backend: reading and writing 32, 16 and 8-bit values
2023-02-21 17:33:21 +01:00
Folkert de Vries
bd6623dab4
Merge pull request #5055 from roc-lang/abilities-bug-generic
Lambda set compaction must preserve unique specializations of concrete types
2023-02-21 15:24:23 +01:00
Ayaz Hafiz
7a4fed932d
Add gen tests for concerete unspecialized set conservation 2023-02-20 18:59:48 -06:00
Folkert de Vries
c6089ebb6a
Merge pull request #5041 from thehabbos007/eq
gen_dev x86: misc low-level bool comparison functions
2023-02-20 08:51:11 +01:00
Folkert
5b52cfe79b
disable str_append_scalar; it segfaults for unclear reasons 2023-02-18 23:18:48 +01:00
Folkert
bece06ba10
work around universally quantified type variable 2023-02-18 18:12:32 +01:00
Folkert
03867fdc1f
str to num 2023-02-18 16:42:46 +01:00
Folkert
93fb1c73e6
str splits 2023-02-18 16:42:46 +01:00
Folkert
a3d5e7bee5
fully implement sign/zero extension 2023-02-18 16:42:46 +01:00
Folkert
4e38a4ce32
enable some utf8 conversion tests 2023-02-18 16:42:46 +01:00
Folkert
aa113f169c
string equality 2023-02-18 16:42:45 +01:00
Folkert
816828040d
tests for boxing/unboxing floats 2023-02-18 16:42:45 +01:00
Folkert
b968122bee
simplify systemv argument storing and loading 2023-02-18 16:42:45 +01:00
Folkert
78000b3f19
enable more list tests 2023-02-18 16:42:44 +01:00
Folkert
9f5f80581e
add test that passes a struct < 16 bytes 2023-02-18 16:42:43 +01:00
Folkert
e48a604862
add Str.appendScalar 2023-02-18 16:42:43 +01:00
Folkert
92539fe3b0
Revert "implment 8bit logical operators"
This reverts commit 87c49679e1ac5bcfb710b6d432a9f503db3ee501.
2023-02-18 16:42:42 +01:00
Folkert
f6fbfa002b
implment 8bit logical operators 2023-02-18 16:42:42 +01:00
Folkert
4afeb1d67a
store big strings on the heap; enable a lot more string tests 2023-02-18 16:42:42 +01:00
Folkert
38b66765ab
enable more string tests 2023-02-18 16:42:41 +01:00
Folkert
6a84d6ee83
centralize stack movement 2023-02-18 16:42:41 +01:00
Folkert
ee79a311f9
dev: box and unbox 16-bit and 8-bit values 2023-02-18 16:42:40 +01:00
Folkert
49d52f5d9a
dev: box and unbox 32-bit value 2023-02-18 16:42:39 +01:00
Ahmad Sattar
db497539bc
Combined test for good measure 2023-02-16 23:08:30 +01:00
Ahmad Sattar
3c01ae10c6
Add Lowlevel::Not 2023-02-16 22:47:55 +01:00
Ahmad Sattar
214ee6ed8e
Add Lowlevel::Or 2023-02-16 22:47:54 +01:00
Ahmad Sattar
f8b0a99e6d
Add Lowlevel::And 2023-02-16 22:47:54 +01:00
Ahmad Sattar
82c0aa083d
Support boolean comparisons 2023-02-16 20:58:54 +01:00
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