Commit graph

6727 commits

Author SHA1 Message Date
Ayaz Hafiz
9abbcfaafc
Optimize literal list construction in LLVM backend
Currently, list literals are always heap-allocated and their elements
are stored by emitting a GEP and store for each item in the literal.
This produces huge quantities of IR, causing compile times for e.g.
programs with large literals or ingested files to blow up.

Instead, if a list literal consists entirely of literal values, create a
global section for the literal and return a pointer to it.
2024-08-09 18:51:17 -07:00
Joshua Warner
d25c048d48
Move Full from fmt to parse and reorganize confusingly-named Module ast type 2024-08-07 23:01:49 -07:00
Agus Zubiaga
762799052e
Merge branch 'main' into typecheck-module-params 2024-08-07 18:55:33 -03:00
Sam Mohr
698bbc3cf1
Merge pull request #6968 from smores56/ignored-record-builder-fields
Ignore underscore-prefixed fields in record builders
2024-08-06 23:36:27 -07:00
Sam Mohr
00bc699642
Add syntax tests for record builder 2024-08-06 22:49:35 -07:00
Sam Mohr
cb8040f629
Ignore underscore-prefixed fields in record builders 2024-08-06 22:49:35 -07:00
Agus Zubiaga
7027547182
Load platform dependencies
We were dropping packages from the platform header while loading.

Closes #6931
2024-08-06 18:15:28 -03:00
Anton-4
ed4e831347
fmt Num.roc 2024-08-05 11:55:53 +02:00
Anton-4
dd3d3810fb
added workaround
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-08-03 14:43:09 +02:00
Anton-4
fd8b7355f6
Num.neg docs
See also https://github.com/roc-lang/roc/issues/6959

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-08-03 14:37:00 +02:00
Sam Mohr
66cf946965 Fix PR comments 2024-08-03 04:37:31 -07:00
Anton-4
60ca8382a5
improve abilities error 2024-08-03 11:57:23 +02:00
Sam Mohr
8288af3156
Merge branch 'main' into builtin-task 2024-07-31 13:36:32 -07:00
Sam Mohr
bdb50912b8 Rename Task.seq -> Task.sequence 2024-07-31 13:35:36 -07:00
Anton-4
d23426ac47
Merge pull request #6941 from roc-lang/improve-tip
improve opaque types tip
2024-07-31 13:48:51 +02:00
Anton-4
30a76a092b
improve opaque types tip 2024-07-30 16:06:23 +02:00
Joshua Warner
c49dc1b9d6
Merge pull request #6938 from joshuawarner32/fix-unreachable 2024-07-30 06:57:36 -07:00
Luke Boswell
bb9b7d22b5
improve Task.seq implementation 2024-07-30 17:49:39 +10:00
Joshua Warner
939f9cb7e9
Give an error for record builders in patterns instead of crashing 2024-07-29 22:54:25 -07:00
Joshua Warner
ca037c5d0e
Merge branch 'main' into fix-deprecated-interpolated-formatting 2024-07-29 17:40:23 -07:00
Joshua Warner
4e8b36adbf
Fix auto-fixing of deprecated interpolated strings 2024-07-29 17:37:55 -07:00
Richard Feldman
a66e6862f4
Merge pull request #6926 from a-lavis/store-all-space-between-annotation-body
Preserve comments between annotation and body
2024-07-29 15:58:53 -04:00
Aidan
4bf5154610 remove spaces_middle from crates/compiler/can/src/desugar.rs 2024-07-29 13:11:57 -04:00
Aidan
ddb58a2cd5 spaces_middle -> lines_between 2024-07-29 13:06:48 -04:00
Brendan Hansknecht
5a933b0582
Merge pull request #6932 from roc-lang/blitsort
Fast Builtin Sorting
2024-07-29 09:22:35 -07:00
Aidan
2529fa0721 get rid of extra newlines 2024-07-29 11:10:16 -04:00
Aidan
91fdd903e7 comment -> spaces_middle 2024-07-29 10:04:32 -04:00
Aidan
125990855f Merge branch 'main' into store-all-space-between-annotation-body 2024-07-29 09:46:05 -04:00
Luke Boswell
78304a14c7
fix order of Task.sequence 2024-07-29 20:31:22 +10:00
Luke Boswell
aabe75ff87
fix order of Task.sequence 2024-07-29 19:50:50 +10:00
Luke Boswell
4a5c00e81e
generates and generates_with fields removed from HostedHeader 2024-07-29 16:15:00 +10:00
Luke Boswell
eca453d07f
Merge remote-tracking branch 'remote/main' into builtin-task 2024-07-29 16:05:51 +10:00
Brendan Hansknecht
e69532d3b3
update tuning todo 2024-07-28 20:33:48 -07:00
Brendan Hansknecht
90d3bb6a08
wire indirect through everything as a comptime bool 2024-07-28 20:33:48 -07:00
Brendan Hansknecht
22896d309a
fix a another bug caught by fuzzing 2024-07-28 20:33:48 -07:00
Brendan Hansknecht
7747f06504
fix a few bugs caught by fuzzing 2024-07-28 20:33:48 -07:00
Brendan Hansknecht
400393a531
remove wrong assert 2024-07-28 20:33:48 -07:00
Brendan Hansknecht
285c43e288
make fuzzer better and add missing else 2024-07-28 20:33:48 -07:00
Brendan Hansknecht
109dba836e
clarify comments and variable names, fix small bug 2024-07-28 20:33:47 -07:00
Brendan Hansknecht
51a3ea655c
minor cleanup 2024-07-28 20:33:47 -07:00
Brendan Hansknecht
65d7f6ad56
update fuzzing to fluxsort 2024-07-28 20:33:47 -07:00
Brendan Hansknecht
eff37f6b6d
fix up flux_default_parition and add tests 2024-07-28 20:33:47 -07:00
Brendan Hansknecht
f9eeee0bde
add test for flux_reverse_partition 2024-07-28 20:33:47 -07:00
Brendan Hansknecht
6d7d9e4e57
add testing for pivot selection 2024-07-28 20:33:47 -07:00
Brendan Hansknecht
e722faaf58
add fluxsort 2024-07-28 20:33:47 -07:00
Brendan Hansknecht
c9a47ae886
add refcounting to fuzzing and fix first fuzzing bug 2024-07-28 20:33:47 -07:00
Brendan Hansknecht
15daad66fe
wire refcounting through sorting with comptime bool 2024-07-28 20:33:47 -07:00
Brendan Hansknecht
b1ff39fd6f
remove redundant variable 2024-07-28 20:33:46 -07:00
Brendan Hansknecht
8ace0dd91b
reenable direct sorting 2024-07-28 20:33:46 -07:00
Brendan Hansknecht
3c510caf30
git indirect sorting working 2024-07-28 20:33:46 -07:00