I assume there are lots of ideas for platforms on here, but I have a hard time finding them. What would make sense?
Recently I needed to add Prometheus metrics to a legacy application by parsing its stdout. I found that impossible with both the CLI and webserver platforms.
So maybe an asynchronous IO platform, that uses select under the hood and an FRP style main method that gets a state, the event (new line or buffer full of stdin, new TCP connection) and returns a new state?
Hey, do you think a Roc platform to run on the browser compiling to JavaScript could be made in the future?
It will be interesting to have one
I think this has come up few times before and the answer is basically yes it's possible but it would be a lot of work for a sub par Elm-like experience so it won't happen
For example Roc uses machine integers which JS doesn't have, so you'd either have to accept your Roc code sometimes breaking when transpiling to JavaScript or use a JS library to emulate proper integers and get a massive performance penalty
But Roc does compile to wasm which can run in the browser!
If you're looking for a language that's similar to Roc and can transpile to JS then I suggest trying Gleam, I've had a lot of fun with it since it hit v1.0 :)
From my understanding Gleam doesn’t separate non-pure code/functions with effects from the rest like Roc does
Gleam will also convert integers to 64 bit floats when running in JS
Hannes said:
But Roc does compile to wasm which can run in the browser!
Take a look at https://github.com/niclas-ahden/joy @Tommaso Ricci
Tobias said:
I assume there are lots of ideas for platforms on here, but I have a hard time finding them. What would make sense?
Roc could be great for games as the user friendly layer over the game engine, like gdscript in godot. Lua is commonly used for that purpose as well.
There's a long discussion about that starting here:
Although a lot has changed since then.
Tobias said:
Recently I needed to add Prometheus metrics to a legacy application by parsing its stdout. I found that impossible with both the CLI and webserver platforms.
You can pipe things to a Roc program, if you query stdin in a loop that may work for your purpose.
Anton said:
Tobias said:
I assume there are lots of ideas for platforms on here, but I have a hard time finding them. What would make sense?
Roc could be great for games as the user friendly layer over the game engine, like gdscript in godot. Lua is commonly used for that purpose as well.
I plan on some point having a some sort of Love2d style platform for this purpose. I have an existing Love2d project I'd love to port over
I've thought about it as well. I also like Haskell's Gloss library for a pure API on very basic creative coding
A raspberry pi platform (with GPIO, access to camera module, etc.) would make a lot of sense too
Last updated: Jun 16 2026 at 16:19 UTC