Commit Graph

12604 Commits

Author SHA1 Message Date
Brian Carroll
f8ad09f6ab repl: rename entrypoint from JS and remove unnecessary pub in Rust 2022-02-08 11:03:48 +00:00
Brian Carroll
9bfd0e44d6 repl: comments 2022-02-08 11:03:48 +00:00
Brian Carroll
9a7ac6429b repl: Fix invalid JS import from wasm_bindgen caused by parking_lot 2022-02-08 11:03:48 +00:00
Brian Carroll
bdff338319 repl: ignore Clippy rule broken by wasm-bindgen macro 2022-02-08 11:03:48 +00:00
Brian Carroll
2c8b957763 repl: Split repl_www from repl_wasm 2022-02-08 11:03:48 +00:00
Brian Carroll
858a3c3527 roc_load: Remove unused deadlock_detection feature of parking_lot crate, to enable Wasm REPL build 2022-02-08 11:03:48 +00:00
Brian Carroll
cff762afe5 Fix test_gen llvm 2022-02-08 11:03:48 +00:00
Brian Carroll
c21b2bd0da Formatting and Clippy 2022-02-08 11:03:48 +00:00
Brian Carroll
ff6b29dfe7 repl: first compiling version (untested) 2022-02-08 11:03:48 +00:00
Brian Carroll
0af4361f2a repl: continue fleshing out the Wasm repl code. Generate wrapper function. 2022-02-08 11:03:48 +00:00
Brian Carroll
85b418ebdf wasm: get rid of Result from gen_wasm, rename a function, improve comments 2022-02-08 11:03:48 +00:00
Brian Carroll
2fd2a85887 wasm: delete redundant enum TestType 2022-02-08 11:03:48 +00:00
Brian Carroll
b969f207c4 repl: Cargo build script for repl_wasm, generating the pre-linked binary 2022-02-08 11:03:48 +00:00
Brian Carroll
c5ccc99e20 repl: rename Wasm32TestResult -> Wasm32Result 2022-02-08 11:03:48 +00:00
Brian Carroll
1783fa8009 repl: rename FromWasm32Memory -> FromWasmerMemory 2022-02-08 11:03:48 +00:00
Brian Carroll
e9871947d3 repl: move wasm32_test_result to gen_wasm, and extract Wasm32Sized from FromWasm32Memory 2022-02-08 11:03:48 +00:00
Brian Carroll
70e19053f0 repl: implement more of the JS/Wasm interface 2022-02-08 11:03:48 +00:00
Brian Carroll
aaa5fa04cd wasm: delete obsolete code 2022-02-08 11:03:48 +00:00
Brian Carroll
3c6cb5bc19 repl: Separate traits for the app and its memory 2022-02-08 11:03:48 +00:00
Brian Carroll
1528651a5a repl: explicit lifetimes for app 2022-02-08 11:03:48 +00:00
Brian Carroll
fdf8363b7e repl: Separate app from env 2022-02-08 11:03:48 +00:00
Brian Carroll
8c3d272a78 repl: delete mock code and rename Wasm/Js interface functions 2022-02-08 11:03:48 +00:00
Brian Carroll
4e855f1094 repl: delete and move files in repl_wasm 2022-02-08 11:03:48 +00:00
Brian Carroll
e93e0bfbbd repl: copy mock wasm repl from external repo git@github.com:brian-carroll/mock-repl.git 2022-02-08 11:03:48 +00:00
Folkert de Vries
ec1d2b5466
Merge pull request #2455 from rtfeldman/i/2413
Normalize c/Roc callconv parameters when C returns by pointer
2022-02-07 10:47:25 +01:00
Folkert de Vries
1a79ed4166
Merge pull request #2454 from rtfeldman/i/2445
Specialize zero-argument thunks with the correct variable
2022-02-07 09:12:10 +01:00
ayazhafiz
1a1eaf7f68 Normalize c/Roc callconv parameters when C returns by pointer
Closes #2413
2022-02-06 21:57:14 -05:00
ayazhafiz
40196185a0 Specialize zero-argument thunks with the correct variable
Previously we would pass the annotation down as the
type-to-be-monomorphized for, but that would just mean the annotation
would unify with itself. We instead want to use the variable the thunk
is being used as to be the one unified with the thunk's annotation.

Closes #2445
Closes #2446
2022-02-06 20:58:13 -05:00
hafiz
365b3bb9c0
Merge pull request #2449 from rtfeldman/i/2332-part2
Exploit integer literal type bounds during typechecking
2022-02-06 18:32:32 -05:00
ayazhafiz
94ff9c39f1 Fix roc_ast compile errors 2022-02-06 15:04:13 -05:00
ayazhafiz
a863e3cf1b Restore regressions 2022-02-06 15:04:13 -05:00
ayazhafiz
0d241f3c3c Only expand ErrorType::Range's type range when range unification fails 2022-02-06 15:04:13 -05:00
ayazhafiz
aaac22f6c2 Respell typo 2022-02-06 15:04:13 -05:00
ayazhafiz
ff3596505e Fix gen tests 2022-02-06 15:04:12 -05:00
ayazhafiz
680bf8e0b7 Treat rigids as flex vars when checking number range types 2022-02-06 15:04:12 -05:00
ayazhafiz
6d72971d6b Clippy and a ranged number unification bugfix 2022-02-06 15:04:12 -05:00
ayazhafiz
364d2585df Fix repl tests 2022-02-06 15:04:12 -05:00
ayazhafiz
c5d918e68c Include floats in bounds for unspecified numbers 2022-02-06 15:04:12 -05:00
ayazhafiz
3fffca48bb Bye bye dead code! 2022-02-06 15:04:12 -05:00
ayazhafiz
c80c842a93 Clippy 2022-02-06 15:04:12 -05:00
ayazhafiz
8dc92ccd97 Second pass 2022-02-06 15:04:12 -05:00
ayazhafiz
5e0d90ac53 First pass 2022-02-06 15:04:12 -05:00
Folkert de Vries
d25e891fb0
Merge pull request #2451 from rtfeldman/fix-arc-panic
Fix Arc panic
2022-02-06 16:45:38 +01:00
Richard Feldman
3996ba1df8
Merge pull request #2450 from rtfeldman/check-generated-functions
Check generated functions
2022-02-06 09:07:59 -05:00
Richard Feldman
2c0948f69b
Test Package-Config parse error in test_load 2022-02-06 08:24:49 -05:00
Richard Feldman
589140983b
Support Package-Config.roc in test_load 2022-02-06 08:20:13 -05:00
Richard Feldman
3e388e2651
Don't print "no hints" on Package-Config parse error 2022-02-06 08:05:33 -05:00
Richard Feldman
dba03374db
Fix indentation in macro 2022-02-06 08:05:26 -05:00
Richard Feldman
7f5fc37612
Fix panic on parse error in Package-Config.roc
This previously led to the following panic if there was a parse error in Package-Config.roc: 'There were still outstanding Arc references to module_ids', /Users/rtfeldman/code/roc/compiler/load/src/file.rs:1530:33
2022-02-06 08:04:38 -05:00
Folkert
d9eea360fd formatting 2022-02-06 13:26:32 +01:00