Commit Graph

738 Commits

Author SHA1 Message Date
Chadtech
52c4b80f7b
Merge branch 'trunk' into list-single 2020-06-08 08:45:00 -04:00
Chad Stearns
5ad05efa39 Merging in remote 2020-06-07 23:50:20 -04:00
Richard Feldman
a4338f0406 Remove lots of unnecessary clones (thanks clippy!) 2020-06-07 15:43:07 -04:00
Richard Feldman
72706a0ac0 clippy 2020-06-07 15:37:12 -04:00
Richard Feldman
e726d838ea Don't have builtins return Defs 2020-06-06 23:55:05 -04:00
Richard Feldman
093579780f Fix stack overflow 2020-06-06 23:47:00 -04:00
Richard Feldman
1ef85fa061 Store builtins as a Map 2020-06-06 23:47:00 -04:00
Richard Feldman
0a9989e75f wip 2020-06-06 23:41:12 -04:00
Richard Feldman
9e02537ebb Store builtins as a Map 2020-06-06 23:41:09 -04:00
Chad Stearns
97cb4a737e List.single implementation 2020-06-03 18:56:23 -04:00
Chad Stearns
3ffd31d5f3 Merge branch 'is-positive-is-negative' of github.com:rtfeldman/roc into trigonometric-functions 2020-06-03 04:28:52 -04:00
Chadtech
af42e13c77
Merge branch 'trunk' into is-positive-is-negative 2020-06-03 01:39:00 -04:00
Richard Feldman
a1d15f42bb Provide a LayoutCache 2020-05-31 20:24:30 -04:00
Richard Feldman
efb23dff44 Drop unused imports 2020-05-31 20:16:04 -04:00
Richard Feldman
99dcda8603 Use inlinable_string 0.1 2020-05-31 20:14:19 -04:00
Chadtech
0641e287a6
Merge branch 'trunk' into is-positive-is-negative 2020-05-29 23:10:29 -04:00
Richard Feldman
ac940a8b4b wip 2020-05-26 21:21:12 -04:00
Richard Feldman
e55929d545 move load::file::Module to can:: 2020-05-26 21:21:11 -04:00
Richard Feldman
60e583fb78 Improve debug stuff a bit 2020-05-26 21:19:47 -04:00
Richard Feldman
887ec9860a wip 2020-05-26 21:19:46 -04:00
Richard Feldman
42e3d35564 Use specialize_all 2020-05-26 21:18:25 -04:00
Richard Feldman
639c132ce0 wip 2020-05-26 21:18:25 -04:00
Richard Feldman
98eed099f8 Delete obsolete test.asm 2020-05-26 21:18:25 -04:00
Richard Feldman
eaf7e2df36 Improve a comment 2020-05-26 01:16:20 -04:00
Richard Feldman
f79ead7f02 Avoid cloning on the main thread 2020-05-26 01:03:07 -04:00
Richard Feldman
11e2f998fc Refactor alias cloning logic a bit 2020-05-26 00:58:14 -04:00
Richard Feldman
c47dc57fc2 Appease clippy 2020-05-26 00:41:57 -04:00
Richard Feldman
1b48c370a9 cargo fmt 2020-05-26 00:33:16 -04:00
Richard Feldman
4295dec955 Fix load_builtin_aliases ordering 2020-05-26 00:04:59 -04:00
Richard Feldman
f31e260e2f Don't log type mismatch info in release builds 2020-05-26 00:04:59 -04:00
Richard Feldman
c386192e8b Reorganize when solving and constraint gen happen 2020-05-26 00:04:42 -04:00
Richard Feldman
afacf1d6c4 Reorganize declarations and src 2020-05-25 17:45:02 -04:00
Chad Stearns
ca9272f229 Merge branch 'trunk' of github.com:rtfeldman/roc into trigonometric-functions 2020-05-25 16:29:04 -04:00
Chad Stearns
5c1c9efb89 Added trigonometric functions to code gen and builtins 2020-05-25 16:28:41 -04:00
Richard Feldman
64583a01bb move load::file::Module to can:: 2020-05-25 16:02:10 -04:00
Richard Feldman
1d6d9ec994 Fix doc parsing bug 2020-05-23 22:43:09 -04:00
Richard Feldman
715b13263c Reproduce doc parsing bug 2020-05-23 22:43:02 -04:00
Richard Feldman
7471cd5301 Add a test for parsing docs 2020-05-23 22:03:27 -04:00
Richard Feldman
3dac73d8d0 Parse doc comments 2020-05-23 22:03:21 -04:00
Richard Feldman
4d8cbc4811 Drop obsolete contains_newline method 2020-05-23 21:41:11 -04:00
Chad Stearns
c83a6dc7b8 Float function isPositive, isNegative, and isZero 2020-05-22 23:05:17 -04:00
Chad Stearns
3fef390a76 Merging in remote 2020-05-20 20:43:15 -04:00
Richard Feldman
62a399c569 Make things mobile-friendly 2020-05-18 23:21:36 -04:00
Chad Stearns
a01bdd66c5 isZero, isPositive, isNegative 2020-05-18 12:49:27 -04:00
Richard Feldman
33d4af8b5b Add some stuff to Num docs 2020-05-14 22:02:05 -04:00
Richard Feldman
6e32c31c06 Try moving Int and Float docs into Num 2020-05-14 20:47:34 -04:00
Richard Feldman
7f05678bf8
Merge branch 'trunk' into int-rem 2020-05-13 22:53:31 -04:00
Chad Stearns
0140c4ca9f Removed div_by_zero function where it wasnt needed 2020-05-13 19:09:50 -04:00
Chad Stearns
c8d62bd838 Int.isOdd and Int.isEven functions in code gen 2020-05-13 18:57:15 -04:00
Chad Stearns
7df4771f7b Int.rem 2020-05-13 04:27:08 -04:00
Richard Feldman
9e70fceb33 Wrote a bunch of string docs 2020-05-11 23:43:30 -04:00
Richard Feldman
c752d1607a Update Float to mention binary and decimal floats 2020-05-11 23:43:30 -04:00
Richard Feldman
101e90e437 Go back to Float 2020-05-11 23:43:30 -04:00
Richard Feldman
045f1627a0 Try Real 2020-05-11 23:43:30 -04:00
Richard Feldman
1a348d1731 Write some docs 2020-05-11 23:38:18 -04:00
Richard Feldman
b5e4066c49 clippy clop 2020-05-10 15:22:05 -04:00
Richard Feldman
33a5f36d7c Refactor out name arg from from_can 2020-05-10 15:13:18 -04:00
Richard Feldman
85ec1e0f72 Fix anonymous function code gen 2020-05-10 15:13:18 -04:00
Richard Feldman
bf11262e61 Move layout_id from mono to gen
This is because it's actually important that mono never use this.
It should only be used in gen, because it's only safe to use
synchronously, and it's important that mono be done in parallel.

