Folkert
a2cb9035c4
formatting
2022-01-19 23:56:14 +01:00
Folkert
5230c6f6f3
implement Effect.loop
2022-01-19 23:06:32 +01:00
Folkert
aecafe5c80
add Task.forever to platforms
2022-01-19 19:32:18 +01:00
Joshua Warner
8b58d5cbc7
Switch to always encoding package names / paths as strings
...
This will simplify parsing and make it possible to have a uniform lexer for the language. Previously unquoted package names were allowed to include '-'s, which aren't valid identifiers.
In the future, we'll distinguish local paths from packages in the package-manager by looking for a ".roc" suffix, which should only be present in local paths.
2021-12-23 20:11:14 -08:00
Joshua Warner
8b967f1ea8
Run formatter on all examples
2021-12-21 17:17:31 -08:00
Brendan Hansknecht
8a45b1eed8
use ManuallyDrop instead of forget for rust host fx functions
2021-12-10 17:09:49 -08:00
Richard Feldman
ac42470c81
Drop unused libc deps
2021-11-02 19:37:38 -04:00
Brendan Hansknecht
e6c137889a
Just disable gc-sections with surgical linker for rust hosts for now
2021-09-25 12:19:56 -07:00
Brendan Hansknecht
411ed58eec
Fix rust host with surgical linking
2021-09-24 21:37:58 -07:00
Folkert
f13e65ff8e
more removal of roccallresult
2021-09-19 20:54:32 +02:00
Folkert
c5eeaab2c2
remove callresult from cli examples
2021-09-19 18:34:42 +02:00
Folkert
8a2baaf0cf
remove debug prints
2021-08-27 00:05:13 +02:00
Folkert
03c21add77
don't touch the refcount in putLine
2021-08-26 23:35:15 +02:00
Folkert
84b5f0c91e
free allocated buffer
2021-08-26 23:28:11 +02:00
Richard Feldman
1c481d7345
Add some tracing to reproduce double free
2021-08-22 16:23:56 -04:00
Richard Feldman
368ced972d
Implement echo example
2021-08-22 16:12:54 -04:00
Richard Feldman
6b6c439d6a
Update Stdin/Stdout in CLI example
2021-08-21 21:16:41 -04:00
Richard Feldman
dd4fec589e
Update Task in CLI example
2021-08-21 21:14:30 -04:00
Richard Feldman
7069046aaf
Add examples/cli
2021-08-21 20:54:15 -04:00
Richard Feldman
a675d61a74
rm -r examples/cli
2021-07-19 22:47:18 -04:00
Richard Feldman
96e96f7e5d
Drop obsolete comment
2021-06-18 22:11:04 -04:00
Folkert
c44ed3ec79
remove annotation
2021-06-19 00:52:02 +02:00
Folkert
79b44b2dc5
fix UD
2021-06-19 00:51:19 +02:00
Folkert
474a0747cd
use MaybeUninit
2021-06-19 00:46:47 +02:00
Richard Feldman
8e526631c2
Shrink buffer for RocStr path conversion
2021-06-18 15:21:11 -04:00
Richard Feldman
a12b421e9a
Drop roc_fx_readAll
...
It's really not doing anything significant that roc_fx_open
and roc_fx_read aren't already.
2021-06-18 15:21:11 -04:00
Richard Feldman
804c00c899
Implement some file I/O stuff in cli host
2021-06-18 15:21:11 -04:00
Richard Feldman
0b3715ebee
Rearrange arg order for roc_alloc etc
2021-05-24 21:01:12 -04:00
Richard Feldman
18df7fd24f
Make alignment be a u32
2021-05-23 23:46:09 -04:00
Richard Feldman
bfd8187d97
Try to specify roc_alloc etc in example Rust hosts
...
...but they're all broken for other reasons, so who knows
if it actually worked?
2021-05-23 23:46:09 -04:00
Richard Feldman
7a408e44da
s/Pkg-Config/Package-Config/g
2021-05-22 15:29:18 -04:00
Folkert
7b3fa2b57b
we can import aliases now!
2021-04-25 17:44:09 +02:00
Richard Feldman
0a50b0b488
Change license to UPL-1.0
...
Closes https://github.com/rtfeldman/roc/issues/1199
2021-04-21 19:18:44 -04:00
Richard Feldman
688216955e
Drop extraneous printing in CLI example
2021-04-15 18:32:57 -04:00
Richard Feldman
da7dffe0e9
roc run
passes through arguments and exit code
2021-04-15 18:32:57 -04:00
Folkert
c68cd2fb2d
fix and test
2021-04-14 22:03:03 +02:00
Richard Feldman
792a18816a
Update authors in Cargo.toml
2021-04-11 08:11:52 -04:00
Richard Feldman
a3c7dc494b
Add HTTP error handling to CLI example
2021-04-06 22:45:04 -04:00
Richard Feldman
dba526bb3e
Add Task.onFail and Task.attempt
2021-04-06 22:44:39 -04:00
Richard Feldman
4bb0852bd8
Add RocResult
2021-04-06 22:44:25 -04:00
Richard Feldman
da75c3e4a1
Make use of tag literals being usable as functions
...
Thanks @rcvas!
2021-04-05 22:21:18 -04:00
Richard Feldman
61ae65905c
Fix incorrect Http.getUtf8 type
2021-04-05 22:21:04 -04:00
Richard Feldman
490427f730
Use ureq over reqwest
2021-04-05 22:11:48 -04:00
Richard Feldman
e052938837
Use reqwest::blocking::get in cli host
2021-04-05 21:19:08 -04:00
Richard Feldman
2d0f8482e9
Rename Http.getStr to Http.getUtf8
2021-04-05 21:18:49 -04:00
Richard Feldman
e96a799a01
Fix some warnings
2021-04-05 20:23:59 -04:00
Richard Feldman
30db822051
Add basic Http.roc
2021-04-05 20:15:47 -04:00
Richard Feldman
9e71f83cf5
Drop unused Task function
2021-04-05 20:15:16 -04:00
Richard Feldman
bd9e93f5ed
Add initial Http module to cli example
2021-04-05 20:15:06 -04:00
Richard Feldman
5e2c4bdda4
Add reqwest and openssl deps to cli example
2021-04-05 20:14:43 -04:00