Commit Graph

64 Commits

Author SHA1 Message Date
Brian Carroll
ab12ddf85f
Get rid of some Unix-specific slashes 2022-06-19 16:21:33 +01:00
Brian Carroll
a775c94596
Reuse wasi-libc-sys in all Wasm build scripts 2022-06-19 16:21:33 +01:00
Brian Carroll
e3380277eb
Make repl_wasm more Windows-friendly 2022-06-19 16:21:32 +01:00
Folkert de Vries
1b2559248c
Merge pull request #3260 from rtfeldman/wasm-linking-test-improvements
Wasm linking test improvements
2022-06-18 21:11:24 +02:00
Anton-4
b970e03faf
fmt 2022-06-18 13:49:51 +02:00
Anton-4
b297952c45
mono tests update 2022-06-18 13:48:13 +02:00
Brian Carroll
6e30811b0c
wasm: use a BitVec for called host functions 2022-06-15 21:31:10 +01:00
Brian Carroll
ce20d7ed9b
wasm: fix type error in repl_www 2022-06-14 17:55:21 +01: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
c00b43c36b
wasm: Move some of the DCE code from CodeSection to WasmModule 2022-06-07 23:52:33 +01:00
Ayaz Hafiz
4b42205b03
Instantiate unspecialized lambda sets under aliases and opaques 2022-06-07 14:41:42 -04:00
Ayaz Hafiz
3f3d9d035e
Clippy and format 2022-06-07 10:44:43 -04:00
Ayaz Hafiz
4339bfaed6
Print lambda sets on-demand 2022-06-07 08:46:15 -04:00
Brian Carroll
dad1d14ef8
wasm: make host file relocatable 2022-06-03 09:51:32 +02:00
Ayaz Hafiz
bde107da49
Remove TagName in favor of explicit TagName or Closure
Note that we still need a `TagOrClosure` enum for phases past mono, but
at least we get rid of the branches in the front end.
2022-06-02 09:44:34 -05:00
Brian Carroll
731a227c61
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-parser-trait 2022-05-25 21:15:08 +01:00
Richard Feldman
0f140facda
Merge pull request #3127 from rtfeldman/www
Sync up changes from #3041
2022-05-24 13:00:02 -04:00
Brian Carroll
873d9d4e06
wasm: create separate steps for parsing the host and compiling the app 2022-05-22 20:49:16 +01:00
Brian Carroll
8114ec60c1
Start using Result to handle Wasm module parse failures 2022-05-22 09:36:33 +01:00
Brian Carroll
a80707209f
Fix Cargo.toml bug 2022-05-16 09:05:42 +01:00
Brian Carroll
65bbd85cc7
Disable wasm-opt by default and run it when needed 2022-05-16 09:02:43 +01:00
Brian Carroll
6a91e66192
Delete env var NO_ZIG_INSTALLED since Zig is now installed on Netlify 2022-05-15 12:57:37 +01:00
Brian Carroll
aaea254e8f
Pass precompiled host bytes to gen_wasm in CLI 2022-05-15 11:11:08 +01:00
Ayaz Hafiz
a9507cf917
Consolidate variable pretty printing 2022-05-10 11:24:41 -04:00
Ayaz Hafiz
3497237c99
Print recursion vars correctly 2022-05-10 10:40:37 -04:00
Brian Carroll
a663d335fc repl_test: update build.rs to work with Zig 0.9 (like test_gen) 2022-04-11 14:19:56 +01:00
Folkert
79d7dd0cbf
make the wasm repl aware of capacity 2022-03-30 20:23:16 +02:00
Brian Carroll
42722608bd repl_wasm: improve a comment 2022-03-27 09:24:15 +01:00
Brian Carroll
f36614d824 repl_wasm: add a console_log macro for browser debugging 2022-03-26 18:15:19 +00:00
Folkert
311e464b70
add load_internal 2022-03-23 15:18:22 +01:00
Brian Carroll
384a79ff84 Formatting 2022-03-17 10:50:30 +00:00
Brian Carroll
68222dfd50 repl: apply the relevant style codes in each REPL (web and terminal) 2022-03-17 09:46:52 +00:00
Brian Carroll
5b97823ba8 repl_wasm: prevent console_error_panic_hook slowing down non-wasm builds 2022-03-15 19:01:05 +00:00
Brian Carroll
be72439acc repl_wasm: disable console_error_panic_hook for tests 2022-03-12 19:23:17 +00: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
Brian Carroll
45fd3d79a7 repl_www: include debug info in repl .wasm file, for useful stack traces 2022-03-12 15:28:50 +00:00
Richard Feldman
02ecb63b48
Add NO_ZIG_INSTALLED check to Netlify build 2022-02-28 20:51:18 -05:00
Brian Carroll
85ade20b80 Formatting 2022-02-26 13:45:35 +00:00
Brian Carroll
7719f0646e repl_wasm: Graceful handling of invalid Wasm code gen 2022-02-26 13:12:52 +00:00
Brian Carroll
203fdab209 repl_wasm: rename modules interface -> externs 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
6968647cc5 update versions to lockfile 2022-02-25 11:41:05 -08:00
Brian Carroll
02889300d0 repl_test: 2 thread_locals to avoid mutable borrow issues. Tests running but very slow. 2022-02-20 22:59:16 +00:00
Brian Carroll
3b050d3e2a repl_wasm: Finish interface to Wasmer. Compiles but throws runtime borrow error. 2022-02-20 20:38:14 +00:00
Brian Carroll
a4d83f6916 repl_test: developing wasm test setup 2022-02-20 09:03:59 +00:00
Brian Carroll
ef97ad69ae repl_wasm: refactor external interface to support Wasmer tests 2022-02-19 18:24:18 +00:00
Brian Carroll
7eab8d840c repl_wasm: delete console_log debug helper 2022-02-19 10:24:25 +00:00
Brian Carroll
5587fae4e6 repl_www: fix a bug in buffer alignment (transmuted slice had wrong length) 2022-02-18 17:42:49 +00:00
Brian Carroll
9244008d94 repl: implement console.log from Rust for debugging 2022-02-08 11:03:48 +00:00
Brian Carroll
f8ad09f6ab repl: rename entrypoint from JS and remove unnecessary pub in Rust 2022-02-08 11:03:48 +00:00