Stream: beginners

Topic: can't run roc build


view this post on Zulip EnDeRBeaT (Aug 22 2025 at 17:48):

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

view this post on Zulip Anton (Aug 22 2025 at 18:20):

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?

view this post on Zulip Luke Boswell (Aug 22 2025 at 22:40):

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

view this post on Zulip Luke Boswell (Aug 22 2025 at 22:40):

zig build -Dllvm

# Run (ignore cached files)
./zig-out/bin/roc --no-cache test/str/app.roc

view this post on Zulip Luke Boswell (Aug 22 2025 at 22:41):

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.

view this post on Zulip Luke Boswell (Aug 22 2025 at 22:42):

In this PR comments I show an example of how you can use roc test https://github.com/roc-lang/roc/pull/8211

view this post on Zulip Luke Boswell (Aug 22 2025 at 22:42):

roc format and roc check work as you would expect I believe.

view this post on Zulip Luke Boswell (Aug 22 2025 at 22:43):

roc bundle and roc unbundle are new and not that useful yet... but working for managing roc packages

view this post on Zulip Luke Boswell (Aug 22 2025 at 22:44):

@EnDeRBeaT if you would like help getting started with anything let me know. Always happy to jump on a call with new contributors :smiley:

view this post on Zulip Luke Boswell (Aug 22 2025 at 22:48):

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.

view this post on Zulip Luke Boswell (Aug 22 2025 at 23:22):

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