Commit graph

14474 commits

Author SHA1 Message Date
Folkert
d7a5cd7b11
some debugging niceties 2022-03-13 00:12:16 +01:00
Folkert
39792ccb93
accept output parameter as first argument 2022-03-13 00:11:57 +01:00
Folkert
fcb34272da
some zig functions need to accept arguments by-pointer now
because otherwise stores to alloca's disappear. Very odd
2022-03-13 00:07:32 +01:00
Folkert
f66b111c7a
create small strings with fewer instructions 2022-03-13 00:06:13 +01:00
Brian Carroll
52050cac0b repl_www: Commit JavaScript crimes to display console errors on the page. 2022-03-12 22:12:42 +00:00
Brian Carroll
be72439acc repl_wasm: disable console_error_panic_hook for tests 2022-03-12 19:23:17 +00:00
Folkert
4e22ae57cd
make specific twice_ptr_width helper 2022-03-12 19:57:26 +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
Brian Carroll
45fd3d79a7 repl_www: include debug info in repl .wasm file, for useful stack traces 2022-03-12 15:28:50 +00:00
Folkert
9d9e7d10d4
use exposed_generic in hello world examples 2022-03-12 14:42:14 +01:00
Folkert
26d197c196
enable flex var variable name copying when importing 2022-03-12 14:19:40 +01:00
Folkert
e3e9215578
Merge remote-tracking branch 'origin/trunk' into type-checking-storage-subs 2022-03-12 14:10:43 +01:00
Folkert
6bb8bcb5a2
cleanup 2022-03-12 14:02:34 +01:00
Folkert
d9c3a7ddd9
get rid of unneeded field on SolvedModule 2022-03-12 14:00:51 +01:00
Folkert
c64f768abe
more comments 2022-03-12 13:52:13 +01:00
Folkert
b78e63ae19
rename var 2022-03-12 13:47:14 +01:00
Folkert
e463afe0d9
comments on datastructures in module.rs 2022-03-12 13:43:26 +01:00
Folkert
401b3fd5ad
improve Constraint Debug impl 2022-03-12 13:31:58 +01:00
Folkert
8b92401d01
document let_import_constraint 2022-03-12 13:28:24 +01:00
Folkert de Vries
1ae5ccaa83
Merge pull request #2687 from rtfeldman/update-mono-list-replace
bump mono tests after List.replace being used in List.set
2022-03-12 13:20:43 +01:00
Anton-4
d800edf5a7
no more magic constants 2022-03-12 11:16:01 +01:00
Brian Carroll
1afada4075 wasm: fix panic on empty Struct expression 2022-03-12 09:30:27 +00:00
Brian Carroll
b57c0ee6bf CI: Run Zig builtin tests on wasm as well as host 2022-03-12 08:09:23 +00:00
Brendan Hansknecht
bc492fa22b run cargo fmt 2022-03-11 19:29:34 -08:00
Brendan Hansknecht
8b7acb5c93 update hello-world examples to use capacity 2022-03-11 19:26:09 -08:00
Brendan Hansknecht
d9c3601ec4 stop special casing on list and str. They are just large structs 2022-03-11 18:43:31 -08:00
Brendan Hansknecht
de68e55aca update loading small str in dev 2022-03-11 18:42:53 -08:00
hafiz
28a3ae85e3
Merge pull request #2704 from rtfeldman/num-to-nat
Add `Num.toNat`
2022-03-11 18:46:43 -06:00
hafiz
a716a3c7bd
Merge pull request #2690 from rtfeldman/typecheck-panic
Fix panic on unknown type reaching typechecker.
2022-03-11 18:46:24 -06:00
hafiz
5bc29c9b88
Merge pull request #2700 from rtfeldman/optimize-instantiate-alias
improve `correct_mutual_recursive_type_alias`
2022-03-11 17:29:51 -06:00
Folkert
28ce49c273
use lazy_static 2022-03-12 00:18:06 +01:00
Folkert
e1d5b748b1
fix wasm/dev tests 2022-03-12 00:13:49 +01:00
Folkert
85fdb6564e
Revert "optimize Type::symbols()"
This reverts commit 4ce7221c39.
2022-03-11 23:42:59 +01:00
Folkert
5006b2afa3
playing with atomics to get the global stdlib to work 2022-03-11 23:39:55 +01:00
Derek Gustafson
e9d99862da
Fix failing test. 2022-03-11 17:26:08 -05:00
Folkert
7a7a99f118
handle some edge cases 2022-03-11 23:09:04 +01:00
Folkert
49408d3a56
fix reporting tests 2022-03-11 22:56:29 +01:00
Folkert
11da96b286
make borrow_stdlib threadsafe 2022-03-11 22:49:29 +01:00
Folkert
01b810266b
test cleanup 2022-03-11 22:15:36 +01:00
Folkert
82e4ab67b3
store stdlib in a static 2022-03-11 22:14:52 +01:00
Folkert
26953c0420
move stdlib solved type usage to use site 2022-03-11 22:01:25 +01:00
ayazhafiz
6a71358431 Get rid of more clones when resolving recursive aliases and use fast ImMap 2022-03-11 14:59:19 -06:00
Brendan Hansknecht
203bbca185 fix str and list layout in refcount proc generation 2022-03-11 12:32:04 -08:00
Folkert
20ae9ff1e3
hollow out ConstrainableImports 2022-03-11 21:29:50 +01:00
Folkert
364bc81dc4
stop making solved types for non-builtins 2022-03-11 21:08:24 +01:00
Folkert
9333d0a0e0
remove solved types from ExposedModuleTypes 2022-03-11 21:06:12 +01:00
Folkert
18d7f32aa3
do nothing, prepare for refactor 2022-03-11 21:03:55 +01:00
Folkert
afcd176d58
clone storage subs less 2022-03-11 20:56:13 +01:00
Brian Carroll
456d8ff9cb Merge branch 'trunk' of github.com:rtfeldman/roc into list-str-capacity 2022-03-11 19:28:13 +00:00
Brian Carroll
ad5da76588 wasm: fix remaining tests for capacity 2022-03-11 19:20:57 +00:00