roc/getting_started
Jan Van Bruggen 83a3421659
Add RPM/Fedora alternatives to Debian/Ubuntu commands
Signed-off-by: Jan Van Bruggen <JanCVanB@users.noreply.github.com>
2022-08-26 23:00:44 -06:00
..
linux_x86.md Add RPM/Fedora alternatives to Debian/Ubuntu commands 2022-08-26 23:00:44 -06:00
macos_apple_silicon.md s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00
macos_x86.md s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00
other.md remove old getting started tip 2022-06-29 11:35:13 +02:00
README.md Update Tutorial Link 2022-08-15 13:58:40 +02:00
windows.md s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00

Getting Started

Roc is a language for making delightful software. It does not have an 0.1 release yet, and we certainly don't recommend using it in production in its current state! However, it can be fun to play around with as long as you have a high tolerance for missing features and compiler bugs. :)

The tutorial is the best place to learn about how to use the language - it assumes no prior knowledge of Roc or similar languages. (If you already know Elm, then Roc for Elm Programmers may be of interest.)

There's also a folder of examples - the CLI form example in particular is a reasonable starting point to build on.

If you have a specific question, the FAQ might have an answer, although Roc Zulip chat is overall the best place to ask questions and get help! It's also where we discuss ideas for the language. If you want to get involved in contributing to the language, Zulip is also a great place to ask about good first projects.

Installation

Running Examples

You can run examples as follows:

$ cd examples/hello-world
$ roc run

Some examples like examples/benchmarks/NQueens.roc require input after running. For NQueens, input 10 in the terminal and press enter.

examples/benchmarks contains larger examples.

Tip: when programming in roc, we recommend to execute ./roc check myproject/Foo.roc before ./roc myproject/Foo.roc or ./roc build myproject/Foo.roc. ./roc check can produce clear error messages in cases where building/running may panic.

Getting Involved

The number of people involved in Roc's development has been steadily increasing over time - which has been great, because it's meant we've been able to onboard people at a nice pace. (Most people who have contributed to Roc had previously never done anything with Rust and also never worked on a compiler, but we've been able to find beginner-friendly projects to get people up to speed gradually.)

If you're interested in getting involved, check out CONTRIBUTING.md!