Commit Graph

714 Commits

Author SHA1 Message Date
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