Moving it to gen guarantees that mono will not use it, even accidentally!
2020-05-10 15:13:18 -04:00
Richard Feldman
bd6228de8b Prevent infinite looping in code gen 2020-05-10 15:13:18 -04:00
Richard Feldman
e26df0d8cb Drop unused ContentHash 2020-05-10 15:13:18 -04:00
Richard Feldman
6e05ba816f Have CallByName use Layout 2020-05-10 15:13:18 -04:00
Richard Feldman
4bfdea03a9 Drop dead code 2020-05-10 09:58:42 -04:00
Richard Feldman
8572879e0d Remove unused procs argument 2020-05-09 22:41:59 -04:00
Richard Feldman
c49abfe2de Add layout to CallByName 2020-05-09 22:41:59 -04:00
Richard Feldman
510ab36f51 Use LayoutCache to avoid recomputing layouts 2020-05-09 22:11:32 -04:00
Richard Feldman
efa486251e Add LayoutCache 2020-05-09 22:11:32 -04:00
Chad Stearns
198716498c Used negate instead of multiplying by -1 for INT_ABS implementation 2020-05-09 21:43:41 -04:00
Chad Stearns
c435cd2a19 increase stack of quicksort test 2020-05-09 21:34:17 -04:00
Chad Stearns
09ef6b2734 Merge branch 'trunk' of github.com:rtfeldman/roc into int-abs 2020-05-09 18:12:29 -04:00
Chad Stearns
dea2fe2382 Moved exiting builtin functions to use defn helper 2020-05-09 18:11:21 -04:00
Chad Stearns
d2cea5237b Remove commented out INT_ABS implementation 2020-05-09 18:01:36 -04:00
Chad Stearns
f5ebdf49e4 More int_abs documentation 2020-05-09 18:01:22 -04:00
Chad Stearns
1d1f620090 Int Abs 2020-05-09 17:56:10 -04:00
Richard Feldman
6a79a75648 Don't regenerate anonymous function symbols 2020-05-09 12:56:55 -04:00
Richard Feldman
ca0b6fde31 Drop unused mono test helper 2020-05-09 09:46:24 -04:00
Richard Feldman
8fbfae5e62 Expand some docs 2020-05-09 09:46:24 -04:00
Chad Stearns
7331e55a25 Cargo fmt 2020-05-08 04:07:07 -04:00
Chad Stearns
8e8412bf94 FLOAT_ABS test, and NUM_ABS generally, but not implemented 2020-05-08 00:49:08 -04:00
Richard Feldman
7e7c6ef4af Drop obsolete symbol_counter field 2020-05-04 20:32:21 -04:00
Richard Feldman
2904f29c36 Have mono::expr::Env use IdentIds::gen_unique 2020-05-04 20:29:36 -04:00
Richard Feldman
ce9e7a91f6 Clean up some Cargo.toml files 2020-05-03 21:37:59 -04:00
Richard Feldman
56cc7c013f Drop obsolete dbg! 2020-05-03 08:51:11 -04:00
Richard Feldman
ff953021d5 Fix parser bug with newline after '=' in def
Fixes #51
2020-05-03 08:50:55 -04:00
Richard Feldman
c856314e13 Reproduce parser bug with newline after '=' in def
See #51
2020-05-03 08:50:32 -04:00
Richard Feldman
20648958eb Revise some future fmt tests 2020-05-03 08:50:21 -04:00
Richard Feldman
2eea57a51a Add some more detail to a todo 2020-05-02 22:19:29 -04:00
Richard Feldman
13dd937a71 Revert "Attempt to add builtin_defs to CLI"
This reverts commit 2679077de9.
2020-05-01 22:00:06 -04:00
Richard Feldman
2679077de9 Attempt to add builtin_defs to CLI 2020-05-01 21:59:38 -04:00
Richard Feldman
101dc80ae5 Move parse::operator into module::operator 2020-05-01 21:58:53 -04:00
Richard Feldman
f47d96e1a4 Update a comment 2020-05-01 21:56:44 -04:00
Richard Feldman
5f33073703 fix tests 2020-05-01 19:30:55 -04:00
Richard Feldman
ee31eac0c5 Code gen toplevel module functions 2020-05-01 19:30:55 -04:00
Richard Feldman
5c31369072 Code gen thunks for top-level module decls 2020-05-01 19:30:55 -04:00
Richard Feldman
072cf4e844 Revert "wip canonical builtins in modules"
This reverts commit e1935a1e9f0c7ea1ffefe5f2f4f07f2c7666363b.
2020-05-01 19:30:55 -04:00
Richard Feldman
a1750567ff wip canonical builtins in modules 2020-05-01 19:30:55 -04:00
Richard Feldman
a70f6cfdb0
Merge branch 'trunk' into int-ne 2020-05-01 18:43:15 -04:00
Chad Stearns
d1b00633be INT NEQ for i1 and i8 integer types 2020-05-01 17:29:43 -04:00
Chad Stearns
4b5f7bfded Changed Int div implementation to use != 2020-05-01 17:29:12 -04:00
Chad Stearns
6b6e6f0eec Changed Int div implementation to use != 2020-05-01 17:17:41 -04:00