Commit Graph

884 Commits

Author SHA1 Message Date
Ayaz Hafiz
9d170be5c7
Add layout interner to load_internal 2022-08-31 14:33:51 -05:00
Ayaz Hafiz
14291c4ebc
Add an interner crate 2022-08-31 14:33:51 -05:00
Ayaz Hafiz
7a7a4fa680
Use fnv hasher for layout cache 2022-08-31 14:26:16 -05:00
Ayaz Hafiz
d13b556295
Trace stats for layout cache 2022-08-31 14:16:43 -05:00
dependabot[bot]
048766cb3a
Bump memmap2 from 0.5.5 to 0.5.7
Bumps [memmap2](https://github.com/RazrFalcon/memmap2-rs) from 0.5.5 to 0.5.7.
- [Release notes](https://github.com/RazrFalcon/memmap2-rs/releases)
- [Changelog](https://github.com/RazrFalcon/memmap2-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.5...v0.5.7)

---
updated-dependencies:
- dependency-name: memmap2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 12:34:16 +00:00
dependabot[bot]
3745bdeb8a
Bump glyph_brush from 0.7.4 to 0.7.5
Bumps [glyph_brush](https://github.com/alexheretic/glyph-brush) from 0.7.4 to 0.7.5.
- [Release notes](https://github.com/alexheretic/glyph-brush/releases)
- [Commits](https://github.com/alexheretic/glyph-brush/compare/glyph-brush-0.7.4...glyph-brush-0.7.5)

---
updated-dependencies:
- dependency-name: glyph_brush
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 12:33:54 +00:00
Folkert de Vries
00772c3315
Merge pull request #3932 from roc-lang/dependabot/cargo/futures-0.3.24
Bump futures from 0.3.21 to 0.3.24
2022-08-30 14:32:54 +02:00
Folkert de Vries
5c7acf8f72
Merge pull request #3933 from roc-lang/dependabot/cargo/clap-3.2.18
Bump clap from 3.2.11 to 3.2.18
2022-08-30 14:32:41 +02:00
Folkert de Vries
18b45069b3
Merge pull request #3862 from roc-lang/dependabot/cargo/bytemuck-1.12.1
Bump bytemuck from 1.11.0 to 1.12.1
2022-08-30 12:18:31 +02:00
dependabot[bot]
492eff3556
Bump clap from 3.2.11 to 3.2.18
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.11 to 3.2.18.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.18/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.11...v3.2.18)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 10:17:11 +00:00
dependabot[bot]
52b4aecb4c
Bump futures from 0.3.21 to 0.3.24
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.21 to 0.3.24.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.21...0.3.24)

---
updated-dependencies:
- dependency-name: futures
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 10:15:46 +00:00
Folkert de Vries
3dbf6cc99b
Merge pull request #3859 from roc-lang/dependabot/cargo/insta-1.19.0
Bump insta from 1.18.2 to 1.19.0
2022-08-30 12:14:24 +02:00
Richard Feldman
adb89bbf82
Merge pull request #3734 from roc-lang/decoding-optional-record-fields-illegal
Report errors for attempting to derive decoding of records with optional field types
2022-08-27 21:12:44 -04:00
Brian Carroll
6bae249a71
Add dummy roc_alloc in roc_docs_cli for Windows 2022-08-26 08:44:31 +01:00
Folkert de Vries
a8b83cfe37
Merge pull request #3858 from roc-lang/surgical-generate-dylib
Surgical generate dylib
2022-08-25 09:03:52 +02:00
Brian Carroll
6038a5da0d
cli: use memexec crate to execute raw bytes on Windows without spawning a process 2022-08-24 21:36:49 +01:00
Folkert de Vries
c06e5cfa32
Merge pull request #3769 from roc-lang/expect-fx-codegen
expect fx codegen
2022-08-24 19:48:42 +02:00
Ayaz Hafiz
963911814f
Print traces to files with ROC_LOGTO 2022-08-23 15:37:33 -05:00
Ayaz Hafiz
2b9013c5f5
Add roc_tracing to test_mono 2022-08-23 13:11:30 -05:00
Ayaz Hafiz
848facb386
Add roc_tracing crate and initial traces in mono 2022-08-23 12:47:41 -05:00
Ayaz Hafiz
55fe1df995
Add more context to derivability errors when they happen 2022-08-23 10:39:50 -05:00
Folkert
a22e04361c
Merge remote-tracking branch 'origin/main' into expect-fx-codegen 2022-08-23 16:28:21 +02:00
dependabot[bot]
22ba03f72f
Bump bytemuck from 1.11.0 to 1.12.1
Bumps [bytemuck](https://github.com/Lokathor/bytemuck) from 1.11.0 to 1.12.1.
- [Release notes](https://github.com/Lokathor/bytemuck/releases)
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md)
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.11.0...v1.12.1)

---
updated-dependencies:
- dependency-name: bytemuck
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 05:24:59 +00:00
dependabot[bot]
0f31f0f07a
Bump insta from 1.18.2 to 1.19.0
Bumps [insta](https://github.com/mitsuhiko/insta) from 1.18.2 to 1.19.0.
- [Release notes](https://github.com/mitsuhiko/insta/releases)
- [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/insta/compare/1.18.2...1.19.0)

---
updated-dependencies:
- dependency-name: insta
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 05:22:53 +00:00
Folkert
61ae913972
attempt at generating the dylib without an external linker 2022-08-17 23:40:19 +02:00
Brian Carroll
fa1a870d4b
Merge pull request #3791 from roc-lang/dependabot/cargo/indoc-1.0.7
Bump indoc from 1.0.6 to 1.0.7
2022-08-15 21:04:16 +01:00
Brian Carroll
2227b3d11d
Merge pull request #3813 from roc-lang/dependabot/cargo/crossbeam-0.8.2
Bump crossbeam from 0.8.1 to 0.8.2
2022-08-15 21:03:09 +01:00
dependabot[bot]
4c6ad52c47
Bump indoc from 1.0.6 to 1.0.7
Bumps [indoc](https://github.com/dtolnay/indoc) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/dtolnay/indoc/releases)
- [Commits](https://github.com/dtolnay/indoc/compare/1.0.6...1.0.7)

---
updated-dependencies:
- dependency-name: indoc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 13:18:18 +00:00
dependabot[bot]
2dbb017403
Bump crossbeam from 0.8.1 to 0.8.2
Bumps [crossbeam](https://github.com/crossbeam-rs/crossbeam) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-0.8.1...crossbeam-0.8.2)

---
updated-dependencies:
- dependency-name: crossbeam
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 13:16:53 +00:00
Ayaz
0d96f4fc7d
Merge pull request #3806 from roc-lang/dependabot/cargo/encode_unicode-1.0.0
Bump encode_unicode from 0.3.6 to 1.0.0
2022-08-15 08:16:49 -05:00
Ayaz
a6cdd3355f
Merge pull request #3807 from roc-lang/dependabot/cargo/dircpy-0.3.12
Bump dircpy from 0.3.10 to 0.3.12
2022-08-15 08:16:21 -05:00
dependabot[bot]
cd3e2c8d36
Bump hashbrown from 0.12.2 to 0.12.3
Bumps [hashbrown](https://github.com/rust-lang/hashbrown) from 0.12.2 to 0.12.3.
- [Release notes](https://github.com/rust-lang/hashbrown/releases)
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.12.2...v0.12.3)

---
updated-dependencies:
- dependency-name: hashbrown
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 05:30:58 +00:00
dependabot[bot]
7d174089ae
Bump dircpy from 0.3.10 to 0.3.12
Bumps [dircpy](https://github.com/woelper/dircpy) from 0.3.10 to 0.3.12.
- [Release notes](https://github.com/woelper/dircpy/releases)
- [Commits](https://github.com/woelper/dircpy/commits)

---
updated-dependencies:
- dependency-name: dircpy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 05:30:48 +00:00
dependabot[bot]
be82551719
Bump encode_unicode from 0.3.6 to 1.0.0
Bumps [encode_unicode](https://github.com/tormol/encode_unicode) from 0.3.6 to 1.0.0.
- [Release notes](https://github.com/tormol/encode_unicode/releases)
- [Changelog](https://github.com/tormol/encode_unicode/blob/master/RELEASES.md)
- [Commits](https://github.com/tormol/encode_unicode/compare/v0.3.6...v1.0.0)

---
updated-dependencies:
- dependency-name: encode_unicode
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 05:30:40 +00:00
Ayaz
b2a8693316
Merge pull request #3787 from roc-lang/dependabot/cargo/wasm-bindgen-futures-0.4.32
Bump wasm-bindgen-futures from 0.4.31 to 0.4.32
2022-08-14 10:30:42 -05:00
Ayaz
010a650633
Merge pull request #3789 from roc-lang/dependabot/cargo/serial_test-0.9.0
Bump serial_test from 0.8.0 to 0.9.0
2022-08-14 10:30:16 -05:00
Ayaz
8e8fd063c0
Merge pull request #3790 from roc-lang/dependabot/cargo/bytemuck-1.11.0
Bump bytemuck from 1.10.0 to 1.11.0
2022-08-14 10:29:14 -05:00
Folkert de Vries
f2a6310137
Merge pull request #3735 from roc-lang/turn-on-abilities-wasm-tests
Turn abilities tests for wasm dev and wasm LLVM back on
2022-08-14 16:18:48 +02:00
Folkert
edfa5c90a0
update Cargo.lock 2022-08-14 14:59:27 +02:00
dependabot[bot]
936e80ff92
Bump bytemuck from 1.10.0 to 1.11.0
Bumps [bytemuck](https://github.com/Lokathor/bytemuck) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/Lokathor/bytemuck/releases)
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md)
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.10.0...v1.11.0)

---
updated-dependencies:
- dependency-name: bytemuck
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-14 09:18:21 +00:00
dependabot[bot]
a43ee0dfe2
Bump serial_test from 0.8.0 to 0.9.0
Bumps [serial_test](https://github.com/palfrey/serial_test) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/palfrey/serial_test/releases)
- [Commits](https://github.com/palfrey/serial_test/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: serial_test
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-14 09:18:07 +00:00
dependabot[bot]
cd0a26c2c2
Bump wasm-bindgen-futures from 0.4.31 to 0.4.32
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen) from 0.4.31 to 0.4.32.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: wasm-bindgen-futures
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-14 09:17:19 +00:00
Ayaz
38a7b6cef0
Merge pull request #3782 from roc-lang/dependabot/cargo/nonempty-0.8.0
Bump nonempty from 0.7.0 to 0.8.0
2022-08-13 13:36:44 -07:00
Ayaz
11f0de21e1
Merge pull request #3781 from roc-lang/dependabot/cargo/insta-1.18.2
Bump insta from 1.15.0 to 1.18.2
2022-08-13 13:36:32 -07:00
Ayaz
dd011893c9
Merge pull request #3779 from roc-lang/dependabot/cargo/pulldown-cmark-0.9.2
Bump pulldown-cmark from 0.9.1 to 0.9.2
2022-08-13 13:36:09 -07:00
dependabot[bot]
b41d5990c7
Bump nonempty from 0.7.0 to 0.8.0
Bumps [nonempty](https://github.com/cloudhead/nonempty) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/cloudhead/nonempty/releases)
- [Commits](https://github.com/cloudhead/nonempty/commits)

---
updated-dependencies:
- dependency-name: nonempty
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-13 16:49:37 +00:00
dependabot[bot]
7ab742dd1a
Bump insta from 1.15.0 to 1.18.2
Bumps [insta](https://github.com/mitsuhiko/insta) from 1.15.0 to 1.18.2.
- [Release notes](https://github.com/mitsuhiko/insta/releases)
- [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/insta/compare/1.15.0...1.18.2)

---
updated-dependencies:
- dependency-name: insta
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-13 16:49:28 +00:00
dependabot[bot]
55a9031ec1
Bump pulldown-cmark from 0.9.1 to 0.9.2
Bumps [pulldown-cmark](https://github.com/raphlinus/pulldown-cmark) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/raphlinus/pulldown-cmark/releases)
- [Commits](https://github.com/raphlinus/pulldown-cmark/compare/v0.9.1...v0.9.2)

---
updated-dependencies:
- dependency-name: pulldown-cmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-13 16:49:08 +00:00
dependabot[bot]
0bb096c117
Bump palette from 0.6.0 to 0.6.1
Bumps [palette](https://github.com/Ogeon/palette) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/Ogeon/palette/releases)
- [Changelog](https://github.com/Ogeon/palette/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Ogeon/palette/commits)

---
updated-dependencies:
- dependency-name: palette
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-13 16:48:58 +00:00
Folkert
4bb653d389
bump the wasm function stack size in our fork of wasm3 2022-08-13 14:37:02 +02:00
Richard Feldman
97e2900bf5
s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00
Folkert
6c77ee2c00
expect-fx runner implementation 2022-08-12 15:08:29 +02:00
Richard Feldman
26ee1a01bc
Merge pull request #3691 from rtfeldman/cargo_verson_change
changed Cargo versions from 0.1.0 to 0.0.1
2022-08-05 09:13:04 -04:00
Ayaz Hafiz
b62c9d1faa
Support specialization of ability members that don't decay to functions 2022-08-03 10:16:22 -05:00
Anton-4
6a15a7b41b
changed Cargo versions from 0.1.0 to 0.0.1 2022-08-03 11:41:19 +02:00
Anton-4
0b5b3a8652
Merge branch 'trunk' of github.com:rtfeldman/roc into build-nix 2022-08-01 16:51:07 +02:00
Anton-4
43f9e2a7c3
fixes to make default.nix work 2022-08-01 16:50:38 +02:00
Richard Feldman
a05a482ff9
Drop unused fs-extra dependency 2022-07-29 17:16:51 -04:00
Ayaz Hafiz
c0e976f544
Wrap unification subs in Env 2022-07-28 08:57:33 -04:00
Ayaz Hafiz
0989b2cb82
Move solve problems to their own crate 2022-07-28 08:57:32 -04:00
Folkert
e19b272a9e
test expect reporting 2022-07-27 13:51:12 +02:00
Folkert
64c2d8d87e
move expect running logic into repl_expect 2022-07-26 21:15:16 +02:00
Folkert
da4c4c5628
move expect formatting into reporting 2022-07-25 23:49:17 +02:00
Richard Feldman
ad563f0600
Drop unused ctor dependency 2022-07-24 12:00:43 -04:00
Richard Feldman
946b44cfd0
Fix some type mismatches 2022-07-24 11:22:58 -04:00
Richard Feldman
98c6ab0e97
Rename crates/bindgen to crates/glue 2022-07-24 10:25:24 -04:00
Richard Feldman
daec85a75e
Merge pull request #3621 from rtfeldman/expect-memcpy
Clone more values into shared expect buffer
2022-07-23 23:00:54 -04:00
Folkert
ab3a431db7
add string cloning helper 2022-07-23 00:08:01 +02:00
Folkert
9cb2bd04fd
fix from wasm32 RocResult implementation 2022-07-22 21:13:55 +02:00
Folkert
cd98f20989
build wasm3 the normal way 2022-07-22 12:43:17 +02:00
Folkert
e8b7d27e73
use just one temp dir in wasm llvm tests 2022-07-22 12:22:02 +02:00
Folkert
f1d238cccf
add env var to make the final wasm file be written 2022-07-22 12:19:29 +02:00
Folkert
9d294b459e
thread top-level expect region through 2022-07-21 10:42:57 -04:00
Ayaz
7b9b855dcc
Merge pull request #3579 from rtfeldman/can-abilities
Canonicalize syntactic abilities
2022-07-19 13:30:12 -05:00
Ayaz Hafiz
4d0c1e6a9c
Use insta for inferred queried tests 2022-07-18 17:55:02 -04:00
Brian Carroll
530f153301
update Cargo.toml 2022-07-18 08:15:47 +01:00
Brian Carroll
bf37023578
Install reqwest in http example, hack bindgen 2022-07-17 22:00:08 +01:00
Richard Feldman
7b102958e5
Merge remote-tracking branch 'origin/trunk' into bindgen-duplicates 2022-07-17 13:23:51 -04:00
Richard Feldman
6389dba5b8
Merge pull request #3410 from rtfeldman/merge-macho-progress
port all macho linker work to trunk and make it mergable
2022-07-16 16:04:42 -04:00
Richard Feldman
8eeff6c28d
Don't bindgen duplicate types 2022-07-15 11:26:37 -04:00
Folkert
b9ebd4fa27 Merge remote-tracking branch 'origin/trunk' into pretty-expect-output 2022-07-15 09:12:04 +02:00
Folkert
e921fe6515
add code for rendering the result 2022-07-13 14:57:08 +02:00
Ayaz Hafiz
d8bee6cd18
Perfom derives from global derives module, not just symbol table 2022-07-13 08:47:36 -04:00
Ayaz Hafiz
61db0b6260
Move derivers to their own crate 2022-07-13 08:47:36 -04:00
Ayaz Hafiz
fd9dcd8551
Have derivers rely only on exposed module types 2022-07-13 08:47:35 -04:00
Ayaz Hafiz
16e64263f6
Correctly monomorphize all derived methods 2022-07-13 08:47:34 -04:00
Ayaz Hafiz
e8fb186d79
Load derived member impls into derived module for mono 2022-07-13 08:47:34 -04:00
Folkert
68c51782e6
skeleton for running pretty expects 2022-07-13 14:32:47 +02:00
Richard Feldman
24216d7a97
Break cyclic dep between cli and cli_utils 2022-07-11 20:55:08 -04:00
Richard Feldman
f5fac8230f Prune some unused dependencies 2022-07-11 20:51:41 -04:00
Folkert de Vries
e8c51d376b
Merge pull request #3473 from rtfeldman/wasm-test-wasm3
Use a faster Wasm runtime for test_gen
2022-07-11 22:50:50 +02:00
ayazhafiz
699c4d7fff
Move Solved to roc_solve 2022-07-10 19:42:41 -04:00
Brian Carroll
f80ab79c8e
test_gen: remove wasmer-wasi dependency 2022-07-10 14:08:35 +02:00
Brian Carroll
e402f1c9d8
test_gen: remove wasmer entirely, and get refcount tests working with wasm3 2022-07-10 14:08:33 +02:00
Folkert
ffaf56bec2
add wasm3 dependency 2022-07-10 14:08:29 +02:00
Folkert
1eb903ffe3
Merge remote-tracking branch 'origin/trunk' into run-toplevel-expects 2022-07-08 15:36:15 +02:00
Folkert de Vries
b28561d1c9
Merge branch 'trunk' into dylib-roc-benchmarks 2022-07-06 18:39:16 +02:00
Folkert
12027ee338
run platform-independent tests from a dynamic lib 2022-07-06 15:33:10 +02:00
Folkert
610f8784cc
split out dylib creation 2022-07-06 15:26:03 +02:00
Folkert
998508521e
add the repl_expect crate 2022-07-06 14:06:12 +02:00
Brendan Hansknecht
42de78213b
port all macho linker work to trunk and make it mergable 2022-07-05 21:11:35 -07:00
Brendan Hansknecht
4220b02913
setup copying zig bitcode to the target directory 2022-07-05 10:44:24 -07:00
Folkert
2debf2629d
start using criterion in the test_gen crate 2022-07-05 17:29:26 +02:00
ayazhafiz
375b3e064a
Use insta snapshot tests in reporting tests 2022-07-03 12:58:27 -04:00
Richard Feldman
b2ba4b6390
Merge remote-tracking branch 'origin/trunk' into build-cleanup 2022-06-30 21:07:06 -04:00
Brendan Hansknecht
e39fd2cd63
update capstone 2022-06-30 15:24:18 -07:00
Brendan Hansknecht
36384dc8c2
add disassembler based gen dev test helpers 2022-06-30 15:24:07 -07:00
Brendan Hansknecht
00d3f4d913
update static assertions to remove duplicate dependency 2022-06-29 20:26:44 -07:00
Brendan Hansknecht
6f50b877fe
update all of the outdated deps 2022-06-29 19:33:47 -07:00
Brendan Hansknecht
ed22b7d3c9
run cargo update 2022-06-29 18:58:42 -07:00
Brendan Hansknecht
501deef2e4
remove some unused deps 2022-06-29 18:55:47 -07:00
Ayaz Hafiz
66f9891cea
Make the encoding derivers increasingly mature 2022-06-26 12:54:39 -04:00
Ayaz
857052778f
Merge pull request #3287 from rtfeldman/pipeline-derived
Thread derived ability member name generation through the compiler
2022-06-26 12:47:01 -04:00
Ayaz Hafiz
261ad0b225
Move exposed module types data structures to can 2022-06-25 11:30:43 -04:00
Ayaz Hafiz
19ea94bd43
Correct tests due to derived symbols 2022-06-24 08:56:30 -04:00
Ayaz Hafiz
a429835da4
Thread derived methods map through solve and mono for use in compaction 2022-06-24 08:56:29 -04:00
Brian Carroll
a775c94596
Reuse wasi-libc-sys in all Wasm build scripts 2022-06-19 16:21:33 +01:00
Ayaz Hafiz
5c1f003242
Call it derive keying 2022-06-15 16:32:43 -04:00
Ayaz Hafiz
834f75099f
Move derive content hashing to its own crate 2022-06-15 14:29:35 -04:00
Ayaz Hafiz
8f3dfa990a
Rename derivers to derive 2022-06-15 14:26:57 -04:00
Ayaz Hafiz
beed7e791b
Add printing of derived AST to tests 2022-06-15 14:26:56 -04:00
Ayaz Hafiz
ccd78a560f
Add test module for derivers 2022-06-15 14:26:55 -04:00
Folkert de Vries
47f613d4c3
Merge pull request #3219 from rtfeldman/wasm-dce-imports
Wasm dead code elimination for JS imports
2022-06-15 17:53:18 +02:00
Ayaz Hafiz
f21d68c9fb
Consolidate WorldAbilities and solve Phase 2022-06-13 10:40:36 -04:00
Ayaz Hafiz
bf7d57b23f
Import ability lambda sets from other modules during late solving
We're almost there! Just need a way to re-enter already-monomorphized
modules when abilities demand it now.
2022-06-13 08:37:02 -04:00
Brian Carroll
8493c8cfca
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-dce-imports 2022-06-13 08:41:41 +01:00
Brian Carroll
6d39f50bcc
wasm: use linking data to implement call graph tracing for DCE 2022-06-12 20:42:09 +01:00
Richard Feldman
720d82598d
Merge remote-tracking branch 'origin/trunk' into cstr 2022-06-10 18:51:42 -04:00
Ayaz Hafiz
3684412f17
Hide unify, solve in mono behind a new late_solve crate
This ensures you can't just call into roc_unify from mono, and that
lambda sets will necessarily be resolved as needed.
2022-06-08 10:00:00 -04:00
Folkert
8e67c6a644
no_std decimal formatting 2022-06-08 15:53:39 +02:00
Richard Feldman
0cc1047877
Allow converting RocStr to CStr in no_std 2022-06-06 20:23:20 -04:00
Richard Feldman
94c9a592fc
Use libc in roc_std except when no_std is enabled 2022-06-06 20:23:17 -04:00
Folkert
b76fc123d0
Merge remote-tracking branch 'origin/trunk' into remove-ena 2022-06-02 18:29:20 +02:00
Folkert
0022f345ac
remove ena dependency 2022-06-01 15:33:19 +02:00
Anton-4
c372435bc7
update Cargo.lock 2022-06-01 13:42:17 +02:00
Richard Feldman
98a4ce231d
Use IndexMap in bindgen_rs 2022-05-24 12:08:08 -04:00
Richard Feldman
2a5e6ab172
Add PartialEq, Eq, and EnumIter to Architecture 2022-05-24 12:08:07 -04:00
Folkert
95fce168a4
Merge remote-tracking branch 'origin/trunk' into roc-run-from-ram 2022-05-22 13:41:00 +02:00
Richard Feldman
49aea9d639
Use [u8; 16] to avoid number alignment bumps 2022-05-21 00:53:47 -04:00
Richard Feldman
09acc5458b
Merge pull request #3099 from rtfeldman/test-tag-union-bindgen
Test tag union bindgen
2022-05-20 12:49:20 -04:00
Folkert
c190bfa2fe
use ReferenceMatrix for topological sort 2022-05-20 13:02:28 +02:00
Richard Feldman
ca22dd6179
cargo build cli before running bindgen CLI tests
This makes sure the `target` folder isn't stale,
which can cause weird symptoms
2022-05-19 21:25:27 -04:00
Richard Feldman
208c804b8f
Drop unused dependency 2022-05-15 22:12:55 -04:00
Richard Feldman
163ebc353b
Simplify shared fixture file structure 2022-05-15 22:12:55 -04:00
Richard Feldman
9d9db67d58
Introduce some end-to-end bindgen-cli tests 2022-05-15 22:12:52 -04:00
Folkert
f154f84d5a
WIP 2022-05-11 23:10:36 +02:00
Richard Feldman
bd1f2aaf0b
Add docs_cli crate 2022-05-08 22:03:15 -04:00
Richard Feldman
c7037db6d5
Merge pull request #3013 from rtfeldman/hostgen
Introduce bindgen CLI
2022-05-08 17:51:20 -04:00
Folkert de Vries
5d3b83f5a6
Merge pull request #2268 from rtfeldman/update_zig_09
Update to Zig 0.9 + LLVM 13
2022-05-08 23:29:45 +02:00
Folkert
529ec39aeb
remove ven_graph from mono dependencies 2022-05-08 12:32:24 +02:00
Folkert
c5b7ff98fd
move reference matrix 2022-05-08 12:18:10 +02:00
Richard Feldman
36f64d8496
Merge remote-tracking branch 'origin/trunk' into hostgen 2022-05-07 18:49:25 -04:00
Folkert
13d4b0c8c8
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-05-08 00:03:39 +02:00
Folkert
3e141967bd
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-05-07 22:29:43 +02:00
Richard Feldman
51ee101bd1
Merge remote-tracking branch 'origin/trunk' into cli-max-threads 2022-05-07 16:23:41 -04:00
Richard Feldman
6e783aaf77
Merge pull request #3007 from rtfeldman/cli-test-run
Fix CLI arg forwarding bugs
2022-05-07 15:08:03 -04:00
Folkert
81caa96af2
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-05-07 19:38:04 +02:00
Richard Feldman
7c043e2039
Use multithreading when doing bindgen from CLI 2022-05-07 10:40:38 -04:00
Folkert
7619216d84
add wasmer dependency again in the repl_test crate 2022-05-07 15:46:42 +02:00
Folkert
ec8b2cd8b1
get rid of num_cpus in favor of std:🧵:available_parallelism 2022-05-07 15:11:18 +02:00
ayazhafiz
0626433a14 Sweep unused deps
`cargo +nightly udeps` told me what's good
2022-05-06 22:54:42 -04:00
Richard Feldman
6f35d1891a
Capture stdin for roc and roc run tests 2022-05-06 17:13:03 -04:00
Richard Feldman
e7ac4dac96
Test roc run and roc in addition to roc build
Also, use constants instead of hardcoded strings.
2022-05-06 17:13:03 -04:00
Richard Feldman
d548b2cb94
Drop some unused dev dependencies 2022-05-06 15:08:10 -04:00
Richard Feldman
fe7de922ba
Ignore tag union test for now 2022-05-06 15:08:09 -04:00
Richard Feldman
6b2cba09e6
Load files in the bindgen CLI 2022-05-06 15:08:09 -04:00
Richard Feldman
b7536961bc
Give bindgen its own CLI 2022-05-06 15:08:09 -04:00
Richard Feldman
98f6349e32
Go back to tempdir for bindgen tests
Turns out we don't need the deterministic name after all,
because test output doesn't depend on file path like it
does in reporting tests!
2022-05-06 15:08:09 -04:00
Richard Feldman
db01bcdac0
Redo rust gen to use RocType 2022-05-06 15:08:08 -04:00
Richard Feldman
eeeb29e954
Avoid tempdir collisions in gen_rs test 2022-05-06 15:08:06 -04:00
Ayaz Hafiz
ebcd72f7af
Bindgen our first struct 2022-05-06 15:08:06 -04:00
Richard Feldman
131a633f7f
Add write_struct to hostgen 2022-05-06 15:08:06 -04:00
Richard Feldman
dec353baaa
Add write_layout_type to hostgen 2022-05-06 15:08:06 -04:00
Richard Feldman
89385d05d1
Get some basic alignment sorting going 2022-05-06 15:08:05 -04:00
Richard Feldman
afd232281c
Add some basic bindgen stuff 2022-05-06 15:08:05 -04:00
Ayaz Hafiz
a760510be0
Consolidate and improve debug_flags 2022-05-05 12:06:16 -04:00
Anton-4
f3493850bb
Merge pull request #2983 from rtfeldman/wasi-libc-sys
Build WASI libc using Zig, instead of using a checked-in binary
2022-05-05 09:40:46 +02:00
Anton-4
dc8a6abf22
updated clap 2022-05-04 14:41:02 +02:00
Brian Carroll
5fffea969a Provide a way for non-wasm Rust code to find the WASI libc 2022-05-03 19:12:36 +01:00
Anton-4
cc28de408c
update wasmer to 2.2.1 2022-05-03 18:00:29 +02:00
ayazhafiz
37ba70472f Add more debug flags 2022-05-01 12:25:03 -04:00
Folkert
b7b86c0cde
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-04-30 23:34:48 +02:00
Ayaz Hafiz
9964f86a3d
Factor bespoke debug variables into debug_flags crate 2022-04-29 17:45:55 -04:00
Ayaz Hafiz
89757dc31f Remove MonoProblem 2022-04-28 20:34:04 -04:00
Ayaz Hafiz
356616d834
Move exhaustiveness checking to type solving phase with solve tests 2022-04-25 19:04:08 -04:00
Ayaz
64ed7eea95
Merge branch 'trunk' into fix-when-branch-solving 2022-04-24 12:19:22 -04:00
Richard Feldman
57b7832917
Upgrade target-lexicon 2022-04-23 20:51:57 -04:00
Ayaz Hafiz
7b2b41869f
Add a way to view solved types of arbitrary expressions/patterns in a program 2022-04-23 10:56:53 -04:00
Folkert
7055645085
add bitvec dependency 2022-04-22 11:34:02 +02:00
Jared Cone
d20542efae
Updated tests to use deterministic tmp dir 2022-04-20 21:25:12 -07:00
Brian Carroll
9491d5fae9
Merge branch 'trunk' into update_zig_09 2022-04-15 21:17:25 +01:00
Ayaz Hafiz
865c1f15d7
Fix test compile errors, and simply load_internal tests 2022-04-12 16:42:51 -04:00
Ayaz Hafiz
ce7c61eb09
Propogate render target forward 2022-04-12 16:18:07 -04:00
Ayaz Hafiz
913d97cab1
Add needed imports 2022-04-12 16:18:07 -04:00
Brian Carroll
9b0c7fad41 Merge branch 'trunk' of github.com:rtfeldman/roc into update_zig_09 2022-04-11 18:40:21 +01:00
Richard Feldman
babe281b5d
Merge pull request #2780 from rtfeldman/no-link
Add --no-link flag for more complex linking cases
2022-04-08 23:49:48 -04:00
Folkert
a69bf971f0
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-04-06 15:38:15 +02:00
Folkert
db63382f68
upgrate the inkwell revision we use 2022-03-30 17:34:19 +02:00
Folkert
fd209f90ff
fix bug where incorrect stack size is given 2022-03-30 17:25:28 +02:00
Brendan Hansknecht
76ffb4f278 Add --no-link flag for more complex linking cases 2022-03-29 18:20:29 -07:00
Folkert
fd527c2b4d
upgrate parking lot to 0.12 2022-03-30 00:14:28 +02:00
Folkert
4859f530cd
generate cached subs 2022-03-23 21:19:37 +01:00
Folkert
80b8635947
restructure how load is used 2022-03-23 21:19:36 +01:00
Folkert
0a6335e772
start on roc_load build.rs script for building the builtins 2022-03-23 21:19:34 +01:00
Folkert
7bb1fd88fa
add load_internal 2022-03-23 21:19:34 +01:00
Folkert
813b22a106
remove allocation in Symbol creation 2022-03-18 22:07:12 +01:00
Brian Carroll
68222dfd50 repl: apply the relevant style codes in each REPL (web and terminal) 2022-03-17 09:46:52 +00:00
ayazhafiz
8aaf614481 Improve error message 2022-03-15 11:18:02 -05:00
Anton-4
d373085386
Merge pull request #2675 from rtfeldman/new-syntax-highlight
peg grammar, tokenizer, new syntax highlighting
2022-03-14 17:20:14 +01:00
Folkert
ed247c9da3
Merge remote-tracking branch 'origin/trunk' into type-checking-storage-subs 2022-03-13 13:43:00 +01:00
Brian Carroll
4f7591f963 repl_wasm: forward Rust panics to JS console.error
I can't believe this isn't the default for wasm_bindgen, but it isn't!
2022-03-12 15:38:52 +00:00
Folkert
e3e9215578
Merge remote-tracking branch 'origin/trunk' into type-checking-storage-subs 2022-03-12 14:10:43 +01:00
Folkert
28ce49c273
use lazy_static 2022-03-12 00:18:06 +01:00
Anton-4
1469b587fb
Merge branch 'trunk' of github.com:rtfeldman/roc into new-syntax-highlight 2022-03-11 15:13:40 +01:00
Brendan Hansknecht
cdf19e3feb
Merge pull request #2698 from rtfeldman/i/2696
Make sure casting to unsigned types performs zero-extension
2022-03-10 20:10:33 -08:00
ayazhafiz
a90bba3d1d Make sure casting to unsigned types performs zero-extension
Closes #2696
2022-03-10 17:39:37 -06:00
Anton-4
cda90d987c
cleanup 2022-03-09 09:26:32 +01:00
Anton-4
a4d59ae0e7
don't let earthly forget about highlight folder 2022-03-08 15:43:04 +01:00
Derek Gustafson
ba6b225761
Hide RocDec implemntation details. 2022-03-07 15:34:02 -05:00
Anton-4
0ca66cc41b
Merge branch 'trunk' of github.com:rtfeldman/roc into new-syntax-highlight 2022-03-07 20:01:38 +01:00
Folkert de Vries
af15055c95
Merge pull request #2641 from rtfeldman/DecRepl
Display Dec in REPL
2022-03-07 16:17:06 +01:00
Derek Gustafson
f2de6baa36
Add functionality to turn RocDecs into strings. 2022-03-05 17:28:12 -05:00
Richard Feldman
c89a6c109a
Merge pull request #2627 from rtfeldman/constraints-soa
Constraints using Struct of Arrays
2022-03-04 19:39:03 -05:00
Derek Gustafson
dc92de7781
Add plumbing for displaying RocDec in the repl. 2022-03-04 17:32:09 -05:00
Anton-4
37704323b1
basic highlighting flow using MarkupNodes 2022-03-04 20:19:05 +01:00
Brian Carroll
f2adf71873 Move alias analysis to its own crate instead of roc_mono
Shrinks roc_repl_wasm by 400kB (~8%)
2022-03-04 14:50:02 +00:00
Folkert
01a7fe77d4
even more wip 2022-03-02 17:32:50 +01:00
Anton-4
0fee3c7b23 exclude roc_std to fix windows link error 2022-03-02 07:56:56 +01:00
Folkert
d54c98e1aa
Merge remote-tracking branch 'origin/trunk' into constraints-soa 2022-03-01 22:39:51 +01:00
Anton-4
bddab60e6b
Merge branch 'trunk' of github.com:rtfeldman/roc into new-syntax-highlight 2022-03-01 11:36:59 +01:00
Anton-4
5ec2125ac6
Merge branch 'trunk' into windows_fixes 2022-02-28 19:12:18 +01:00
Anton-4
b5d8ab7d6f cleanup 2022-02-28 18:26:55 +01:00
Anton-4
784894bb8f
fixing windows cargo build errors 2022-02-28 13:48:11 +01:00
ayazhafiz
b9a29bdb16 Make exhaustive checking its own crate
Prepares for moving exhaustiveness checking to the closer typechecking
phase. Doing this one step at a time so that git preserves the rename.
2022-02-27 20:28:25 -05:00
Brian Carroll
76b5982451 repl_test: use lazy_static to initialise wasm compiler once for all tests 2022-02-26 13:12:52 +00:00
Brian Carroll
3537f90e6d repl: get Str working properly in CLI and Wasm REPLs 2022-02-26 13:12:52 +00:00
Brendan Hansknecht
c327681ebc Wasmer: use cranelift for non-x86_64 since singlepass is not supported 2022-02-24 10:31:21 -08:00
Anton-4
8fee48c3fa
windows zig path validation workaround
std::fs::canonicalize adds a special windows prefix ?, zig erroneously (ziglang/zig#1509) does not allow ? in windows paths, dunce correctly removes this ? prefix
2022-02-22 16:17:21 +01:00
hafiz
ca9ecbea52
Merge pull request #2533 from rtfeldman/abilities!
[WIP] Spike for abilities and friends
2022-02-21 23:18:40 -05:00
ayazhafiz
90de82e295 Validation of opaques during canonicalization 2022-02-21 18:25:19 -05:00
Brian Carroll
e8571de1ae
Merge pull request #2517 from rtfeldman/repl-www
Web REPL initial version
2022-02-21 13:58:23 +00:00
Brian Carroll
bfca8ec955 Make wasmer features common across all packages 2022-02-21 08:36:34 +00:00
ayazhafiz
6b53692aac Canonicalize opaque types 2022-02-20 13:47:01 -05:00
ayazhafiz
fa24e51593 Parse opaque types 2022-02-19 18:38:31 -05:00
Brian Carroll
a75aa52b91 repl_test: write Rust replacements for JS functions 2022-02-19 23:29:06 +00:00
Brian Carroll
ef97ad69ae repl_wasm: refactor external interface to support Wasmer tests 2022-02-19 18:24:18 +00:00
Folkert
bb40adad3a
add memory representation tests 2022-02-19 16:04:13 +01:00
rvcas
97959c8a95
Merge branch 'trunk' into update_zig_09 2022-02-12 22:51:12 -05:00
Anton-4
440a3cd15b
started moving tokenizer and grammar for syntax_highlighting 2022-02-11 13:54:10 +01:00
Anton-4
d6681f4e0a
Merge pull request #2160 from rtfeldman/editor-comments
support tld comments in docs and editor(reading only)
2022-02-10 11:49:10 +01:00