I tried following the steps to install Roc here:
https://www.roc-lang.org/install/macos_apple_silicon.
When I tried typing "roc version", it couldn't find roc at all.
Any suggestions on how to proceed? I can provide more details if someone has ideas on what could have gone wrong.
Can you post the path to the Roc executable?
And then post the part of your PATH that would point to it?
OK I realized I thought roc would be installed in a standard location rather than in the directory that the gz file expanded to. I manually added that path and had to brew install one other package for some library that was needed. I assume, at some point, it would be brew install roc, but we're not there yet?
We are quite a ways from that
But I agree with we should have a script to install to some standard location
Probably $HOME/.local/bin
All is good though. I was briefly looking at Gleam, but unlike Python, it had a bit of scaffolding even for a simple Hello, World program. It's nice to write short programs without needing extra directories. For a web setup, fine. It looks like Roc can be compiled and presumably run in an interpreted mode (like Python by default)?
In a way yes. A roc file can just be run and built. It can even be run as a script with the appropriate shebang
Anthony's message is correct but Roc is always compiled to assembly, not interpreted
That's a good clarification Anton
Last updated: Jul 06 2025 at 12:14 UTC