Commit graph

1253 commits

Author SHA1 Message Date
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
Agus Zubiaga
eb68bf943a
Merge branch 'main' into module-params 2024-01-27 09:36:20 -03: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
Agus Zubiaga
7b3317dbb6
Update unused warnings for inline imports
Now that imports can be limited to smaller scopes than the entire module,
unused import warnings need to work like unused def warnings.

This commit moves unused import warnings discovery and reporting from load
to canonicalization where we can track their usage per scope.

This also fixes a longstanding bug where unused exposed names from an import
were not reported if they were only used in a qualified manner.
2024-01-20 08:43:36 -03:00
Agus Zubiaga
710d62f754
Load and can new top-level imports
Previously, all imports were available in the header, so we could start
processing dependencies as soon as we parsed it. However, the new imports
are treated as defs, so we have to parse the whole module to find them.

This commit essentially moves the dependency resolution from the `LoadHeader`
phase to the `Parse` phase, and it updates canonicalization to introduce
module symbols into scope when a `ValueDef::ModuleImport` is encountered.

NOTE:
- The `imports` header still parses, but it's no longer wired up. I will remove
it in an upcoming commit.
- Ingested files and imports that appear in nested expressions are not
yet supported by load
2024-01-20 08:39:31 -03: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
Richard Feldman
b48fa0698a
Remove scalars and graphemes from Str 2024-01-17 21:30:34 -05:00
Richard Feldman
65738acb26
Update Str docs 2024-01-17 18:42:32 -05:00
Fabian Schmalzried
946f00e91b
Remove duplicate code in bitcode
Signed-off-by: Fabian Schmalzried <fabhof@posteo.de>
2024-01-16 16:19:39 +01:00
Anton-4
79ed84fff3
Merge pull request #6355 from B-Teague/merge-gitignore
Consolidate gitignore
2024-01-12 13:29:32 +01:00
Brian Teague
60c639b60e
Consolidate gitignore
Keep certain files with no file extension

Keep specific files with no file extension

Delete all gitignore files
2024-01-10 22:16:04 -05:00
Luke Boswell
6b77aa93d5
force windows_setjmp & windows_longjmp 2024-01-08 12:31:09 +11:00