I've been thinking about the possibility of making an Operating System platform (hypothetically anyway, I haven't made any platforms, let alone something this ambitious).
I think it would be really cool because unlike traditional OS's which need to carefully manage permissions and memory access in order to prevent badly written or malicious programs from breaking things, an OS Roc platform could just treat programs as functions. Programs could share memory without conflict and managed side effects means you have permissions via the type system.
Some other advantages:
Okay, I don't have a point to all this but maybe it's an interesting idea to some other people too :smiley:
I think that idea is super exciting!
I've been thinking if someone already has a web server platform that works on common OSes, they could improve it without even changing the application-facing Roc API (so, completely backwards compatible!) by by changing the underlying host binary to be an entire operating system image
there would be some linking details to figure out, but it should definitely be possible!
Cool, if I understand correctly, the platform is almost like Docker but hopefully with less hassle!
There is no Platformfile or such dough. :)
I like to think about platforms as firmware, its a layer that separates your Roc programs from the sharpness of the metal, so you cann't cut your self :)
This topic was moved here from #beginners > OS platform by Richard Feldman
back when I was debating between the name "platform" and "framework" for the thing applications get built on in Roc, I settled on "platform" (despite the fact that often people use the term "platform" to mean "operating system" - e.g. usually when people say "cross-platfrom" they mean "cross-operating-system") in part because of this use case - the platform actually can be an operating system!
Last updated: Jun 16 2026 at 16:19 UTC