Commit graph

1143 commits

Author SHA1 Message Date
Brendan Hansknecht
d0b564360b
correct low level calling for list incref/decref 2024-07-13 10:39:54 -07:00
Brendan Hansknecht
23154c41aa
Revert "start correct list refcount function generation"
This reverts commit a8b4d0ef7f492215ce2228a34c6046c4790cc6db.
2024-07-13 10:39:54 -07:00
Brendan Hansknecht
e92cf1be42
Revert "attempt to correct list refcount generation in dev backends"
This reverts commit 0854a1a53a2db441c648140bdd24de91125ec645.
2024-07-13 10:39:54 -07:00
Brendan Hansknecht
36bc8bfac4
attempt to correct list refcount generation in dev backends 2024-07-13 10:39:54 -07:00
Brendan Hansknecht
94fe0820d5
start correct list refcount function generation 2024-07-13 10:39:54 -07:00
Brendan Hansknecht
61784629e7
update todos around list refcount func generation 2024-07-13 10:39:54 -07:00
Brendan Hansknecht
9e70308952
cleanup misc minor issues 2024-07-13 10:39:53 -07:00
Brendan Hansknecht
48eb9c31a9
update list generated refcounting functions for dev and wasm 2024-07-13 10:39:53 -07:00
Brendan Hansknecht
d5e91ed61e
Update dev and wasm backend to use new list bitcode args 2024-07-13 10:39:52 -07:00
Anton-4
b702cb634f
better mono repl error 2024-07-12 17:02:34 +02:00
Anton-4
15a7ed2e95
added error tip 2024-07-09 19:46:33 +02:00
Ayaz
eca229e3d1
Merge pull request #6887 from roc-lang/in-layout-unit 2024-07-07 17:22:56 -05:00
Folkert
80a83f3935
when inserting into an interner, re-use Layout::UNIT when possible
it is prettier in debug output, and should also be more efficient
2024-07-07 23:11:36 +02:00
Agus Zubiaga
0cbb352a89
Move unexpected params warning to solve 2024-07-06 21:36:26 -03:00
Folkert
2ec7f56643
add TODO comment 2024-07-06 16:21:03 +02:00
Folkert
ee3ac41a58
add assert to prevent UB?! 2024-07-06 16:14:34 +02:00
Folkert
26e6f1ca92
clippy 2024-07-06 16:14:34 +02:00
Folkert
90b70c3df0
slightly optimize modified tracking 2024-07-06 16:14:33 +02:00
Folkert
f4bd41352b
use BorrowSignature::from_layouts 2024-07-06 16:14:33 +02:00
Folkert
14b02c5827
remove clone 2024-07-06 16:14:32 +02:00
Folkert
047779d981
WIP infer join points too 2024-07-06 16:14:29 +02:00
Folkert
4a121a2348
nothing we can do for by-pointer calls 2024-07-06 16:08:59 +02:00
Folkert
f361d79249
make a real fixed point 2024-07-06 16:08:59 +02:00
Folkert
3cbec41d59
hook borrow inference up 2024-07-06 16:05:52 +02:00
Folkert
199558b661
basic transitive inference 2024-07-06 16:05:52 +02:00
Anton-4
1bcf30391b
Merge pull request #6819 from roc-lang/rust-1-77-2-upgrade
Rust 1.77.2 upgrade
2024-07-06 03:23:54 +02:00
Agus Zubiaga
400c156d81
Replace params mono todo with unimplemented 2024-07-02 11:10:00 -03:00
Agus Zubiaga
922b1c44ef
Report missing params 2024-07-02 11:10:00 -03:00
Agus Zubiaga
5ec4b042bb
Constrain and solve import params
No reporting yet
2024-07-02 04:10:46 -03:00
Agus Zubiaga
674adf1fad
Wrap import params expr so we can constrain later 2024-07-02 04:10:46 -03:00
Agus Zubiaga
1526fc4aee
can::Expr::ParamsVar for lookups with params 2024-07-02 04:10:44 -03:00
JRI98
f4551978ce
Handle multi pattern unbound list rest variables 2024-06-21 17:01:49 +01:00
Anton-4
05a61e2210
clippy + fmt 2024-06-19 12:34:10 +02:00
shua
f7bec802c0
PR: rename to List.concatUtf8 2024-06-08 13:36:20 +02:00
shua
33e8a7a439
implement Str.concatUtf8 2024-06-07 19:05:52 +02:00
Anton-4
388d43fc34
Merge branch 'main' into fix_6606 2024-05-04 16:26:40 +02:00
Anton-4
ec874655dd
apply Ayaz review suggestions 2024-04-30 19:34:21 +02:00
JRI98
eebd4b21c3
Support guards on lists with rest 2024-04-30 13:25:18 +01:00
Anton-4
1a5e065055
Merge branch 'main' into rust-1-76-0-upgrade 2024-04-16 13:33:27 +02:00
Anton-4
e4b814ce1c
clippy 2024-04-15 16:50:44 +02:00
Luke Boswell
a28cd251ab
spelling 2024-04-14 13:45:01 +10:00
Fabian Schmalzried
4269608ebf
remove i128OfDec 2024-04-01 21:08:12 +02:00
Fabian Schmalzried
11998b9cc8
f32FromParts and f64FromParts for repl 2024-04-01 21:08:10 +02:00
Fabian Schmalzried
473b8ef2d3
f32/f64toParts in repl only 2024-04-01 21:08:09 +02:00
Fabian Schmalzried
64e9899cad
Add Num.withDecimalPoint 2024-04-01 21:08:09 +02:00
Fabian Schmalzried
9c664172dd
Add Num.withoutDecimalPoint 2024-04-01 21:08:09 +02:00
Brendan Hansknecht
6dc5bfb1b7
Use roc_target over target_lexicon
Tailors a target class for our needs.
Replaces tons of uses across the entire compiler.
This is a base for later adding new targets like thumb.
2024-03-31 10:50:26 -07:00
Folkert
51a4192659
infer for a proc whether it is OK to pass an argument as borrowed
this only looks at calls to lowlevels right now, not calls to other functions
2024-03-13 20:12:51 +01:00
Folkert
ae88295365
make the lowlevel borrow signature have a static lifetime
no more allocations, yay!
2024-03-13 19:25:05 +01:00
Richard Feldman
e06b134228
Fix the TagOrClosure case 2024-03-11 10:58:38 +02:00