Hello, I wanted to build a compiler to maybe contribute to the language.
However, I can't seem to run build. I have Zig 0.14.1 installed, after running zig build roc
, and doing ./roc build test.roc
, I get hit with the build not implemented
Hello, I wanted to build a compiler to maybe contribute to the language.
Cool :)
The build subcommand is not yet implemented for the new (zig) compiler. roc check file.roc
is partially implemented. Perhaps we have some roc run file.roc
things working as well, is run
already hooked up with the interpreter @Luke Boswell?
Yeah, we a have other subcommands implemented but not build
yet. I think that will be the last to come online.
You can see how to use the test platform here https://github.com/roc-lang/roc/tree/main/test/str
zig build -Dllvm
# Run (ignore cached files)
./zig-out/bin/roc --no-cache test/str/app.roc
note - In my latest PR I was going to remove the -Dllvm
flag and have that built by default to simplify working with Roc for new contributors.
In this PR comments I show an example of how you can use roc test
https://github.com/roc-lang/roc/pull/8211
roc format
and roc check
work as you would expect I believe.
roc bundle
and roc unbundle
are new and not that useful yet... but working for managing roc packages
@EnDeRBeaT if you would like help getting started with anything let me know. Always happy to jump on a call with new contributors :smiley:
The roc repl
is ready to be implemented. We could start with a very simple cli interface.
Alternatively we've thrown the idea around of using a tui library for the roc cli... that's a bigger project and would need much more design work and discussion but also would be heaps of fun to work on.
Also helpful for new contributors is the Playground https://roc-lang.github.io/roc-playground/ which shows source code and the intermediate representation as it progresses through each compiler stage, and a REPL for playing with expressions.
Last updated: Sep 09 2025 at 12:16 UTC