A fast, friendly, functional language
open sourceUPL-1.0free
Roc is a fast, friendly, single-paradigm functional language with a small number of simple primitives, designed to build fast and run fast by compiling to machine code or WebAssembly. Its compiler does complete type inference across all your code with a sound type system, so a program that type-checks never hits a runtime type mismatch or a null exception, and it ships a formatter and other tools with the language. Roc is memory-safe with automatic memory management, does all I/O through a lightweight state machine so it can be asynchronous, and aims to outperform the fastest mainstream garbage-collected languages. Roc is a work in progress: its first release candidate, 0.1.0 RC1, came out in November 2026. Development is funded by sponsors and donations through the Roc Programming Language Foundation, a US nonprofit.
Libraries for Roc
Talira doesn't list any yet.
Problems it solves
- a functional language with a sound type system that compiles to fast machine code
- a language where a program that compiles never throws a null or type error at runtime
- a simple functional language with friendly compiler errors and a built-in formatter
- compile functional code to WebAssembly for the browser
- a memory-safe language that runs faster than Go or Java without manual memory management
Features
- compiles to machine code or WebAssembly
- complete type inference with a sound type system
- no null exceptions
- single-paradigm functional language with few primitives
- automatic memory management and memory safety
- asynchronous I/O through a lightweight state machine
- built-in formatter and toolset
- the full compiler runs in the browser
Limitations
- Roc is a work in progress, with no stable release yet: its first release candidate, 0.1.0 RC1, came out in November 2026.1
Alternatives
The same job
These do what Roc does.
- Elm A delightful language for reliable webapps
- OCaml An industrial-strength functional programming language with an emphasis on expressiveness and safety
- Haskell Enjoy long-term maintainable software you can rely on
- Gleam A friendly language for building type-safe systems that scale
- Dart An approachable, portable, and productive language for high-quality apps on any platform
- Elixir Simple from zero to scale