Ayaz
|
fae90c9fd2
|
Merge pull request #4187 from roc-lang/ranged-char-literal
Single-quote literals behave like ranged numbers
|
2022-10-07 15:05:09 -05:00 |
|
Ayaz
|
7752ecc895
|
Merge pull request #4224 from roc-lang/is-zero-lowlevel
Implement Num.isZero as a low-level
|
2022-10-07 15:03:55 -05:00 |
|
Prajwal S N
|
9013e4ce11
|
builtin(str): implement withCapacity
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
|
2022-10-08 00:24:46 +05:30 |
|
Brendan Hansknecht
|
d06966392f
|
Add smarter list capacity growth calculations
|
2022-10-07 08:59:32 -07:00 |
|
Ayaz
|
addfa29a56
|
Merge pull request #4227 from snprajwal/list-expose-walktry
builtin(list): expose walkTry
|
2022-10-07 09:45:21 -05:00 |
|
Anton-4
|
c6ec3d5d30
|
Merge branch 'main' of github.com:roc-lang/roc into simplify_examples
|
2022-10-07 16:00:32 +02:00 |
|
Ayaz
|
f0786121fb
|
Merge pull request #4222 from roc-lang/explicit-imports-in-prelude
List dependencies in the stdlib explicitly rather than hard-coding
|
2022-10-07 02:39:54 -05:00 |
|
Ayaz
|
2cf1309326
|
Update crates/compiler/builtins/roc/List.roc
Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
|
2022-10-06 16:19:15 -05:00 |
|
Prajwal S N
|
0f96dddc25
|
builtin(list): expose walkTry
Fixes: #4168
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
|
2022-10-07 00:03:18 +05:30 |
|
Anton-4
|
2986956929
|
serialize cli_platform cli_run tests
|
2022-10-06 20:14:51 +02:00 |
|
Ayaz
|
a5a984ca45
|
Merge pull request #4217 from roc-lang/hashing-perf
Misc hashing perf
|
2022-10-05 20:00:46 -05:00 |
|
Ayaz Hafiz
|
d9207137e8
|
Implement Num.isZero as a low-level
This will be needed ahead of the `Eq` ability.
Closes #4223
|
2022-10-05 19:47:29 -05:00 |
|
Ayaz Hafiz
|
5416eb7cbf
|
List dependencies in the stdlib explicitly rather than hard-coding
|
2022-10-05 18:53:49 -05:00 |
|
Ayaz
|
0b57b00235
|
Merge pull request #4205 from roc-lang/more-hash-derivers
Support deriving `Hash` for inductive records
|
2022-10-05 17:30:02 -05:00 |
|
Ayaz Hafiz
|
262d13ffe7
|
Simplify char pattern matching in json parser
|
2022-10-05 17:28:02 -05:00 |
|
Ayaz Hafiz
|
7064d1c060
|
Gen test for char pattern matching
|
2022-10-05 17:28:01 -05:00 |
|
Ayaz Hafiz
|
9d91b9bc5a
|
Add reporting case for inferred char range type mismatch
|
2022-10-05 17:28:01 -05:00 |
|
Ayaz Hafiz
|
912cebc33d
|
Add tests for inferring char ranged number
|
2022-10-05 17:28:01 -05:00 |
|
Ayaz Hafiz
|
619cd2f629
|
Infer ranged number for chars in patterns
|
2022-10-05 17:28:01 -05:00 |
|
Ayaz Hafiz
|
9054266a76
|
Simplify Json.roc
|
2022-10-05 17:28:01 -05:00 |
|
Ayaz Hafiz
|
178b634266
|
Treat single quote literals as ranged numbers for inference purposes
|
2022-10-05 17:28:00 -05:00 |
|
Ayaz Hafiz
|
077508114d
|
Fix repl examination of FunctionOrTagUnion
|
2022-10-05 17:25:12 -05:00 |
|
Ayaz Hafiz
|
16f43f5768
|
Clippy
|
2022-10-05 17:25:12 -05:00 |
|
Ayaz Hafiz
|
33d007a17b
|
Exercise both dispatch branches in test
|
2022-10-05 17:25:12 -05:00 |
|
Ayaz Hafiz
|
ed9f37a756
|
Add gen test for tag function dispatch
|
2022-10-05 17:25:12 -05:00 |
|
Ayaz Hafiz
|
06e5110aa5
|
Unification of multiple tag-functions
|
2022-10-05 17:25:11 -05:00 |
|
Ayaz Hafiz
|
61cf8e53e6
|
Have FunctionOrTagUnion include multiple possible tags
|
2022-10-05 17:24:52 -05:00 |
|
Ayaz
|
797763b5fa
|
Merge pull request #4216 from roc-lang/fix-envp
fix envp
|
2022-10-05 17:01:31 -05:00 |
|
Ayaz
|
4f1d7fca9a
|
Merge pull request #4218 from roc-lang/rollup-10-05
Misc bugfixes 10-05
|
2022-10-05 14:52:11 -05:00 |
|
Ayaz Hafiz
|
73210469db
|
Add tests for env var passing
|
2022-10-05 14:36:34 -05:00 |
|
Ayaz
|
596f14d173
|
Merge pull request #4203 from roc-lang/shift-signature
Have `Num.shift*By` functions shift by a `U8`
|
2022-10-05 13:26:36 -05:00 |
|
Ayaz Hafiz
|
a842247aa6
|
Unused import
|
2022-10-05 13:09:10 -05:00 |
|
Ayaz Hafiz
|
f849bab6f1
|
Ignore large bit abs on wasm
|
2022-10-05 13:06:44 -05:00 |
|
Ayaz Hafiz
|
792afe5457
|
Remove TagDiscriminant low-level
|
2022-10-05 13:00:45 -05:00 |
|
Ayaz Hafiz
|
cb96a64259
|
Implement hashing tag discriminants in derivers, rather than using low-level
This makes it so we can decide the discriminant in the front-end. With
this, we can also now revert the `LowLevel::TagDiscriminant`
introductions.
|
2022-10-05 12:58:04 -05:00 |
|
Ayaz Hafiz
|
a308ebb38c
|
Optimize derived hash implementation for newtypes
When we have a newtype tag union, there is no reason to hash its
discriminant.
|
2022-10-05 12:19:35 -05:00 |
|
Ayaz Hafiz
|
2517695ce4
|
Fix deriving of hash ability for recursive tag unions
|
2022-10-05 12:01:02 -05:00 |
|
Ayaz Hafiz
|
e31a16f650
|
Properly wrap with newtype-by-void layouts in repl
Closes #4208
|
2022-10-05 11:17:57 -05:00 |
|
Brendan Hansknecht
|
ca92b5e8e8
|
Increase the inline threshold
|
2022-10-05 08:11:10 -07:00 |
|
Brendan Hansknecht
|
4ebe1b2bce
|
Avoid allocating a new list when calling List.sublist
|
2022-10-05 08:11:02 -07:00 |
|
Folkert
|
5d8f04575e
|
fix envp passing
|
2022-10-05 16:49:13 +02:00 |
|
Ayaz Hafiz
|
657346a057
|
Support Num.abs for non-64 bit integer types
Closes #4210
|
2022-10-05 08:39:45 -05:00 |
|
Ayaz Hafiz
|
df3b7cb1b4
|
Preserve comments before header
Closes #4212
|
2022-10-05 08:34:30 -05:00 |
|
Folkert
|
e1b7dbb0d9
|
refactor program running IO
|
2022-10-05 13:38:30 +02:00 |
|
Ayaz
|
02b02901bc
|
Update crates/compiler/test_gen/src/gen_abilities.rs
Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
|
2022-10-04 18:58:30 -05:00 |
|
Ayaz Hafiz
|
c7bd4e1c1c
|
Support upcasting bools to ints in the wasm backend
|
2022-10-04 18:55:45 -05:00 |
|
Ayaz Hafiz
|
725054b8f3
|
Add TODO recursive tag union hashing test
|
2022-10-04 18:17:35 -05:00 |
|
Ayaz Hafiz
|
5389cdd87f
|
Add gen test for newtype, byte union, unit tag union hash deriving
|
2022-10-04 18:11:41 -05:00 |
|
Ayaz Hafiz
|
41c9985c53
|
Support newtypes and unit tag union hash deriving
|
2022-10-04 18:11:37 -05:00 |
|
Ayaz Hafiz
|
251b3865d9
|
Implement tag union discriminant extraction for byte- and newtype-variants
|
2022-10-04 18:04:46 -05:00 |
|