Commit Graph

283 Commits

Author SHA1 Message Date
Anton-4
6af26c9f75 editor: draw multiple rectangles 2020-12-04 20:05:29 +01:00
Anton-4
c0fdc09ec7 Merge branch 'trunk' of rtfeldman/roc into editor_refactor 2020-12-04 11:28:30 +01:00
Chadtech
1326219415 File module with read, fmt, and write functionality for the editor 2020-12-04 00:14:32 -05:00
Anton-4
1738141111 editor refactoring 2020-12-02 16:43:54 +01:00
Anton-4
ea846b5842 Merge branch 'trunk' of ssh://github.com/rtfeldman/roc into repl_history 2020-11-27 11:45:20 +01:00
Anton-4
e3f64bdb61 repl keep command history 2020-11-27 11:45:11 +01:00
Brendan Hansknecht
902bbef60a Add storing variables in the stack 2020-11-22 12:48:09 -08:00
Brendan Hansknecht
c9ea15b0a5 Merge branch 'trunk' into dev-backend 2020-11-21 17:18:26 -08:00
Richard Feldman
0ef6a2676d
Merge pull request #716 from rtfeldman/repl_arrows
Using arrows in REPL moves cursor
2020-11-21 14:59:46 -05:00
Richard Feldman
3803d70496
Merge branch 'trunk' into render-big-rectangle 2020-11-21 12:48:02 -05:00
Anton-4
da8deaa2f3 Using arrows in REPL moves cursor 2020-11-21 17:50:38 +01:00
Brendan Hansknecht
0cee2cd96f Merge remote-tracking branch 'origin' into dev-backend 2020-11-18 23:54:31 -08:00
Anton-4
149bf60c81 Minor refactoring for readability 2020-11-18 19:26:59 +01:00
Folkert
8528e5affb upgrade inkwell 2020-11-17 01:58:30 +01:00
Brendan Hansknecht
86c3c0a409 Add base structure for dev compiler backend
Currently we only generate a single static function, but it is probably
loaded and run with jit. This is the base to start generating proper
code.
2020-11-14 18:43:02 -08:00
Folkert
cf80e2852f add test for transitive alias import 2020-11-11 01:20:30 +01:00
Richard Feldman
27d17f6e2e
Merge branch 'trunk' into fix/docs-tests 2020-11-05 23:35:41 -05:00
Bob Shelline
dda634cf0a Use buffers for vertex data 2020-11-04 19:47:41 -07:00
Folkert
c3090cf9d7 attempt to wrap closure call result in RocCallResult 2020-11-05 00:23:53 +01:00
Pablo Hirafuji
f441e1dbd1 Merge branch 'trunk' into fix/docs-tests 2020-11-03 10:59:05 -03:00
Bob Shelline
4972e03405 Render a triangle underneath the text 2020-10-30 18:48:10 -06:00
Bob Shelline
eed7406a41 Update wgpu_glyph to 0.10 2020-10-30 17:54:56 -06:00
Pablo Hirafuji
29f9364696 Merge branch 'trunk' into fix/docs-tests 2020-10-30 06:54:19 -03:00
Brendan Hansknecht
78b13ae59d Specifically ignore some Valgrind test 2020-10-26 17:32:44 -07:00
Pablo Hirafuji
6c70f3d50f Merge branch 'trunk' into fix/docs-tests 2020-10-25 20:22:47 -03:00
Pablo Hirafuji
43f390d80c Add some tests for documentation gen 2020-10-25 20:08:43 -03:00
Richard Feldman
21d4f8026e
Merge branch 'trunk' into convert-bitcode-gen-to-c 2020-10-25 14:17:17 -04:00
Richard Feldman
3d7a265c5f Load a dynamic library in the repl 2020-10-25 01:42:10 -04:00
Richard Feldman
b4377d4d67 Get a basic dylib linking started 2020-10-25 01:41:55 -04:00
Jared Ramirez
d82d6b6fe9 Convert builtins to C 2020-10-24 12:22:51 -07:00
Richard Feldman
e8f1201937 Use libloading to load dylibs 2020-10-24 12:01:34 -04:00
Richard Feldman
bf7f1d49e2 Add bucket.rs 2020-10-21 21:48:01 -04:00
Folkert
432dbee422 switch docs to use the standard file load mechanism 2020-10-21 15:43:56 +02:00
Richard Feldman
b0ad4ec43a Use ArrayString for small string optimization in editor AST 2020-10-20 20:06:14 -04:00
Richard Feldman
5c6ef2d01b
Merge branch 'trunk' into sized-functions-inference 2020-10-18 11:20:57 -04:00
Richard Feldman
65336919fc Have valgrind output XML to a tempfile 2020-10-18 08:46:50 -04:00
Folkert
cbe78593c2 add extra pass that further trims down the captured symbols 2020-10-17 00:17:55 +02:00
Folkert
d931c8994a fix most type inference issues 2020-10-16 20:50:42 +02:00
Folkert
40ffca2b7b IT WORKS 2020-10-16 00:18:40 +02:00
Folkert de Vries
78ba4afad4
Merge branch 'trunk' into layout-cache 2020-10-14 11:38:01 +02:00
Folkert
89a1146c19 run gen tests as modules 2020-10-13 21:45:41 +02:00
Folkert
2bceaf0503 implement LayoutCache on top of ena 2020-10-13 16:10:38 +02:00
Brendan Hansknecht
1f131970bc Merge branch 'trunk' into valgrind 2020-10-11 18:13:35 -07:00
Richard Feldman
b8eff12767 Use parking_lot::Mutex 2020-10-10 20:30:33 -04:00
Folkert
c7b251d6b4 Merge remote-tracking branch 'origin/trunk' into gen-modules 2020-10-08 01:29:32 +02:00
Brendan Hansknecht
23c2b39653 Merge branch 'trunk' into valgrind 2020-09-30 18:40:26 -07:00
Brendan Hansknecht
46a03e7cd5 Fail tests on any valgrind memory errors
I currently don't like how the xml is parsed. It is definitely
functional, but it is very strange. Serde is not made to deal with a
list of fields with the same name that aren't next to eachother in the
xml.
2020-09-30 09:43:52 -07:00
Folkert
95dffad073 WIP 2020-09-30 15:01:24 +02:00
Pablo Hirafuji
d68d8b4347 Merge branch 'trunk' into feature/docs-read-parse-file 2020-09-27 19:41:47 -03:00
Pablo Hirafuji
aed612a75c Load docs from files 2020-09-27 19:40:54 -03:00
Richard Feldman
b50483eedf Use rtfeldman/inkwell release2 tag 2020-09-19 22:48:29 -04:00
Folkert
be6752542b update to run on our fork of inkwell again 2020-09-19 21:50:33 +02:00
Folkert
14da3906da wip 2020-09-18 01:07:53 +02:00
Jared Ramirez
a0402bca4d Add Num.ceiling 2020-09-15 18:37:45 -07:00
Folkert de Vries
009eb1293a
Merge branch 'trunk' into feature/docs 2020-09-14 22:20:06 +02:00
Pablo Hirafuji
590a27aeab Generate docs from hardcoded structure 2020-09-13 23:35:28 -03:00
Richard Feldman
27552108eb cargo update 2020-09-12 08:06:26 -04:00
Jared Ramirez
c6b14e755c Add clarificaton to oks docs 2020-09-11 13:05:59 -07:00
Folkert
145f75d72b list reverse in-place 2020-09-11 00:59:19 +02:00
Jared Ramirez
d72f88a5b3 Fix nix build issues on MacOS 2020-09-05 13:58:33 -07:00
Richard Feldman
edb2530bfa Support nested lists in repl 2020-08-23 16:14:31 -04:00
Richard Feldman
c32bb057f2 Use roc_fmt to render repl output exprs 2020-08-23 14:35:03 -04:00
Richard Feldman
825de52b83 Add some basic repl tests 2020-08-23 11:49:33 -04:00
Richard Feldman
295cb00499 wip 2020-08-12 23:18:40 -04:00
Folkert
078c6df677 Merge remote-tracking branch 'origin/trunk' into refcount 2020-08-08 22:34:14 +02:00
Richard Feldman
9e0cf4cd35 Restore CLI 2020-08-02 22:04:31 -04:00
Richard Feldman
82a7a836e3 Revert "Use arena_pool in load::file"
This reverts commit 87bcd4153b.
2020-08-02 11:17:42 -04:00
Richard Feldman
87bcd4153b Use arena_pool in load::file 2020-08-02 11:17:22 -04:00
Richard Feldman
d533f6234c Merge remote-tracking branch 'origin/arena_pool' into crossbeam 2020-08-02 09:36:47 -04:00
Richard Feldman
732c8bcc2d Various improvements to ArenaPool 2020-08-02 00:03:38 -04:00
Richard Feldman
b91359e4c7 Initial pass at arena_pool 2020-08-01 15:42:22 -04:00
Richard Feldman
1c49e116b3 wip 2020-07-30 00:59:03 -04:00
Richard Feldman
aea125549a Add find_task 2020-07-28 20:51:48 -04:00
Folkert
eb793b2b44 write more tests for reset/reuse 2020-07-28 01:13:49 +02:00
Richard Feldman
eaaeda728a Use synchronous file I/O over mmap 2020-07-27 01:10:04 -04:00
Richard Feldman
9f9ce327d4 Lazily validate that input bytes are valid UTF-8 2020-07-27 01:10:04 -04:00
Richard Feldman
15f087c93e Use memmap for reading files 2020-07-27 01:10:04 -04:00
Richard Feldman
645490205d cargo update 2020-07-23 21:38:10 -04:00
Richard Feldman
799e137f55 Restore CLI 2020-07-21 02:00:50 -04:00
Richard Feldman
245a9fc951 Merge remote-tracking branch 'origin/trunk' into specialize-separately 2020-06-13 21:03:38 -04:00
Richard Feldman
d9451a4b98 cargo update 2020-05-31 18:14:34 -04:00
Richard Feldman
3323cfdd04 Drop some obsolete dependencies 2020-05-30 09:43:11 -04:00
Richard Feldman
f10e817226 Switch to wgpu for rendering 2020-05-30 01:13:05 -04:00
Richard Feldman
66fd716a8c Revert "wip try merging in glyph stuff"
This reverts commit d66e16ce7a9b35ff5881b10d5012057a3b2d4708.
2020-05-30 01:13:05 -04:00
Richard Feldman
79469b2d23 wip try merging in glyph stuff 2020-05-30 01:13:05 -04:00
Richard Feldman
b93f129319 Revert "Add text shaders (segfaults)"
This reverts commit 360bb8ec2b580a2b0061854cbd9eb5f1fe2db6e6.
2020-05-30 01:12:49 -04:00
Richard Feldman
a87667c74f Add text shaders (segfaults) 2020-05-30 01:12:49 -04:00
Richard Feldman
887ec9860a wip 2020-05-26 21:19:46 -04:00
Richard Feldman
639c132ce0 wip 2020-05-26 21:18:25 -04:00
Richard Feldman
0c9b895912 Render a triangle
Largely following https://github.com/mistodon/gfx-hal-tutorials - code
is CC0 licensed. Lovely tutorials!
2020-05-05 22:07:23 -04:00
Richard Feldman
05e13e9842 Precursor to triangle in editor 2020-05-05 21:40:14 -04:00
Richard Feldman
f0b65a25e2 Launch a blank window for the editor 2020-05-04 21:41:45 -04:00
Richard Feldman
50357acd55 Add editor/ crate 2020-05-03 21:38:36 -04:00
Richard Feldman
16ff40a836 Use clap to parse CLI flags 2020-04-16 22:02:29 -04:00
Richard Feldman
d31247cbe3 cargo update 2020-04-15 07:08:21 -04:00
Richard Feldman
0e48f512fd Use tokio for CLI process stuff 2020-04-15 07:06:11 -04:00
Richard Feldman
9ca754b8fd First pass at loading modules from cli 2020-04-15 07:06:11 -04:00
Folkert
97c10e1211 setup for mono reports 2020-04-12 01:56:57 +02:00
Folkert
5e226ee5f4 convert type problems into pretty doc 2020-04-09 01:08:09 +02:00
Richard Feldman
7887a2b8f3 cargo update 2020-04-08 06:41:53 -04:00
Richard Feldman
9288e20469 Upgrade to LLVM 10 2020-04-08 06:41:53 -04:00
Folkert
fc8d9c2fd9 record diff 2020-04-06 21:40:54 +02:00
Richard Feldman
d28f8449d0 Report errors in the CLI 2020-04-03 21:58:44 -04:00
Folkert
3987ed47dc add pretty.rs to vendor 2020-04-04 01:40:17 +02:00
Richard Feldman
63bf1ce8b0
Merge branch 'trunk' into report-problems 2020-04-01 23:12:31 -04:00
Richard Feldman
081de1b4bc Add builtins/bitcode/ 2020-03-31 23:48:48 -04:00
Richard Feldman
84ec100208 Merge remote-tracking branch 'origin/trunk' into report-problems 2020-03-30 23:49:30 -04:00
Richard Feldman
5f817d8019 Add a basic CLI 2020-03-30 21:27:37 -04:00
Richard Feldman
503486f5bb Merge remote-tracking branch 'origin/trunk' into report-problems 2020-03-29 23:27:21 -04:00
Folkert
1bf3a7c333 bump Cargo.lock 2020-03-29 23:32:54 +02:00
Chad Stearns
3f2579c4f3 Module name report text variety 2020-03-29 14:26:25 -04:00
Richard Feldman
e20325215e cargo update 2020-03-25 19:47:28 -04:00
Richard Feldman
cc8683d241 Fix use of GEP (was using byte offset, not index) 2020-03-21 21:19:18 -04:00
Richard Feldman
48954eb52b Update to Inkwell version with memcpy 2020-03-21 21:19:18 -04:00
Richard Feldman
6ae1ee373e Use a tag on rtfeldman/inkwell 2020-03-08 17:51:13 -04:00
Chadtech
0a053cfac4
Merge branch 'trunk' into restore-reporting-tests 2020-03-08 16:28:08 -04:00
Chadtech
35a3d736a0
Merge branch 'trunk' into restore-reporting-tests 2020-03-08 00:42:49 -05:00
Richard Feldman
3a89d16a22 Update inkwell 2020-03-08 00:31:54 -05:00
Chad Stearns
25513d7eda Restoring report test file 2020-03-07 14:43:47 -05:00
Richard Feldman
0f79a3311d Upgrade bumpalo to 3.2 2020-03-07 11:20:35 -05:00
Richard Feldman
363a7a0abd Mov gen to its own crate 2020-03-06 18:24:37 -05:00
Richard Feldman
a18e023326 Move load to its own crate 2020-03-06 18:24:37 -05:00
Richard Feldman
31e300021c Move fmt to separate crate 2020-03-06 18:24:37 -05:00
Richard Feldman
5a129a506a Move fmt 2020-03-06 18:24:37 -05:00
Richard Feldman
a2f5f6f9fb Move solve and uniq tests into other crates 2020-03-06 18:24:37 -05:00
Richard Feldman
c3fcfd65cb Move reporting into its own crate 2020-03-06 02:06:18 -05:00
Richard Feldman
cc92ca7e7c Move solve and unify into their own crates 2020-03-06 01:43:50 -05:00
Richard Feldman
908e485fca Move constrain and its deps into their own crates 2020-03-06 01:43:39 -05:00
Richard Feldman
3b6ed43126 Extract can/ into its own crate, plus its deps 2020-03-05 23:01:32 -05:00
Richard Feldman
313b7a79e8 Use workspaces and move everything into compiler/ 2020-03-05 17:45:52 -05:00
Richard Feldman
f652687718 Upgrade Inkwell 2020-02-28 21:51:57 -05:00
Richard Feldman
43229365ed Upgrade to Cranelift 0.59 2020-02-28 21:36:23 -05:00
Folkert
5d9d1aa327 remove boolean_expr dependency again 2020-02-05 13:43:48 +01:00
Folkert
174715749d Merge remote-tracking branch 'origin/trunk' into usage-analysis 2020-02-02 23:58:47 +01:00
Richard Feldman
24494af55d Update to Cranelift 0.56 2020-01-31 00:00:01 -05:00
Folkert
035f6fd4d9 switch to using BDD simplification 2020-01-24 23:09:12 +01:00
Richard Feldman
88ff2f126f cargo update 2020-01-21 23:57:12 -05:00
Richard Feldman
e4bbb06567 Drop hashbrown dependency 2020-01-21 23:56:37 -05:00
Richard Feldman
5e26ca7264 Reorganize builtin constants 2020-01-21 21:32:55 -05:00
Richard Feldman
99f99380da Got tests compiling 2020-01-18 02:57:20 -05:00
Richard Feldman
692ea66419 Introduce Cranelift 2020-01-07 21:43:50 -05:00
Richard Feldman
55e4ce1134 Introduce ll module 2020-01-05 00:02:44 -05:00
Richard Feldman
b45fefd617 Update im and Inkwell 2020-01-02 19:57:07 -05:00
Richard Feldman
cebcdafe93 Use InlinableString over Box<str> 2020-01-01 06:02:14 -05:00
Richard Feldman
e37f10de3f cargo update 2019-12-18 18:42:24 -05:00
Folkert de Vries
dc0fec79ba update cargo lock 2019-12-16 15:42:46 +01:00
Richard Feldman
00221a6d4d Update Inkwell to 0.5.3 2019-12-15 17:17:41 -05:00
Richard Feldman
92083e1e62 Relax some crate bounds 2019-12-07 01:18:08 -05:00
Richard Feldman
0a9abed1d4 Update Inkwell 2019-11-30 20:35:07 -05:00
Richard Feldman
064ac5ce84 Add tokio sync and futures crate 2019-11-30 20:35:07 -05:00