Commit graph

13739 commits

Author SHA1 Message Date
Brian Carroll
6e307d2c12 repl: build script updates 2022-02-08 11:03:48 +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
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
Anton-4
4298cb7eab
Added cargo build to BUILDING_FROM_SOURCE 2022-02-08 09:35:55 +01:00
Richard Feldman
9efd352d43
Add Http.roc to examples/gui 2022-02-07 23:51:26 -05:00
Anton-4
4fe489fe0e
indent fixes 2022-02-07 19:51:24 +01:00
Anton-4
2c936367f5
fixed indents around op, all tests passing again 2022-02-07 17:09:10 +01: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
Richard Feldman
f81fbabf12
Avoid stack overflow in the compiler
(reverting this reproduces a stack overflow in the compiler!)
2022-02-07 00:13:24 -05:00
Richard Feldman
5a9d76e16f
Add Elem.translate, Elem.list, and Elem.lazy 2022-02-07 00:09:45 -05: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