Stream: ideas

Topic: List of possible platforms


view this post on Zulip Tobias (Jun 17 2025 at 22:27):

I assume there are lots of ideas for platforms on here, but I have a hard time finding them. What would make sense?

view this post on Zulip Tobias (Jun 17 2025 at 22:31):

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.

view this post on Zulip Tobias (Jun 17 2025 at 22:34):

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?

view this post on Zulip Tommaso Ricci (Jun 18 2025 at 07:36):

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

view this post on Zulip Hannes (Jun 18 2025 at 07:41):

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

view this post on Zulip Hannes (Jun 18 2025 at 07:43):

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

view this post on Zulip Hannes (Jun 18 2025 at 07:43):

But Roc does compile to wasm which can run in the browser!

view this post on Zulip Hannes (Jun 18 2025 at 07:44):

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 :)

view this post on Zulip Tommaso Ricci (Jun 18 2025 at 08:46):

From my understanding Gleam doesn’t separate non-pure code/functions with effects from the rest like Roc does

view this post on Zulip Tommaso Ricci (Jun 18 2025 at 08:47):

Gleam will also convert integers to 64 bit floats when running in JS

view this post on Zulip Anton (Jun 18 2025 at 09:38):

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

view this post on Zulip Anton (Jun 18 2025 at 09:41):

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.

view this post on Zulip Anton (Jun 18 2025 at 09:43):

There's a long discussion about that starting here: #beginners > Plugins in roc @ 💬
Although a lot has changed since then.

view this post on Zulip Anton (Jun 18 2025 at 09:50):

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.

view this post on Zulip Anthony Bullard (Jun 18 2025 at 11:45):

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

view this post on Zulip Kilian Vounckx (Jun 18 2025 at 17:03):

I've thought about it as well. I also like Haskell's Gloss library for a pure API on very basic creative coding

view this post on Zulip Anton (Jun 20 2025 at 13:42):

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