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
Folkert
d95bc02145
WIP
2024-03-11 10:58:36 +02:00
Richard Feldman
3b3a330d73
Merge pull request #6422 from roc-lang/remove-nat
...
Remove `Nat`
2024-02-20 09:45:36 -05:00
Richard Feldman
739565e836
Revert "Remove obsolete ListLenUsize"
...
This reverts commit ad1bca4ac9c40d336522f944df60d61a814435dd.
2024-02-17 13:20:34 -05:00
Richard Feldman
87d4760356
Remove obsolete ListLenUsize
2024-02-17 13:20:34 -05:00
Richard Feldman
762f52b714
Use ListLenU64 where it's needed over ListLenUsize
2024-02-17 13:20:33 -05:00
Richard Feldman
37b154df4f
Remove Str.fromUtf8Range
...
Seamless slices make this obsolete!
2024-02-17 13:20:33 -05:00
Richard Feldman
ada83561e5
Split ListLen into ListLenU64 and ListLenUsize
...
The usize one gets used internally for things like
pattern matches. This is both more efficient (means
they don't have to do unnecessary casts) and also
less error-prone due to e.g. comparing length to
capacity, which is usize.
2024-02-14 21:00:49 -05:00
Richard Feldman
a15cc0589c
Revert "Fix some usize -> u64 in List patterns"
...
This reverts commit e8a0b0930d
.
2024-02-14 20:17:14 -05:00
Richard Feldman
c2ab73c115
Add a TODO comment for later
2024-02-14 20:16:28 -05:00
Richard Feldman
e8a0b0930d
Fix some usize -> u64 in List patterns
2024-02-13 12:50:55 -05:00
Folkert
7c104e291b
fix two repl panics
...
they now hit a runtime error and then report the type errors that caused the crash
2024-02-11 19:04:26 +01:00
Richard Feldman
24a38c4a26
Merge remote-tracking branch 'origin/main' into remove-nat
2024-02-11 12:26:36 -05:00
Folkert de Vries
0e7fee4e7f
Merge pull request #6486 from roc-lang/remove-unused-lowlevel
...
Remove unused lowlevel StrGetCapacity
2024-02-04 13:57:46 +01:00
JRI98
ad6900514b
Create symbols for struct fields before record update
2024-02-02 23:49:48 +00:00
Richard Feldman
f79ff6d496
Remove unused lowlevel StrGetCapacity
2024-02-01 21:37:16 -05:00
Richard Feldman
3e27e18566
Merge remote-tracking branch 'origin/main' into remove-nat
2024-01-29 07:23:58 -05:00
Folkert
1e744dca7c
missing functions for dev backend for glue
2024-01-27 14:51:09 +01:00
Richard Feldman
204cee7d60
Clean up more unused Nat stuff
2024-01-26 16:23:21 -05:00
Richard Feldman
76dcbee25f
Drop unused target_info from layout
2024-01-26 16:23:21 -05:00
Richard Feldman
9518d76cd8
Remove Num.bytesTo___ functions
...
These may be reintroduced in some form later,
but they don't handle endianness and it's not
clear builtins are the right place for them.
2024-01-26 16:23:19 -05:00
Richard Feldman
c4497f2c1c
Remove Nat from Num
2024-01-26 16:19:51 -05:00
Richard Feldman
70a1def63b
Update some docs to not reference Nat
2024-01-26 16:06:07 -05:00
Richard Feldman
2970fc4384
Merge remote-tracking branch 'origin/main' into str-unicode
2024-01-21 12:30:16 -05:00
Folkert
f1ffc36efe
add List.clone
2024-01-20 20:29:07 +01:00
Richard Feldman
b48fa0698a
Remove scalars and graphemes from Str
2024-01-17 21:30:34 -05:00
Anton-4
cd632fe549
Merge branch 'main' of github.com:roc-lang/roc into clippy-1.74
2023-12-25 17:05:37 +01:00
JRI98
689a1ff352
Fix list rest bind in when branch tuple destructure
2023-12-21 11:55:29 +00:00
Brendan Hansknecht
087ca115c9
create seamless slices when getting a substring
2023-12-05 22:46:43 -08:00
Brendan Hansknecht
3966d63e2f
add src and location to dbg
2023-12-02 21:18:31 -08:00
Ayaz
aaba3f4d82
Merge branch 'main' into clippy-1.74
2023-12-02 20:09:06 -06:00
Brendan Hansknecht
b7f72eff86
add basic Dbg desugaring and LowLevelDbg
2023-11-29 21:05:48 -08:00
Folkert
4fafc669b8
in record fields give a forced imported thunk a unique symbol
2023-11-28 23:47:53 +01:00