Stream: beginners

Topic: Odin platform example


view this post on Zulip Ryzh (Aug 13 2025 at 17:57):

Hi! I am trying to build a "hello world" platform with Odin. here are the sources: https://github.com/0riginaln0/roc-platform-odin

At the moment, I have a 1-to-1 translation of the host.c and idk how to move on.
Could you tell me what my next step is?

view this post on Zulip Ryzh (Aug 13 2025 at 19:21):

my goal is to use Roc as an embedded scripting language in my Odin application

view this post on Zulip Luke Boswell (Aug 14 2025 at 04:04):

@Ryzh welcome :wave:

I think it will be awesome to have an Odin platform example. Though I'd recommend waiting a few weeks and starting with the new Roc Host ABI which we've implemented in the Zig compiler. This is significantly nicer to work with. If you want to see an example checkout the test platforms str test platform or int test platform.

As soon as we have more functionality implemented, I'll be updating all my platform templates (Zig, Rust, Go, Swift, C etc) to help people get started building.


Last updated: Aug 17 2025 at 12:14 UTC