Folkert
51c61ea449
fix number hierarchy
2021-11-24 22:39:58 +01:00
Folkert
e0d7c54906
simplify alias insertion
2021-11-24 22:39:42 +01:00
Folkert
4e4f827bb0
simplify function-or-tag-union insertion
2021-11-24 22:11:05 +01:00
Folkert
379abeed26
refactor tag insertion
2021-11-24 21:57:19 +01:00
Folkert
340055fca5
point to empty VariableSubsSlice
2021-11-24 21:57:00 +01:00
Folkert
3abdfce735
sort tags in builtin aliases
2021-11-24 21:16:04 +01:00
Folkert
cb8e9acb92
special-case the closure tags
2021-11-24 21:14:58 +01:00
Folkert
3e640f78bf
cleanup
2021-11-24 20:44:51 +01:00
Folkert
308b91153e
add faster insertion path for tag unions
2021-11-24 20:38:52 +01:00
Folkert
541dd9777a
thread_local experiment
2021-11-24 19:59:53 +01:00
Folkert
f1541d56bd
use Entry in some places
2021-11-24 19:45:30 +01:00
Folkert
5e76e3a97e
more reserving into subs
2021-11-24 19:14:37 +01:00
Folkert
5663248a41
docs
2021-11-24 18:59:49 +01:00
Folkert
739ae60b1e
clean up usage of reserve_into_subs
2021-11-24 18:52:22 +01:00
Folkert
61f6687dea
fix using the wrong length
2021-11-24 18:50:47 +01:00
Folkert
1fbd2a7e7b
reserve variable slices
2021-11-24 16:02:55 +01:00
Folkert
a0c9270124
keep track of visited variables in deep_copy_var
2021-11-24 15:14:17 +01:00
satotake
10afadd810
Merge branch 'trunk' into dev-backend-num-is-zero
2021-11-24 10:59:42 +00:00
satotake
7429b09af3
free symbol
...
rename function
2021-11-24 10:58:51 +00:00
Joshua Warner
24f7692a73
Implement [more] app header formatting
...
Also, refactor out a utility method to format a Collection. This method can currently
replace some of the formatting done in module headers - but the goal is eventually
to be able to replace the code in fmt_list as well, such that there is 'one true way'
to format collections.
2021-11-23 12:19:43 -08:00
Lucas
f02ed47f31
Merge pull request #2016 from rtfeldman/aarch64_packed_structs
...
Packed Structs
2021-11-23 14:39:02 -05:00
rvcas
8ee01d6ce8
fix: add some checks due to potential truncation issues
2021-11-23 14:03:56 -05:00
Richard Feldman
651cb222a7
Drop mention of Interpreted Mode
2021-11-23 13:13:17 -05:00
Brian Carroll
44cf238a67
Merge pull request #2056 from rtfeldman/wasm-dec-add
...
Wasm dec add
2021-11-23 13:37:04 +00:00
Folkert
4e6568016d
fix comment: rust thought it was code it should execute
2021-11-23 11:56:33 +01:00
satotake
fa2ebe3d81
remove unused codes
2021-11-23 10:12:34 +00:00
satotake
4376db6c17
use load_literal
2021-11-23 10:09:53 +00:00
Brian Carroll
858e1b5ff5
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-reduce-recursion
2021-11-23 09:36:28 +00:00
Brian Carroll
8c3c01cd1f
Reduce recursion for sequences of Let statements in gen_wasm
2021-11-23 09:22:41 +00:00
Folkert de Vries
6944c900c2
Merge pull request #2065 from rtfeldman/alias-remove-lowercases
...
Alias remove lowercases
2021-11-23 10:21:05 +01:00
hafiz
682043c16c
Merge pull request #2063 from rtfeldman/type-to-var-prealloc
...
preallocate variables to prevent extra vector allocations
2021-11-22 20:05:16 -06:00
rvcas
75778b9c07
chore: remove unused const N
2021-11-22 19:58:38 -05:00
rvcas
e4861b679d
feat: refactor byte reversal into triat helper and inline some thangs
2021-11-22 19:55:55 -05:00
Brian Carroll
98474a500a
Add a list of starting points to get familiar with compiler code
2021-11-23 00:29:55 +00:00
Folkert
178eabf4dd
make non-pub a function
2021-11-22 22:13:06 +01:00
Folkert
44fdf8df18
remove unreachable cases
2021-11-22 21:40:44 +01:00
Folkert
f2f4f3bd72
Merge remote-tracking branch 'origin/trunk' into wasm-dec-add
2021-11-22 21:25:01 +01:00
Folkert
b2aa33f839
Merge remote-tracking branch 'origin/trunk' into alias-remove-lowercases
2021-11-22 21:19:27 +01:00
Folkert
2c1005fdf0
remove lowercases from Content
2021-11-22 21:15:58 +01:00
Folkert
e4ffe804ec
remove lowercases from errortype alias
2021-11-22 20:26:50 +01:00
Folkert
2506875970
preallocate variables to prevent extra vector allocations
2021-11-22 20:17:03 +01:00
satotake
0085272cb8
Merge branch 'trunk' into dev-backend-num-is-zero
2021-11-22 15:25:48 +00:00
satotake
d59a5b2f73
Merge branch 'dev-backend-num-is-zero' of https://github.com/rtfeldman/roc into dev-backend-num-is-zero
2021-11-22 15:10:12 +00:00
satotake
6f42ea3260
inline Num.IsZero of gen-dev
2021-11-22 15:08:12 +00:00
hafiz
b3ecc16b16
Merge pull request #2050 from rtfeldman/empty-tags-and-unions
...
Canonicalize to empty tags and unions
2021-11-22 08:00:07 -06:00
Folkert
7a9f5041b0
clarity return value
2021-11-22 10:27:34 +01:00
Folkert
78c26c6096
fix returning an aggregate value with ccc
2021-11-22 10:17:17 +01:00
Richard Feldman
c8cfba05f1
Merge pull request #2051 from rtfeldman/inline-subs-functions
...
mark some Subs functions as alwaysinline
2021-11-22 00:04:35 -05:00
Richard Feldman
22adbe0bce
Merge pull request #2054 from rtfeldman/i/1804-inference-var
...
Implement type checking in the presence of `_` inference variables
2021-11-21 23:58:17 -05:00
ayazhafiz
1135d88dd0
Add support for type inference at _
s in type definitions
...
All we have to do is introduce a new, unconstrained type variable at
underscore sites, and let the type reconstructor work its magic! The
unconstrained type variable will become a `FlexVar` that absorbs
constraints given to it, so it'll behave like a proper inference
variable. That's it!
Part of #1804
2021-11-21 22:54:45 -05:00