Roc is a functional language that compiles to machine code or WebAssembly. It offers a tutorial, standard library docs, examples, and a browser-runnable compiler.
Overview
Roc is a single-paradigm functional programming language aimed at builds that run quickly and a straightforward developer experience. An installation guide, tutorial, standard library documentation, and runnable examples ship with the language.
Roc code is designed to build fast and run fast, compiling to machine code or WebAssembly. Syntax, semantics, and the bundled toolset are user-friendly, built around a small set of language primitives.
A browser demo can run the full compiler without a backend server. Documentation covers functions, collections, pattern matching, types, and platforms.
Development is ongoing. Some materials state the language is not ready for a 0.1 release, while a 0.1.0 announcement is also referenced elsewhere.
Key features
- Functional language primitives
- Machine code compilation
- WebAssembly compilation
- Browser-runnable compiler
- Standard library docs
- Tutorial and examples
Use cases
- Learning functional Roc
- Compiling Roc to native code
- Trying Roc in the browser
- Building Roc applications