Commit graph

7067 commits

Author SHA1 Message Date
Folkert
41df04184e
make the simple case tail-recursive 2022-03-05 00:26:03 +01:00
Folkert
4ca9ea0b89
refactor After 2022-03-04 23:57:41 +01:00
Brian Carroll
f2adf71873 Move alias analysis to its own crate instead of roc_mono
Shrinks roc_repl_wasm by 400kB (~8%)
2022-03-04 14:50:02 +00:00
Brian Carroll
485cbb4bd1
Merge pull request #2635 from rtfeldman/issues-2607/multiline-input-repl
Allow multi string in RePL
2022-03-04 07:40:17 +00:00
Philippe Vinchon
b9365d06e3 Allow multi string in RePL 2022-03-03 21:15:01 +00:00
Derek Gustafson
b6ad04b0f1
Fix zig fmt error. 2022-03-03 11:14:58 -05:00
Derek Gustafson
6feac21b9b
Remove using a string as an intermediate form in Dec.fromF64. 2022-03-03 11:05:41 -05:00
Richard Feldman
d91df42147
Merge pull request #2610 from rtfeldman/windows_fixes
`cargo build` on windows
2022-03-02 18:20:06 -05:00
Richard Feldman
364697e662
Merge pull request #2628 from rtfeldman/rust-1.58
Rust 1.58
2022-03-02 18:16:28 -05:00
Folkert de Vries
03a63cdd00
Merge pull request #2622 from rtfeldman/optimize-def-sorting
optimize def sorting
2022-03-02 23:16:01 +01:00
Folkert
d9851b5e68
fix formatting issues 2022-03-02 21:39:30 +01:00
Folkert
d5bba1a779
use vec instead of set 2022-03-02 15:01:19 +01:00
Folkert
edd2120535
reorder operations to remove clones 2022-03-02 14:57:03 +01:00
Folkert
b6fd034ddf
remove clones 2022-03-02 14:54:25 +01:00
Folkert
ef5a81f731
make reference mut 2022-03-02 14:52:48 +01:00
Folkert
4643148470
refactor 2022-03-02 14:51:00 +01:00
Folkert
96584cb98a
Revert "optimize def sorting"
This reverts commit 5a0562c7f1.
2022-03-02 14:49:48 +01:00
Brendan Hansknecht
0ae0e689fc
Merge pull request #2602 from rtfeldman/list-replace
List replace
2022-03-01 23:29:32 +00:00
Folkert
6fae7039c2
remove unused function 2022-03-01 21:56:10 +01:00
Folkert
19d7f7ce09
make vars-by-symbol a vector 2022-03-01 21:51:25 +01:00
Folkert
5a0562c7f1
optimize def sorting 2022-03-01 21:44:44 +01:00
Anton-4
35b0715364 hopefully last fmt 2022-03-01 16:52:00 +01:00
Richard Feldman
887a07b455
Merge pull request #2596 from rtfeldman/joshuawarner32/listclosing-braces
Allow closing braces in collections to be at any indent level
2022-02-28 20:00:44 -05:00
Folkert
8b457a56c5
reduce cloning of Env 2022-03-01 00:08:56 +01:00
Folkert
d3bbf6d504
struct of arrays! 2022-03-01 00:00:50 +01:00
Folkert
1ef9546391
use Vec instead of MutMap 2022-02-28 23:54:35 +01:00
Folkert
9d82f795b7
make it abstract 2022-02-28 23:43:58 +01:00
Folkert
751ae125a5
remove aliases from solve Env 2022-02-28 23:41:07 +01:00
Folkert
c18befeccf
short-circuit aliases 2022-02-28 23:37:33 +01:00
Anton-4
5ec2125ac6
Merge branch 'trunk' into windows_fixes 2022-02-28 19:12:18 +01:00
Anton-4
5f865a4a0c fmt 2022-02-28 18:18:41 +01:00
Anton-4
6acd2f338b successful cargo build on windows 2022-02-28 18:11:14 +01:00
Folkert de Vries
f30c07edd0
Merge pull request #2604 from rtfeldman/early-exhaustiveness-checking
Move out exhaustiveness checking to its own crate
2022-02-28 14:44:42 +01:00
Anton-4
784894bb8f
fixing windows cargo build errors 2022-02-28 13:48:11 +01:00
Richard Feldman
8ec7b26a1c
Merge pull request #2547 from rtfeldman/simplify-editor
simplify editor
2022-02-27 21:43:09 -05:00
ayazhafiz
a62fd31ab6 Fix new clippy warnings 2022-02-27 20:41:07 -05:00
ayazhafiz
27a50a3e6b exhaustive_wrap -> exhaustive 2022-02-27 20:30:13 -05:00
ayazhafiz
b9a29bdb16 Make exhaustive checking its own crate
Prepares for moving exhaustiveness checking to the closer typechecking
phase. Doing this one step at a time so that git preserves the rename.
2022-02-27 20:28:25 -05:00
Brendan Hansknecht
2ca1ebdd2d appease the paperclip 2022-02-27 15:50:19 -08:00
Brendan Hansknecht
457ba524aa fix tests and alias analysis 2022-02-27 15:20:54 -08:00
Brendan Hansknecht
2e70bb8458 remove list set low level 2022-02-27 15:07:09 -08:00
hafiz
d334ea301d
Merge pull request #2600 from rtfeldman/solve-worklist
Transition `solve` to use a worklist rather than always recursing
2022-02-27 17:36:25 -05:00
Folkert
81e45b1e2f
make List.set use List.replace under the hood 2022-02-27 22:47:26 +01:00
Folkert
78fe734113
change the return type of List.replace 2022-02-27 22:47:08 +01:00
ayazhafiz
01da425851 Simplify solve worklist substantially 2022-02-27 16:41:31 -05:00
ayazhafiz
56d4dc3480 Transition solve to use a worklist rather than always recursing
This should unblock some of @folkertdev's work on transitioning builtins
to pure Roc code. It's not perfect yet (we still make some recursions),
but it's a step, and it should avoid recursing on `Let`
`ret_constraint`s, which caused stack overflows when they became really
long before.
2022-02-27 15:51:19 -05:00
Richard Feldman
84ada96b63
Revise Str parsing primitives 2022-02-27 15:30:27 -05:00
Brian Carroll
dcf3c052af
Merge pull request #2594 from rtfeldman/wasm-repl-fixes
Wasm REPL bug fixes
2022-02-27 18:40:47 +00:00
ayazhafiz
cf628ed4ef Fix clippy warning 2022-02-27 12:21:20 -05:00
ayazhafiz
720b7b49d2 Improve error pattern and fix tests 2022-02-27 12:01:12 -05:00