Commit graph

4827 commits

Author SHA1 Message Date
Luca Cervello
b39f0d98b7
review: use parser suggestion 2022-10-17 18:43:28 +02:00
Ayaz Hafiz
7986514d20
Use runtime representation of values when building structural eq
Closes #4348
2022-10-17 11:36:57 -05:00
Anton-4
54ad5d3416
moved benchmarks to nix 2022-10-17 17:40:35 +02:00
Prajwal S N
07224e9086
builtin(list): add List.walkFrom, List.walkFromUntil
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2022-10-17 20:51:03 +05:30
Ayaz Hafiz
f13c57be8b
Tighten up infinite loop error 2022-10-17 10:02:40 -05:00
Ayaz Hafiz
3d34de5fc1
Remove test caught by reporting tests 2022-10-17 09:59:34 -05:00
Ayaz Hafiz
ecab8fa25a
Make sure self-recursive checks only happen after typechecking
Programs like

```
after : ({} -> a), ({} -> b) -> ({} -> b)

fx = after (\{} -> {}) \{} -> if Bool.true then fx {} else {}
```

are legal because they always decay to functions, even if they may not
look like functions syntactically. Rather than using a syntactic check
to check for illegally-recursive functions, we should only perform such
checks after we know the types of values.

Closes #4291
2022-10-17 09:59:32 -05:00
Ayaz Hafiz
c5cdab1ff9
Only ftruncate shm_open'd file once, and add some error messages 2022-10-17 09:45:34 -05:00
Anton-4
3dad6aba7c
moved platform-switching 2022-10-17 15:22:20 +02:00
Richard Feldman
e6fd0c62fd
Do an explicit cast that doesn't make sense
I don't know why this is what the compiler wants,
given that the docs say it shouldn't need a cast,
but this is for some reason what the compiler wants.
2022-10-16 18:43:03 -04:00
Richard Feldman
dc205eab66
Merge pull request #4332 from roc-lang/windows-program-loading-scratchpad
Windows program loading
2022-10-16 15:30:19 -07:00
Folkert
f562d61505
int cast on macos 2022-10-16 18:32:55 +02:00
Folkert
92afe5a46e
add case to emit wasm via llvm 2022-10-16 17:02:23 +02:00
Folkert
82ca7fc8c5
an attempt to fix the repl tests 2022-10-16 15:56:24 +02:00
Christopher Duncan
7131432e7c
Dynamically generate the documentation title 2022-10-16 09:04:53 -04:00
Folkert
13fcef3e2c
one more windows fix 2022-10-16 14:28:54 +02:00
Folkert
7143abdedb
remove unused import on windows 2022-10-16 14:28:01 +02:00
Folkert
faf2029510
fix windows compilation problem 2022-10-16 14:23:50 +02:00
Folkert
323210c547
Merge remote-tracking branch 'origin/main' into roc-dev-inline-expects 2022-10-16 13:56:30 +02:00
Folkert
a063bfcd30
changes after review 2022-10-16 13:26:48 +02:00
Folkert
73e48c9b7c
add better comments 2022-10-16 01:03:03 +02:00
Folkert
b822c1c617
basics test now works! 2022-10-15 20:45:20 +02:00
Folkert
c15ab0461a
Merge remote-tracking branch 'origin/main' into windows-program-loading-scratchpad 2022-10-15 20:39:53 +02:00
Folkert
0e08ccdc0c
enable test that works 2022-10-15 20:34:24 +02:00
Folkert
ebc3e770de
more cleanup 2022-10-15 20:33:01 +02:00
Folkert
a5935b262b
cleanup 2022-10-15 20:31:36 +02:00
Folkert
e8dc02d578
remove unused import on windows 2022-10-15 20:30:59 +02:00
Folkert
b5fb200a91
ensure sections never have 0 virtual size 2022-10-15 20:29:50 +02:00
Folkert
b3cf1c6812
extract .dll relocation logic into function 2022-10-15 20:24:14 +02:00
Folkert
4c51893632
get rid of constants 2022-10-15 20:16:31 +02:00
Folkert
7ab46a144b
cleanup 2022-10-15 20:12:06 +02:00
Folkert
fdd921aeeb
add extra fields to metadata 2022-10-15 20:09:56 +02:00
Anton-4
d6885bde23
Merge pull request #4299 from cjduncana/ci-markdown-links
Repair broken links in Markdown
2022-10-15 19:32:25 +02:00
Folkert
7529e10580
wip 2022-10-15 19:15:56 +02:00
Anton-4
d242895ff9
Merge pull request #4254 from roc-lang/wasm32_cli_run
wasm 32 cli run fixes, added to ci tests
2022-10-15 18:41:52 +02:00
Anton-4
2f8dcb7e12
Merge pull request #4298 from lucacervello/replace-panic!-with-internal-error!-in-compiler-crates
Replace panic! with internal_error! in `compiler/build`, `compiler/alias_analysis` and `compiler/arena_pool`
2022-10-15 17:05:25 +02:00
Anton-4
eb727bd8b0
fixed links, minimal exceptions
Replaced lorem ipsum links with links to roc-lang. All exceptions added are due to problems with those sites and their interaction with programs like curl
2022-10-15 14:25:03 +02:00
Folkert
041d367e53
Cargo.lock updates ?! 2022-10-15 14:05:33 +02:00
Folkert
5aebf645bf
run .wasm files in cli tests 2022-10-15 14:05:19 +02:00
Anton-4
a0dc33e796
improve comments 2022-10-15 12:44:42 +02:00
Anton-4
652dbde26e
editor launch fix + new test 2022-10-15 12:36:06 +02:00
Anton-4
78e66c6c26
format Str.roc 2022-10-15 11:19:54 +02:00
Anton-4
762bd43e5f
minor improvements
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-15 09:46:41 +02:00
Luke Boswell
a99fe32bff
Merge branch 'roc-lang:main' into updating-docs 2022-10-15 18:32:37 +11:00
Anton-4
789586f545
add link with explanation of grapheme
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-15 09:17:08 +02:00
Luke Boswell
e1e084a68d
remove >>> from comments 2022-10-15 16:29:42 +11:00
Luke Boswell
1b4e89203d
updated Str builtin documentation 2022-10-15 16:15:43 +11:00
Ayaz
c1c339dbdf
Merge pull request #4304 from roc-lang/i4259
Make sure type variables bound to abilities are instantiated in aliases
2022-10-14 16:07:58 -05:00
Folkert
e63dba8e2f
minimal wasi benchmarks 2022-10-14 21:59:34 +02:00
Ayaz Hafiz
5e35b6458a
Apply lint suggestions 2022-10-14 13:56:01 -05:00