Commit graph

47 commits

Author SHA1 Message Date
Richard Feldman
bc0c9250f9
Convert unused dbg!()s to eprintln!()s
This makes it nicer to work with dbg! normally,
because grepping the code base for dbg!() reveals
only the usages of it that are currently active.
2024-12-01 23:10:35 -05:00
Agus Zubiaga
52f84910a7
Support importing local files in the REPL 2024-04-26 23:33:19 -03:00
Brendan Hansknecht
6dc5bfb1b7
Use roc_target over target_lexicon
Tailors a target class for our needs.
Replaces tons of uses across the entire compiler.
This is a base for later adding new targets like thumb.
2024-03-31 10:50:26 -07:00
Folkert
b0d57587e3
List.get with negative index in repl 2024-01-28 22:21:40 +01:00
Brendan Hansknecht
5dd0bdebc9
support seamless slice in expects 2023-12-02 15:57:53 -08:00
Brendan Hansknecht
3e66254b25
update zig and rust platforms to have correct roc_panic and roc_dbg 2023-11-29 21:49:34 -08:00
Brian Carroll
c50925240d
Merge pull request #5921 from roc-lang/wasm-repl-crash
report roc_panic to the user in the web repl
2023-10-25 19:22:10 +01:00
Brendan Hansknecht
398bf2f96c
update rust code to llvm-16 and fix build
also update:
 - llvm frame address
 - erased function type
 - dec passing to zig
 - gen dev storage size
2023-10-23 13:50:31 -07:00
Folkert
eb61d352f5
changes after review 2023-10-20 18:04:07 +02:00
Folkert
793ab8ec16
report a roc_panic to the user in the web repl 2023-10-20 14:47:42 +02:00
Richard Feldman
074401fbdf
Remove the whole #var1 thing 2023-09-17 06:31:51 -04:00
Brian Carroll
ead3c33eb8
Tweak comments and factoring 2023-09-10 11:28:29 +01:00
Brian Carroll
e37d0c45c6
Fix types in web REPL tests 2023-09-09 17:19:40 +01:00
Brian Carroll
adc97a0099
Renaming and comments 2023-09-09 16:01:31 +01:00
Brian Carroll
f007d5c33a
Integrate UI state machine into Web REPL 2023-09-09 15:47:22 +01:00
Brian Carroll
aa0e975845
clippy 2023-09-09 15:03:50 +01:00
Brian Carroll
8f59ee9492
Create a new crate roc_repl_ui for shared CLI/web UI code 2023-09-09 11:55:55 +01:00
Ayaz Hafiz
44c4797d9a
Parameterize program solving on a FunctionKind
This new flag determines whether we should introduce a new kind to
represent lambda sets, or whether lambdas should be erased. The latter
is not yet implemented.
2023-07-12 13:53:50 -05:00
Folkert
ef39bad7c6
auto clippy fixes 2023-07-10 18:27:08 +02:00
Brendan Hansknecht
75a035e12d
remove all definitions of roc_memcpy 2023-06-02 15:23:05 -07:00
Folkert
454f3c603e
give the new exposed symbols to the surgical linker 2023-02-25 19:35:46 +01:00
Anton-4
ed78112fbc
windows build fixes 2023-02-17 15:44:15 +01:00
Ayaz Hafiz
ee7e9d4ab5
Update gen wasm 2023-01-11 14:39:11 -06:00
Ayaz Hafiz
7ab7fdfa7b
Push interned layouts as mut throughout the backend, and intern box layouts 2022-12-28 18:51:26 -06:00
Brian Carroll
e6325fa78f
repl_wasm: rename Cargo feature wasmer->wasi_test 2022-12-16 14:52:05 +00:00
Brian Carroll
a35e912c0a
Fix wasm repl tests 2022-11-21 19:48:38 +00:00
Brian Carroll
a3cfdd478d
rename called_preload_fns to called_fns 2022-11-21 19:48:02 +00:00
Luke Boswell
cec67721e6
merge upstream/main 2022-11-06 09:27:46 +11:00
Luke Boswell
f3bdb5f321
updating rust package documentation 2022-11-03 20:00:06 +11:00
Richard Feldman
560c984d30
Fix error filtering region math 2022-11-01 01:20:52 -04:00
Richard Feldman
9854dceec8
Filter out warnings and errors for past defs 2022-11-01 00:24:49 -04:00
Richard Feldman
71bb6b3e7d
Update format_answer call in repl_wasm 2022-10-31 07:09:00 -04:00
Richard Feldman
4d8a3ba3d7
Don't persist defs if they have errors 2022-10-30 03:42:30 -04:00
Richard Feldman
b7d3c77b76
Have the repl eval anyway if there are errors 2022-10-27 18:47:32 -04:00
Richard Feldman
a6c1667d37
Reorganize repl modules 2022-10-27 18:47:31 -04:00
Richard Feldman
9f498add60
Reorganize some REPL modules 2022-10-27 18:47:27 -04:00
Ayaz Hafiz
e31a16f650
Properly wrap with newtype-by-void layouts in repl
Closes #4208
2022-10-05 11:17:57 -05:00
Ayaz Hafiz
3b4b1838b8
Push layout interner further through Layout 2022-08-31 14:33:52 -05:00
Ayaz Hafiz
ed04c2040a
Push the layout interner through the backends 2022-08-31 14:33:52 -05:00
Ayaz Hafiz
c5466810a4
Add LayoutInterner to LayoutCache
Adds a thread-local interner of layouts to LayoutCache, and updates all
references appropriately.

This is a bit suboptimal for single-threaded workloads that will look at
creating layout caches again, like the REPL, but I think that's okay for
now - since the global interner will be uncontested for those workloads, it
should still be plenty fast to access the interner, even behind a lock.
2022-08-31 14:33:51 -05:00
Brian Carroll
dd040d5f73
wasm: add stack_bytes field to Env 2022-08-08 21:41:25 +01:00
Folkert
546b702740
nullable wrapped tags 2022-08-06 14:40:00 +02:00
Folkert
6c0217c6f6
make the repl app mutable (for expect repl) 2022-07-23 14:03:30 +02:00
Folkert
f0707fd92b
use OUT_DIR in wasm repl module building 2022-07-14 17:58:43 +02:00
Ayaz Hafiz
9b7950f765
Wrap opaque types in the repl with the appropriate opaque wrapper
Closes #3504
2022-07-13 17:46:04 -04:00
Brian Carroll
f80ab79c8e
test_gen: remove wasmer-wasi dependency 2022-07-10 14:08:35 +02:00
Anton-4
eee85fa45d
moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00