Stream: beginners

Topic: Questions about platforms


view this post on Zulip Ari Bellamy (Feb 10 2022 at 16:52):

So, I've been going through the repo since I was invited yesterday and I think I am beginning to understand how platforms and Roc applications connect, but I just want to be clear, so I had a few questions.

view this post on Zulip Folkert de Vries (Feb 10 2022 at 16:54):

from a roc perspective, it does not matter what language the platform is written in

view this post on Zulip Folkert de Vries (Feb 10 2022 at 16:55):

I think hello-world (or hello-zig/hello-rust) in the examples folder are good examples of a minimal platform

view this post on Zulip Folkert de Vries (Feb 10 2022 at 16:55):

it just has roc create a string and then print it out

view this post on Zulip Folkert de Vries (Feb 10 2022 at 16:56):

Then cli and benchmarks do some more stuff with the cli: reading numbers, printing strings from roc. This uses the hosted modules and Effect and Task

view this post on Zulip Folkert de Vries (Feb 10 2022 at 16:57):

Finally, tui is the most interesting platform so far; it actually run an update loop allowing you to create an elm-like TEA or model-view-update application

view this post on Zulip Ari Bellamy (Feb 10 2022 at 16:59):

Okay, so, looking at hello-zig again, each platform has to implement its own allocation strategy and panic behavior? Is there a list of roc_ functions that can/should be implemented in a platform somewhere?

view this post on Zulip Folkert de Vries (Feb 10 2022 at 17:31):

that platform has them all


Last updated: Jul 05 2025 at 12:14 UTC