Stream: beginners

Topic: host-platform-recompilation


view this post on Zulip Shritesh Bhattarai (Oct 23 2021 at 15:18):

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?

view this post on Zulip Brendan Hansknecht (Oct 23 2021 at 15:42):

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.

view this post on Zulip Shritesh Bhattarai (Oct 23 2021 at 16:15):

Thanks!

view this post on Zulip Lucas Rosa (Oct 23 2021 at 17:00):

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

view this post on Zulip Lucas Rosa (Oct 23 2021 at 17:01):

it just shells out to zig or cargo for now


Last updated: Jul 05 2025 at 12:14 UTC