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
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
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
Richard Feldman
f79ff6d496
Remove unused lowlevel StrGetCapacity
2024-02-01 21:37:16 -05: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
a925478f8d
Correct wasm32 alignment for 128bit types
2024-01-30 16:53:42 -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
73d4a4ee56
wasm: incorrect step used to read RocList elements
2024-01-30 18:51:14 +01:00
Folkert
e16b25c93e
Num.pow for Dec
2024-01-30 16:33:50 +01:00
Folkert
2e648cfdd5
add support in llvm/wasm backends
2024-01-29 16:16:06 +01: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
a8918a4e3b
Update List.dropAt to no longer use Nat
2024-01-26 16:06:09 -05:00
Richard Feldman
4a870c8ee0
Update Nat to U64 in some comments
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
97f21e65fe
Update ListLen and ListGetUnsafe to not use Nat
2024-01-26 16:05:56 -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
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
Brendan Hansknecht
e336aa525c
Merge pull request #6062 from JRMurr/div-0-should-crash
...
Update zig `@panic` calls to `roc_panic` for numeric errors
2023-12-05 12:28:47 -08:00
Brendan Hansknecht
787d7f85ac
switch dbg arg ordering to make it backwards compatible
2023-12-02 21:18:32 -08:00
Brendan Hansknecht
13d2238536
update roc_dbg in platforms
2023-12-02 21:18:31 -08:00
Ayaz
20bcd70ad2
Merge branch 'main' into div-0-should-crash
2023-12-02 20:10:32 -06:00
Brendan Hansknecht
3e66254b25
update zig and rust platforms to have correct roc_panic and roc_dbg
2023-11-29 21:49:34 -08:00
John Murray
298f93d20c
update a bunch of panic message to be capitalized
2023-11-28 20:46:09 -05:00
Brendan Hansknecht
248976d632
fix wasm tests
2023-11-28 16:40:43 -08:00
HajagosNorbert
9c21ac1388
rename to GetElementPointer, index -> indices
2023-11-13 15:48:05 +01:00
HajagosNorbert
90223022af
remove tag_id in favor of index
2023-11-13 15:48:05 +01:00
HajagosNorbert
347431d1df
index to slice of indicies
2023-11-13 15:48:05 +01:00
Brian Carroll
a2f4d418bb
Fix Wasm backend compile error in Web REPL build
2023-11-06 08:08:00 +00:00
Brian Carroll
eb76ec4e90
Simplify call_import and call
2023-11-05 23:57:37 +00:00
Brian Carroll
10b0357140
Trim load_symbols_for_call
2023-11-05 23:55:26 +00:00
Brian Carroll
87ef10a4e5
Remove unused args from lowlevel helpers
2023-11-05 23:45:29 +00:00
Brian Carroll
84a230a2e5
Remove unused args from call
2023-11-05 23:32:20 +00:00
Brian Carroll
4b0c5fd0c6
Delete pushes and pops for each instruction
2023-11-05 23:20:47 +00:00
Brian Carroll
b5d3af0522
Delete VmBlock, vm_block_stack
2023-11-05 23:20:47 +00:00
Brian Carroll
86a6a3ace5
Delete current_stack, VmSymbolState, stack_is_empty, current_stack
2023-11-05 23:20:46 +00:00
Brian Carroll
664de9b285
Delete verify_stack_match
2023-11-05 23:20:46 +00:00
Brian Carroll
a76c4420fa
CodeBuilder tracks which local variables are set
2023-11-05 23:20:46 +00:00
Brian Carroll
8636299155
Remove redundant pattern match
2023-11-05 23:20:46 +00:00
Brian Carroll
8fe9758460
Remove some stray calls to load_args
2023-11-05 23:20:46 +00:00
Brian Carroll
563ad8f1fb
Delete some unused code from codebuilder and storage
2023-11-05 23:20:46 +00:00
Brian Carroll
5719384ed9
Get rid of VM stack storage
2023-11-05 23:20:46 +00:00