Installation
Arc is currently only available as source code. You’ll need to build it from the GitHub repository using Gleam and Erlang.Prerequisites
Arc requires the following tools to be installed:Erlang/OTP
Arc runs on the BEAM virtual machine, so you need Erlang/OTP installed.Recommended version: Erlang/OTP 26 or later
Gleam
Arc is written in Gleam, a type-safe functional language that compiles to Erlang.Recommended version: Gleam 1.0 or later
Install Gleam (if needed)
Git
You’ll need Git to clone the Arc repository:Building Arc
Once you have the prerequisites installed, you can build Arc:Build the project
Gleam will automatically download dependencies and compile the project:The first build downloads these dependencies:
gleam_stdlib- Gleam’s standard librarygleeunit- Testing framework (dev dependency)simplifile- File system utilities (dev dependency)
Running Arc programs
Arc can run JavaScript files or start an interactive REPL.Run a JavaScript file
File types
Arc supports two file types:- ES Modules (
.js) - Default. Files are treated as ES modules withimport/export - CommonJS scripts (
.cjs) - Legacy script mode without module semantics
Most examples use ES module syntax. Use
.cjs extension only if you need classic script semantics.Interactive REPL
Start the REPL with no arguments:Evaluate expressions
Use the-p flag to evaluate an expression and exit:
Development workflow
If you’re developing Arc itself:Project structure
Once built, the Arc project has this structure:Troubleshooting
”gleam: command not found”
Gleam is not installed or not in your PATH. Follow the Gleam installation steps above.”erl: command not found”
Erlang is not installed or not in your PATH. Follow the Erlang installation steps above.Build errors about missing dependencies
Try removing the build cache and rebuilding:REPL crashes or hangs
This is expected - Arc is highly experimental. File an issue on GitHub with:- The JavaScript code you ran
- Error messages or output
- Your Erlang and Gleam versions
Test262 tests fail
Arc is not fully spec-compliant yet. Many test262 tests are expected to fail. Check the conformance chart in the repository for current status.Next steps
Quickstart
Run your first Arc program
Core concepts
Learn about Arc’s architecture
API reference
Learn the Arc API
Actor programming
Write concurrent programs