Does making a change to a .roc file recompile the platform too? Do we intend to support hot code reload? Will it be possible to compile Roc apps without having source access to the platform?
Currently it does. Though if only the roc files changed, it isn't needed. Just something that hasn't been dealt with yet. We do have a --precompiled-host
flag that will skip compiling the host.
We do eventually intend to support hot code reloading.
It will be possible to compile a roc app without the source to a platform.
Thanks!
atm if the host is zig, the zig build command is smart enough to know that nothing changed in the host code and it shouldn’t run the compilation all over again even if the command is ran
it just shells out to zig or cargo for now
Last updated: Jul 05 2025 at 12:14 UTC