Folkert
e62ab00c65
Merge remote-tracking branch 'origin/main' into roc-dev-inline-expects
2022-10-09 18:46:57 +02:00
Richard Feldman
5dafad506e
Merge pull request #4240 from roc-lang/list-growth
...
List growth
2022-10-08 23:58:49 -07:00
Richard Feldman
8b3d73dfbc
Merge pull request #4249 from snprajwal/list-walkBckwardsUntil
...
builtin(list): implement List.walkBackwardsUntil
2022-10-08 23:47:29 -07:00
Richard Feldman
d743c6954a
Merge pull request #4241 from joshuawarner32/joshuawarner32/fix-lambda-indentation
...
Don't allow closures to gobble unindented expr lines following them
2022-10-08 19:30:02 -07:00
Richard Feldman
3d5728d82c
Merge pull request #4257 from roc-lang/i4246
...
Correctly check mutual functional recursion between opaque types
2022-10-08 16:20:27 -07:00
Ayaz
51c687df54
Merge branch 'main' into i4150
...
Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
2022-10-08 16:08:35 -05:00
Ayaz
8184262c08
Merge pull request #4247 from roc-lang/list-doc-fixes
...
Corrections for List docs
2022-10-08 14:31:56 -05:00
Ayaz
9d05bcd9d8
Merge pull request #4237 from snprajwal/str-withcapacity
...
builtin(str): implement Str.withCapacity
2022-10-08 14:31:30 -05:00
Joshua Warner
4d4c0d9483
Don't allow closures to gobble unindented expr lines following them
2022-10-08 11:05:05 -07:00
Joshua Warner
ab4e03b05d
Rename Lambda -> Closure for consistency
2022-10-08 11:05:05 -07:00
Anton-4
a44f692563
Merge remote-tracking branch 'upstream/main' into list-walkBckwardsUntil
2022-10-08 19:55:47 +02:00
Ayaz Hafiz
d9863cbbaa
Correctly check mutual functional recursion between opaque types
...
The mutual-recursion checks does not admit types that are not function
types; because Roc is strict, only functional values can be involved in
mutual recursion. However, this check was exercised by checking the head
constructor of a type, which is not the correct way to do it. Aliases
and opaque types may in fact be function types as well, so we must chase
their actual contents.
Closes #4246
2022-10-08 10:09:55 -05:00
Brendan Hansknecht
aca6f2a8f1
add todo around improving performance
2022-10-08 07:53:50 -07:00
Brendan Hansknecht
8269986113
remove comment on zero width types.
...
They should not affect the normal case. It is better they affect the capacity calculation
2022-10-08 07:53:33 -07:00
dependabot[bot]
654a51335a
Bump dunce from 1.0.2 to 1.0.3
...
Bumps [dunce](https://gitlab.com/kornelski/dunce ) from 1.0.2 to 1.0.3.
- [Release notes](https://gitlab.com/kornelski/dunce/tags )
- [Commits](https://gitlab.com/kornelski/dunce/commits/v1.0.3 )
---
updated-dependencies:
- dependency-name: dunce
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-08 14:50:13 +00:00
Jan Van Bruggen
8ada13cc3b
Merge pull request #4015 from roc-lang/simplify_examples
...
Drastically simplify examples directory
2022-10-08 03:46:12 -06:00
Prajwal S N
cbceeff902
builtin(list): implement List.walkBackwardsUntil
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2022-10-08 14:23:06 +05:30
Brian Carroll
4bebe7e236
Corrections for List docs
2022-10-08 08:40:29 +01:00
Brendan Hansknecht
eca4682787
deal with zero element_width
...
That being said, this only affects wasm.
So wasm probably should be handling zero element lists in a smarter way.
2022-10-07 17:58:48 -07:00
Brendan Hansknecht
557ee69557
fix minor typo
2022-10-07 17:11:46 -07:00
Brendan Hansknecht
1665f7160d
Fix bug in reallocate
2022-10-07 17:11:33 -07:00
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
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
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
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
Folkert
61c26dfd4d
pick whether to do expects based on the opt level
2022-10-06 00:06:43 +02:00
Folkert
b09c631895
cleanup
2022-10-05 23:59:29 +02:00
Folkert
fe9da8316d
clone less
2022-10-05 23:45:31 +02:00
Folkert
f838a94c00
extra target/codegen config
2022-10-05 23:19:44 +02:00
Folkert
8c4a2f58fc
working expects in roc dev
2022-10-05 22:17:40 +02:00