Brian Carroll
5904bb05ad
repl: remove unused dependencies from roc_repl_eval
2022-02-03 09:30:04 +00:00
Brian Carroll
11b83929de
repl: use llvm macros in ReplApp implementation
2022-02-03 09:29:59 +00:00
Brian Carroll
d9bd98a194
repl: bring back LLVM jit macros, as they're used in tests
2022-02-03 08:50:26 +00:00
Brian Carroll
eb1a16d429
repl: fix tests
2022-02-03 00:27:33 +00:00
Brian Carroll
b317e05187
repl: formatting and Clippy
2022-02-03 00:02:12 +00:00
Brian Carroll
3c07066ace
repl: update Earthfile for new packages
2022-02-02 23:55:00 +00:00
Brian Carroll
ab0b99f032
Merge branch 'trunk' of github.com:rtfeldman/roc into repl-refactor
2022-02-02 23:46:58 +00:00
Brian Carroll
3cc64209b5
wasm: include package tests in Cargo alias
2022-02-02 23:45:05 +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
fdea13ac55
repl: thread the ReplApp through the evaluator
2022-02-02 22:54:18 +00:00
Brian Carroll
380c24ba80
repl: move LLVM specific logic into roc_repl_cli
2022-02-02 22:32:12 +00:00
Brian Carroll
e8ab649f73
repl: remove redundant str <-> &[u8] conversions on input source code
2022-02-02 21:57:42 +00:00
Brian Carroll
881e43336c
repl: rename jit function for dynamic size and change its doc comment
2022-02-02 21:36:28 +00:00
Folkert de Vries
a8b02831e5
Merge pull request #2435 from rtfeldman/i/2350
...
stricter number literal checking
2022-02-02 18:28:09 +01:00
Brian Carroll
87886e2e6b
repl: implement string evaluation for 32-bit platforms
2022-02-02 15:23:47 +00:00
Brian Carroll
4994b0ef1b
repl: replace LLVM jit macros with functions
2022-02-02 15:06:04 +00:00
ayazhafiz
30be700f01
Format
2022-02-02 08:24:03 -05:00
ayazhafiz
eb7ceddee4
Fix repl tests
2022-02-02 01:57:37 -05:00
ayazhafiz
e7dcc2daa5
Move NumWidth to roc_can
2022-02-02 00:23:43 -05:00
ayazhafiz
ae5766fdf5
Folkert's suggestions
2022-02-01 23:42:28 -05:00
ayazhafiz
df8113ce32
Typecheck numeric suffixes in patterns
2022-02-01 23:35:14 -05:00
ayazhafiz
a6f7579c07
Parse and expand numeric bounds in canonicalization pass
2022-02-01 22:50:46 -05:00
ayazhafiz
17c5fe0bff
Add granular errors regarding numeric literal parsing
2022-02-01 22:50:27 -05:00
ayazhafiz
f55e767035
Fix test_can tests
2022-02-01 22:49:52 -05:00
ayazhafiz
9f72b2710f
Run linter
2022-02-01 22:49:52 -05:00
ayazhafiz
f7a055fc78
Fix parser tests
2022-02-01 22:49:52 -05:00
ayazhafiz
e03592930f
Typecheck numeric literals with suffixes in expressions
...
Part of #2350
2022-02-01 22:49:50 -05:00
ayazhafiz
320827167f
Parse number literal width suffixes
...
Supports [u,i][8,16,32,64,128] and [nat,dec]
Part of #2350
2022-02-01 22:48:48 -05:00
Brian Carroll
545882f210
Merge pull request #2428 from rtfeldman/repl-packages
...
Split REPL into more packages
2022-02-01 22:18:56 +00:00
Folkert de Vries
780d6529c8
Merge pull request #2431 from rtfeldman/i/2293
...
Make nested datatypes into errors
2022-02-01 20:17:33 +01:00
Folkert de Vries
5086da421e
Merge pull request #2436 from rtfeldman/fix-typo-num
...
Fix typo in Num.roc
2022-02-01 20:00:15 +01:00
Richard Feldman
5b6d457aa3
Fix typo in Num.roc
2022-02-01 11:52:47 -05:00
Richard Feldman
a957b7b086
Merge pull request #2434 from rtfeldman/link_mac_libraries_for_bevy
...
Link macOS with AudioUnit, CoreAudio, IOKit frameworks
2022-02-01 08:25:59 -05:00
Brian Carroll
ad4318f1ff
Merge branch 'trunk' of github.com:rtfeldman/roc into repl-packages
2022-02-01 11:16:37 +00:00
Brian Carroll
bbe82fcf25
repl: refactor LLVM-specific code under an optional Cargo feature
2022-02-01 11:15:37 +00:00
ayazhafiz
d10eb0f9a3
Fix Apply
usage
2022-01-31 23:00:37 -05:00
ayazhafiz
a9ed4ce4ce
Removing references
2022-01-31 22:58:15 -05:00
ayazhafiz
4e942b3e5d
Make nested datatypes into errors
...
I was hoping to add nested datatypes into the language, but it turns out
doing so is quite tricky and not all that useful with Roc's current
compilation model. Basically every implementation strategy I could think
of ended up requiring a uniform representation for the data layout
(or some ugly workaround). Furhermore it increased the complexity of the
checker/mono IR generator a little bit - basically, we must always pass
around the alias definitions of nested datatypes and instantiate them
at usage sites, rather than being able to unroll aliases as we currently
do during canonicalization.
So, especially because we don't support polymorphic recursion anyway, I
think it may be better to simply disallow any kind of nested datatypes
in the language. In any case, Stephanie Weirich [seems to think nested
datatypes are not needed](https://www.cis.upenn.edu/~plclub/blog/2020-12-04-nested-datatypes/ ).
Closes #2293
2022-01-31 22:58:01 -05:00
Jan Van Bruggen
2f80d64056
Link macOS with AudioUnit, CoreAudio, IOKit frameworks
...
AudioUnit & CoreAudio are necessary to get
[Bevy](https://docs.rs/bevy/latest/bevy/ )'s "hello world" example
working inside a Roc platform.
IOKit is necessary to get
[Bevy](https://docs.rs/bevy/latest/bevy/ )'s "breakout" example
working inside a Roc platform.
Credit to @hafiz for discovering this solution.
2022-01-31 11:17:30 -07:00
Anton-4
8be1deff97
Merge pull request #2433 from rtfeldman/nix_update
...
nix update
2022-01-31 15:57:01 +01:00
Anton-4
e7918e7d8a
nix: update old rust, use nix 21.11, update to zig 0.8.1
2022-01-31 14:59:01 +01:00
Folkert de Vries
00617ebf2a
Merge pull request #2418 from rtfeldman/i/1822
...
Error when platform package config cannot be found
2022-01-31 12:51:54 +01:00
Folkert de Vries
33a2cb7240
Merge pull request #2426 from rtfeldman/effect-module
...
Parse and format `hosted` modules
2022-01-31 12:50:24 +01:00
Brian Carroll
33e6afe83c
repl: remove unused dependencies from roc_cli crate
2022-01-31 07:23:39 +00:00
Brian Carroll
516b3ee296
repl: Delete unused debug file
2022-01-31 06:50:08 +00:00
Richard Feldman
2efe9f9107
Delete some trailing spaces
2022-01-30 21:45:14 -05:00
Richard Feldman
842737297c
fix test
2022-01-30 21:44:44 -05:00
ayazhafiz
4e4986dfdd
Fix editor tests
2022-01-30 21:43:07 -05:00
ayazhafiz
5e1103dd91
Fix docs tests
2022-01-30 21:42:41 -05:00