Commit graph

959 commits

Author SHA1 Message Date
Richard Feldman
37b154df4f
Remove Str.fromUtf8Range
Seamless slices make this obsolete!
2024-02-17 13:20:33 -05:00
Richard Feldman
d378a14414
Minor zig refactor 2024-02-13 19:49:11 -05:00
Richard Feldman
b2ce7e5fcf
Rearrange where usize -> u64 conversions happen 2024-02-13 12:50:40 -05:00
Richard Feldman
24a38c4a26
Merge remote-tracking branch 'origin/main' into remove-nat 2024-02-11 12:26:36 -05:00
Anton-4
3c7a834da1
update to new interpolation syntax 2024-02-02 13:39:10 +01:00
Brendan Hansknecht
fc6b519b59
Merge pull request #6463 from roc-lang/dec-pow
`Num.pow` for `Dec`
2024-02-01 09:17:55 -08:00
Richard Feldman
0b42a902ab
Have List.withCapacity lowlevel use u64 over usize 2024-01-31 20:29:17 -05:00
Richard Feldman
aabd95404f
Merge remote-tracking branch 'origin/main' into remove-nat 2024-01-30 21:42:45 -05:00
Brendan Hansknecht
90a1468e37
Change our alignment for 128bit numbers to match llvm 18 and correct abi 2024-01-30 16:38:30 -08:00
Brendan Hansknecht
e7be9d435d
Merge pull request #6460 from roc-lang/dec-div-floor
`floor`, `ceiling` and `round` for `Dec`
2024-01-30 16:38:12 -08:00
Folkert
e16b25c93e
Num.pow for Dec 2024-01-30 16:33:50 +01:00
Kiryl Dziamura
b3dfdb562b
crash on rem div by zero 2024-01-30 11:12:02 +01:00
Folkert
db3b40a07b
Dec floor/ceiling/round 2024-01-29 13:39:38 +01:00
Richard Feldman
3e27e18566
Merge remote-tracking branch 'origin/main' into remove-nat 2024-01-29 07:23:58 -05:00
Folkert
a7212ceb7f
add fract/trunc functions to zig RocDec 2024-01-29 12:44:34 +01:00
Folkert
979128cf32
make division by zero (integer) not trap 2024-01-29 01:38:32 +01:00
Folkert de Vries
4a593a5b77
Merge pull request #6442 from roc-lang/dev-backend-glue-primitives
Dev backend glue primitives
2024-01-29 00:08:51 +01:00
Richard Feldman
3be96e52d8
roc format 2024-01-28 16:35:57 -05:00
Folkert
d4cac5cdd9
dict: use Num.mulWrap to prevent branches 2024-01-28 16:53:23 +01:00
Folkert
1e744dca7c
missing functions for dev backend for glue 2024-01-27 14:51:09 +01:00
Richard Feldman
eb3dc3d582
Drop unused import in Hash.roc 2024-01-26 16:23:20 -05:00
Richard Feldman
fb84c9487d
Remove Num.Natural, Num.toNat, and Num.toNatChecked 2024-01-26 16:23:20 -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
ef634ba8e4
Remove Nat from documentation 2024-01-26 16:22:42 -05:00
Richard Feldman
c4497f2c1c
Remove Nat from Num 2024-01-26 16:19:51 -05:00
Richard Feldman
502b0fddf2
Remove Nat from Hash, Inspect, Encode, Decode 2024-01-26 16:17:05 -05:00
Richard Feldman
5b2998966b
Update List.replace to no longer use Nat 2024-01-26 16:06:09 -05:00
Richard Feldman
a8918a4e3b
Update List.dropAt to no longer use Nat 2024-01-26 16:06:09 -05:00
Richard Feldman
a71188dc30
Update List.sublist to no longer use Nat 2024-01-26 16:06:08 -05:00
Richard Feldman
2cf7b5b5ca
Update List.swap to no longer use Nat 2024-01-26 16:06:08 -05:00
Richard Feldman
27474d4ed8
Update List.reserve to no longer use Nat 2024-01-26 16:06:08 -05:00
Richard Feldman
6140c5023b
Remove Nat from TotallyNotJson 2024-01-26 16:05:57 -05:00
Richard Feldman
16ddb16177
Update Dict to no longer use Nat 2024-01-26 16:05:57 -05:00
Richard Feldman
77a10986d6
Update Set to no longer use Nat 2024-01-26 16:05:57 -05:00
Richard Feldman
97f21e65fe
Update ListLen and ListGetUnsafe to not use Nat 2024-01-26 16:05:56 -05:00
Richard Feldman
2e72021a74
Drop some obsolete U64 conversions in Str 2024-01-26 16:05:56 -05:00
Richard Feldman
df5b10e981
Update a readme to no longer mention Nat 2024-01-26 16:05:56 -05:00
Richard Feldman
bca6417a9d
Fix @as and @intCast argument order 2024-01-26 16:00:52 -05:00
Richard Feldman
a1656381c5
Update some Result docs 2024-01-26 16:00:33 -05:00
Richard Feldman
9e3cff61d7
Remove Nat uses from Str 2024-01-26 16:00:33 -05:00
Brian Teague
4499f8c6f4
isApproxEq function 2024-01-23 21:06:35 -05:00
Richard Feldman
a8b271c8d5
Copy tweaks to Str docs 2024-01-23 00:05:06 -05:00
Brendan Hansknecht
62c4c2dcb5
Merge branch 'main' into main 2024-01-21 12:17:44 -08: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
e7c93bad75
Restore » in docs and allow it in highlighter 2024-01-18 22:23:06 -05:00
Richard Feldman
09c0453fc9
Fix HTML build 2024-01-18 21:51:50 -05:00
Luke Boswell
85fdef8a9b
fix doc comments in Str 2024-01-19 09:56:53 +11:00
Richard Feldman
894860118b
roc format on builtins 2024-01-18 06:34:51 -05:00
Richard Feldman
88ea8ffb67
fix typo 2024-01-17 21:51:39 -05:00