Commit Graph

538 Commits

Author SHA1 Message Date
Folkert
bb40adad3a
add memory representation tests 2022-02-19 16:04:13 +01:00
rvcas
97959c8a95
Merge branch 'trunk' into update_zig_09 2022-02-12 22:51:12 -05:00
Anton-4
440a3cd15b
started moving tokenizer and grammar for syntax_highlighting 2022-02-11 13:54:10 +01:00
Anton-4
d6681f4e0a
Merge pull request #2160 from rtfeldman/editor-comments
support tld comments in docs and editor(reading only)
2022-02-10 11:49:10 +01:00
rvcas
0124e4d4b1
Merge branch 'trunk' into update_zig_09 2022-02-09 18:42:24 -05:00
Brian Carroll
c61a18a200 Use custom macros for static assertions 2022-02-09 17:16:43 +00:00
Brian Carroll
858a3c3527 roc_load: Remove unused deadlock_detection feature of parking_lot crate, to enable Wasm REPL build 2022-02-08 11:03:48 +00:00
Brian Carroll
0af4361f2a repl: continue fleshing out the Wasm repl code. Generate wrapper function. 2022-02-08 11:03:48 +00:00
Brian Carroll
b969f207c4 repl: Cargo build script for repl_wasm, generating the pre-linked binary 2022-02-08 11:03:48 +00:00
Brian Carroll
70e19053f0 repl: implement more of the JS/Wasm interface 2022-02-08 11:03:48 +00:00
Brian Carroll
4e855f1094 repl: delete and move files in repl_wasm 2022-02-08 11:03:48 +00:00
ayazhafiz
680bf8e0b7 Treat rigids as flex vars when checking number range types 2022-02-06 15:04:12 -05:00
Richard Feldman
a8e3d5f9b6
Merge remote-tracking branch 'origin/trunk' into expect-dont-panic 2022-02-03 22:25:40 -05:00
Brian Carroll
5904bb05ad repl: remove unused dependencies from roc_repl_eval 2022-02-03 09:30:04 +00:00
Brian Carroll
eb1a16d429 repl: fix tests 2022-02-03 00:27:33 +00:00
Brian Carroll
03c99bdb44 repl: move tests into their own package 2022-02-02 23:42:46 +00:00
Brian Carroll
9ace2fd9a3 repl: delete app_memory and put "external memory" logic into repl_wasm 2022-02-02 23:08:12 +00:00
Brian Carroll
380c24ba80 repl: move LLVM specific logic into roc_repl_cli 2022-02-02 22:32:12 +00:00
Brian Carroll
33e6afe83c repl: remove unused dependencies from roc_cli crate 2022-01-31 07:23:39 +00:00
Brian Carroll
c8c51f0cdc repl: Move tests from roc_cli to roc_repl_cli 2022-01-30 16:20:48 +00:00
Brian Carroll
f098c6cb99 repl: initial working version with new crate structure 2022-01-30 09:12:29 +00:00
Folkert
b9c318e9fb update the tests 2022-01-26 15:59:21 +01:00
Folkert
c663a35e16 final phase 2022-01-26 15:44:24 +01:00
Folkert
7e90812332 ptr_bytes -> target info, step 1 2022-01-26 14:28:26 +01:00
Folkert
2d23adb2a1 add roc_target crate 2022-01-26 13:55:06 +01:00
Mats Sigge
71f359fbdc Move macros from roc_reporting to new roc_error_macros module
The `internal_error!` and `user_error!´ macros can't be used everywhere
when they live in `roc_reporting` due to circular dependencies.
2022-01-23 18:40:04 +01:00
Anton-4
3047fc6845 grammar progress, made temp tokenizer 2022-01-21 20:32:28 +01:00
Anton-4
38cc6096a8 started on rust-peg grammar 2022-01-14 19:54:39 +01:00
Joshua Warner
2553cae5de Fix region size check 2022-01-01 19:06:19 -08:00
Joshua Warner
5f7bec3ee8 Use assert_multiline_str_eq in repl_eval tests 2022-01-01 18:20:05 -08:00
Joshua Warner
34e24fa2ba improve test_reporting error reports 2022-01-01 18:20:05 -08:00
Anton-4
f941e30b86 Merge branch 'trunk' of github.com:rtfeldman/roc into editor-comments 2022-01-01 11:10:54 +01:00
rvcas
98045abc4f Merge branch 'trunk' into update_zig_09 2021-12-29 14:49:27 -05:00
Richard Feldman
36e6adfad2 Use rustyline v9.1.1 2021-12-28 23:07:02 -05:00
Richard Feldman
c83a9b82e7 Fix RocResult double-free, add tests 2021-12-27 16:34:43 +01:00
rvcas
33da8137cd Merge branch 'trunk' into update_zig_09 2021-12-26 19:48:24 -05:00
Joshua Warner
a0cf5d0e70 Add simple benchmark for the parser: parse false-interpreter 2021-12-24 11:54:42 -08:00
rvcas
88d8dbc5d8 fix(inkwell): bump to llvm13 2021-12-23 16:41:37 -05:00
Joshua Warner
4fed812389 add test_fmt_examples 2021-12-21 17:25:36 -08:00
satotake
a7fe2e3e53 Fix llvm Num.toFloat width conversion
Close #2156
2021-12-11 08:12:57 +00:00
Richard Feldman
aab601366e
Merge pull request #2152 from rtfeldman/inkwell-llvm-13
update inkwell to ease the llvm13 transition
2021-12-09 19:16:23 -05:00
Anton-4
8c82025721 Merge branch 'trunk' of github.com:rtfeldman/roc into editor-comments 2021-12-09 13:55:44 +01:00
Brian Carroll
1dda8859c4 Update gen_wasm's error handling to remove Result and use macros consistently 2021-12-09 00:11:44 +00:00
Folkert
40246607aa update inkwell to ease the llvm13 transition 2021-12-08 19:36:29 +01:00
Anton-4
7fb00140c1
Merge pull request #2115 from rtfeldman/arraystring
fixes for arraystring insertion PR
2021-12-08 10:04:39 +01:00
Anton-4
d6a27d1e53 Merge branch 'trunk' of github.com:rtfeldman/roc into editor-comments 2021-12-04 11:00:03 +01:00
Brendan Hansknecht
67f5826c48 use byte array to avoid allocation when using arrstring 2021-12-02 09:47:58 -08:00
Joshua Warner
85e7360359 Fix up assert_multiline_str_eq to work regardless of whether pretty_assertions::assert_eq is in scope 2021-12-01 16:14:34 -08:00
Folkert
82bb341e9c add constraint soa form 2021-12-01 19:26:01 +01:00
Anton-4
5bd776f972 debugging inline comment bug 2021-12-01 16:57:28 +01:00
Folkert de Vries
1c7671c9ab
Merge pull request #2111 from rtfeldman/joshuawarner32/multiline-string-asserts
Make assert output for fmt+parse tests more understandable
2021-12-01 13:35:20 +01:00
Joshua Warner
fdeafe4bab Make assert output more understandable 2021-11-30 17:48:24 -08:00
Anton-4
038c296891 replaced ArrayString with arrayvec 2021-11-30 14:06:36 +01:00
Brendan Hansknecht
a63dd1eb61 use unimplemented! and internal_error! instead of result in dev backend 2021-11-27 12:38:29 -08:00
Folkert
2d0d54e13e try stack allocation for small vectors 2021-11-27 01:31:48 +01:00
Lucas
f02ed47f31
Merge pull request #2016 from rtfeldman/aarch64_packed_structs
Packed Structs
2021-11-23 14:39:02 -05:00
Folkert
64869ffb8b Merge remote-tracking branch 'origin/trunk' into layout-builtin-numbers-refactor 2021-11-21 19:22:32 +01:00
Folkert
c4ec9aa898 working mono 2021-11-20 23:25:30 +01:00
Folkert
22fb31198a use bumpalo to reduce allocations in deep_copy_var_to 2021-11-19 19:21:26 +01:00
rvcas
8544782173 feat: trying some things out 2021-11-18 18:52:55 -05:00
Richard Feldman
1d330d9147
Merge pull request #1982 from rtfeldman/joshuawarner32/parser-snapshot-testing
Convert most test_parser tests to "snapshot" tests
2021-11-17 16:01:43 -05:00
Joshua Warner
d661646748 Fix test formatting and actually assert that they pass 2021-11-14 18:31:44 -08:00
Folkert
e2f7606f25 shrink higher order with indirection 2021-11-13 15:42:47 +01:00
Folkert
2262dcb3f9 clean up some other dependencies 2021-11-10 16:25:03 +01:00
Folkert
5632e3159d remove im dependency where not needed 2021-11-10 16:00:22 +01:00
Brian Carroll
d0f1698db2 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-link-builtins 2021-11-09 15:08:43 +00:00
Brian Carroll
141480aa8d Remove unused dependencies from test_wasm 2021-11-09 14:43:54 +00:00
Brian Carroll
c7baaceae9 Fix dependencies 2021-11-09 14:28:15 +00:00
Brendan Hansknecht
360974398a Merge test_dev, test_wasm, and test_wasm_util into test_gen 2021-11-08 19:31:20 -08:00
Brendan Hansknecht
bfdd454afa Remove unused dependency 2021-11-07 18:27:28 -08:00
Brendan Hansknecht
c46b56bec8 Exclude test only dependencies from regular builds 2021-11-07 18:00:49 -08:00
Brian Carroll
ce9658684a Move wasmer dependency from gen_wasm to test_wasm 2021-11-07 22:56:28 +00:00
Brendan Hansknecht
deb0d167e8 Minimize clap features 2021-11-06 15:07:21 -07:00
Brendan Hansknecht
74a55f53f3 Switch back to cranelift due to versioning and aarch64 issues 2021-11-06 14:24:58 -07:00
Brendan Hansknecht
40f0271ccf Fix M1 mac build
I changed wasmer to use the llvm backend because it compiles the fastest and supports aarch64.
If we later run into llvm versioning issues of some sort, we should switch this to cranelift.
Also re-adds serde-json which is used on macos.
2021-11-06 14:08:19 -07:00
Anton-4
cbd4de2799 update palette, wgpu11 fixes 2021-11-06 14:10:02 +01:00
Brendan Hansknecht
11ece557ed Make gen_dev tests a single executable 2021-11-05 21:04:41 -07:00
Brendan Hansknecht
c595668b37 Remove dependency on cranelift 2021-11-05 19:59:42 -07:00
Brendan Hansknecht
d49ac68bcc Update dep with major version changes 2021-11-05 19:19:37 -07:00
Brendan Hansknecht
61174c4bc5 Update dependencies 2021-11-05 17:02:46 -07:00
Brendan Hansknecht
bddc08c977 Remove unused dependencies 2021-11-05 16:58:11 -07:00
Brian Carroll
e10b7d1f2c Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_module_builder 2021-11-03 11:32:45 +00:00
Brian Carroll
87f6246851 Remove parity-wasm! 2021-11-03 10:36:08 +00:00
Anton-4
a3fc724df3 removed unused maplit 2021-11-03 10:50:25 +01:00
Richard Feldman
ac42470c81 Drop unused libc deps 2021-11-02 19:37:38 -04:00
Richard Feldman
abe0da2eb0 Drop some unused deps 2021-11-02 19:37:05 -04:00
Richard Feldman
3f310df4b5 Drop unused roc_fmt dep 2021-11-02 19:37:05 -04:00
Richard Feldman
386c890b57 Drop unused roc_fmt dep 2021-11-02 19:37:05 -04:00
Richard Feldman
14dc4dec88 Drop unused inlinable_string dep 2021-11-02 19:37:05 -04:00
Folkert
b6373c4efb move files over 2021-11-02 21:39:16 +01:00
Matthias Beyer
9ece0fa0be Fix: Do not use custom clone of clap, but upstream
The trick was that the dependency string must be "= 3.0.0-beta.1", not
"~3.0.0-beta.1"!

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-10-27 18:14:27 +02:00
Anton-4
39974ea039 Merge branch 'trunk' of github.com:rtfeldman/roc into function_closure_to_mark_node 2021-10-25 14:34:58 +02:00
Brian Carroll
1be6fd1222 Switch to fork of parity-wasm that can support bumpalo vectors 2021-10-21 17:14:07 +02:00
Anton-4
e003725f21 cleanup unwrap 2021-10-15 19:01:41 +02:00
Anton-4
428b4574ae Merge branch 'trunk' of github.com:rtfeldman/roc into function_closure_to_mark_node 2021-10-15 12:04:51 +02:00
Anton-4
03d9d41a7a debugging closure -> MarkupNode 2021-10-08 20:19:52 +02:00
Richard Feldman
c07838e87c
Merge pull request #1749 from rtfeldman/editor_sound
play sound on F12
2021-10-07 22:36:31 -04:00
Anton-4
a9e472df96 Merge branch 'trunk' of github.com:rtfeldman/roc into editor_sound 2021-10-05 16:53:18 +02:00
Anton-4
ab665b7380 Merge branch 'trunk' of github.com:rtfeldman/roc into docs_markup 2021-10-05 11:58:45 +02:00
Anton-4
548d806a88 def->MarkupNode working 2021-10-04 19:26:31 +02:00
Anton-4
fd8167113f
Merge branch 'trunk' into crate-expr2-markupnode 2021-10-04 09:25:59 +02:00
Richard Feldman
9da561bb3c
Merge pull request #1725 from rtfeldman/wgpu-10
Upgrade editor to wgpu 10
2021-10-03 15:47:56 -05:00
Richard Feldman
e3a8d436cf
Merge pull request #1607 from rtfeldman/editor-let-value
file loading/saving/running, headers, top level defs
2021-10-03 15:45:08 -05:00
Folkert
2fe431f1b8 update morphic (can solve quicksort now) 2021-10-02 22:45:31 +02:00
Anton-4
28cf11a1d9 started on docs to markup to html 2021-09-29 20:05:03 +02:00
Anton-4
168c511988 Merge branch 'docs-parse-code-blocks' of github.com:rtfeldman/roc into crate-expr2-markupnode 2021-09-29 16:09:02 +02:00
Anton-4
082890a8cb sound on F12 with threadpool 2021-09-29 13:48:53 +02:00
Anton-4
99100be148 trying to play sound on F12 2021-09-28 19:54:05 +02:00
Anton-4
69391b26d7 removed lang and markup folder from editors, changed imports to use new crates 2021-09-25 17:14:32 +02:00
Anton-4
f9e2e3469b separated markup and util crates, no more errors 2021-09-24 20:08:49 +02:00
Anton-4
bae7a12e9e Merge branch 'trunk' of github.com:rtfeldman/roc into editor-let-value 2021-09-24 11:52:27 +02:00
Anton-4
59831f2e85 more refactoring for seperate ast crate 2021-09-22 21:02:43 +02:00
Anton-4
af34541b67 upgrade to wgpu-10, fix save on s without Ctrl 2021-09-21 11:13:56 +02:00
Anton-4
35b8159c8b
Merge branch 'trunk' into editor-let-value 2021-09-20 11:15:25 +02:00
Brendan Hansknecht
8a30b4803a Merge branch 'trunk' into integrate-linker 2021-09-16 16:27:50 -07:00
Folkert
15fd312b6f hook up wasm and assembly dev backends 2021-09-15 20:53:00 +02:00
Brendan Hansknecht
e2411ea83f Add surgical linking to frontend with simple dummy lib creation 2021-09-14 23:06:22 -07:00
Brendan Hansknecht
e96291e9a7 Enable rebuilding hosts into a dynamic executable 2021-09-14 21:59:15 -07:00
Brendan Hansknecht
0ef9498a69 Rebuild hosts in a separate thread and only optimize when specified 2021-09-14 14:46:03 -07:00
Brendan Hansknecht
89317f5573 Cargo.lock update 2021-09-11 22:56:40 -07:00
Brendan Hansknecht
1d23f4c0d2 Merge branch 'trunk' into linker 2021-09-11 22:55:07 -07:00
Brendan Hansknecht
2aac530327 Change the default roc allocator to mimalloc 2021-09-11 19:02:15 -07:00
Chadtech
a6ec5284df Merge branch 'trunk' of github.com:rtfeldman/roc into docs-parse-code-blocks 2021-09-11 13:26:55 -04:00
Anton-4
35ca4c7723 Merge branch 'trunk' of github.com:rtfeldman/roc into editor-let-value 2021-09-10 12:10:50 +02:00
Brendan Hansknecht
1caa92b173
Merge branch 'trunk' into linker 2021-09-08 20:20:18 -07:00
Brendan Hansknecht
5784272694 Merge branch 'trunk' into update-deps 2021-09-08 16:12:24 -07:00
Brendan Hansknecht
7408c152b7 Merge branch 'trunk' into linker 2021-09-08 15:52:51 -07:00
Anton-4
d922d72d83 create roc project dir if none exists 2021-09-08 20:01:46 +02:00
Brendan Hansknecht
b97035ec53 Update dependencies 2021-09-08 09:24:32 -07:00
Anton-4
deabab11fc Merge branch 'trunk' of github.com:rtfeldman/roc into editor-let-value 2021-09-07 17:05:16 +02:00
Folkert
f4379673b4 Merge remote-tracking branch 'origin/trunk' into gen_wasm 2021-09-07 16:45:57 +02:00
Brendan Hansknecht
08aa3d31d4
Merge branch 'trunk' into gen-dev/mem 2021-09-05 21:31:05 -07:00
Brendan Hansknecht
0696044a5c Update dev backend to allow reusing stack space and using less memory 2021-09-05 21:21:44 -07:00
Richard Feldman
ebd47a4113
Merge pull request #1674 from rtfeldman/from-wasm32-memory
From wasm32 memory
2021-09-05 22:19:20 -04:00
Folkert
f8809a3eef rename wasm -> wasm32 2021-09-05 14:08:14 +02:00
Folkert
f616bd802f upgrade llvm-sys to 120.2 2021-09-04 21:59:55 +02:00
Brendan Hansknecht
56dc278fae Merge branch 'trunk' into linker 2021-09-03 19:57:32 -07:00
Anton-4
3397d780b8 Merge branch 'trunk' of github.com:rtfeldman/roc into editor-let-value 2021-09-03 14:44:21 +02:00
Folkert
ff29b19338 add wasm tests 2021-09-01 22:35:14 +02:00
Brian Carroll
9ba7076d8e Cleanups after self-review
- Fix clippy warnings
- Improve a comment
- Delete commented-out lines in Cargo.toml
- Checkin Cargo.lock
2021-09-01 19:37:15 +01:00
Folkert
c7930cbbd5 drop wasmtime dependency 2021-08-30 21:43:58 +02:00
Chadtech
c53c5fdb33 Merge branch 'trunk' of github.com:rtfeldman/roc into docs-parse-code-blocks 2021-08-29 15:57:19 -04:00
Folkert
fdd34a5d3e zig remove explicit libc dep in 32-bit mode 2021-08-29 00:37:28 +02:00
Brendan Hansknecht
c7f5793d2a Merge branch 'trunk' into linker 2021-08-28 15:15:17 -07:00
Folkert
72e6a34a0d proof of concept 2021-08-28 14:48:24 +02:00
Richard Feldman
ffeaa1ac08
Merge branch 'trunk' into store-dec-as-str 2021-08-26 21:24:56 -04:00
Folkert
36fc9b5f1f update target-lexicon 2021-08-26 21:39:33 +02:00
Jared Ramirez
8594f2efbe Change how decimals are stored in mono 2021-08-26 11:18:26 -07:00
Chadtech
9e12f6d3ec ToHtml trait for docs and some rudimentary syntax highlighting that is definitely a work in progress 2021-08-22 15:53:26 -04:00
Anton-4
169520f956 Merge branch 'trunk' of github.com:rtfeldman/roc into editor-let-value 2021-08-21 12:05:59 +02:00