Sean Hagstrom
c53f6cf2fe
formatter: remove spaces at the beginning and end of single-line square bracket expressions
2022-05-22 14:06:34 +01:00
Anton-4
0f59f3097a
cargo fix --edition
2022-05-16 17:04:17 +02:00
Brian Carroll
aaea254e8f
Pass precompiled host bytes to gen_wasm in CLI
2022-05-15 11:11:08 +01:00
Brian Carroll
997daacf66
Update some Zig code to 0.9.1
2022-05-15 11:10:41 +01:00
Folkert
302b90906a
fix helloZig
2022-04-08 10:05:18 +02:00
Folkert
9d9e7d10d4
use exposed_generic in hello world examples
2022-03-12 14:42:14 +01:00
Brendan Hansknecht
8b7acb5c93
update hello-world examples to use capacity
2022-03-11 19:26:09 -08:00
Jan Van Bruggen
ed29497cd3
Remove unnecessary scripts
...
These assume bash, and their steps are easily performed with
the Roc CLI and the README docs.
2022-03-07 21:12:11 -07:00
Jan Van Bruggen
0e186631eb
Rename hello examples from snake_case to camelCase for consistency
2022-03-07 21:10:19 -07:00
Jan Van Bruggen
589861a88a
Re-append newline after "Hello, World!" output
...
See https://github.com/rtfeldman/roc/pull/2470#discussion_r821295601
(@rtfeldman has "seen some terminals get really unhappy if a program
prints things and doesn't print a newline to stdout before exiting")
2022-03-07 21:06:53 -07:00
Jan Van Bruggen
5d7c06321e
Update hello_world.roc references in docs
2022-03-07 20:11:10 -07:00
Jan Van Bruggen
793835cc24
Re-consolidate web example & improve instructions
2022-03-07 20:11:08 -07:00
Jan Van Bruggen
ca8f196f3b
Clarify some script steps
2022-03-07 20:10:50 -07:00
Jan Van Bruggen
dcc7b64ecb
Add helpful bash scripts
2022-03-07 20:10:48 -07:00
Jan Van Bruggen
eadf39e47b
Add multi-platform Hello World example
2022-03-07 20:00:32 -07:00
Jan Van Bruggen
48a2fa5148
Homogenify Hello World example logic
2022-03-07 20:00:07 -07:00
Jan Van Bruggen
9f68194436
Remove trailing newlines from Hello World examples
2022-03-07 20:00:07 -07:00
Jan Van Bruggen
6ea8df5e16
Consolidate all Hello World examples into one dir
2022-03-07 20:00:05 -07:00
Jan Van Bruggen
a2f2434d71
Rename hello-world to hello-c
2022-03-07 19:59:30 -07:00
Jan Van Bruggen
99c825aa99
Simplify example platform names
2022-03-07 19:59:29 -07:00
Folkert
885500712c
remove old Effect module things
2022-02-03 23:55:02 +01:00
Folkert
a98635ed06
update other examples
2022-02-03 22:45:15 +01:00
Jan Van Bruggen
1e9d2d1239
Remove accidental trailing spaces
2022-01-18 22:25:46 -07: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
Jan Van Bruggen
d03a51c75b
Rename base
package to pf
everywhere, to match tutorial
2021-12-12 05:57:39 -07:00
Folkert
c925613cdc
swap argument order
2021-11-26 23:16:47 +01:00
Brendan Hansknecht
7d1b88b3fb
Merge branch 'trunk' into integrate-linker
2021-09-23 21:12:40 -07:00
Folkert de Vries
693869336d
Merge branch 'trunk' into direct-return-known-types
2021-09-21 23:01:09 +02:00
Brendan Hansknecht
d710e78ab3
Merge branch 'trunk' into integrate-linker
2021-09-21 09:39:47 -07:00
Folkert
e319d1e758
make roc main return values, instead of write them into pointer
2021-09-19 22:05:48 +02:00
Folkert
c5eeaab2c2
remove callresult from cli examples
2021-09-19 18:34:42 +02:00
Brendan Hansknecht
da28b669bb
Get zig host working
2021-09-15 11:45:44 -07:00
Richard Feldman
e3292cff4e
Drop some more references to needing C++
2021-08-29 16:59:15 -04:00
Folkert
a12e18ca70
add roc_panic to all hosts
2021-08-16 22:46:00 +02:00
Richard Feldman
bc952641eb
Update docs to remove references to roc run
2021-08-05 23:15:00 -04:00
Folkert
e805e63db6
typos
2021-07-30 16:54:22 +02:00
Richard Feldman
66bdb210ed
Have Hello World write to a fd
...
This is a much nicer host to read than the one that does
all the gymnastics to convert to a null-terminated string
just to call printf!
2021-06-21 19:05:12 -04:00
Richard Feldman
2fc3305423
Have hello-world example use C
2021-06-13 10:49:18 -04:00
Folkert
e85ddc3506
fix examples
2021-06-07 20:29:16 +02: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
24e22bc31b
Have roc_alloc return a nullable pointer
2021-05-23 23:46:09 -04:00
Richard Feldman
175115ee4e
Have examples with zig hosts use roc_alloc etc
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
c68cd2fb2d
fix and test
2021-04-14 22:03:03 +02:00
Richard Feldman
ce6969d31f
Only do the compiler_rt workaround on macOS
2021-03-14 22:31:32 -04:00
Richard Feldman
58cf08349e
Don't check in binaries in examples
2021-03-14 22:31:32 -04:00
Folkert
a79a9ea253
use the compiler's str.zig from platforms
2021-01-31 23:11:02 +01:00
Folkert
b434bef1d3
use a zig platform for hello-world
2021-01-31 16:33:08 +01:00