Stream: beginners

Topic: How to write a new platform?


view this post on Zulip Louis Pearson (Mar 26 2023 at 21:13):

Hey, I'm interested in creating a wasm platform for Roc, targeting the wasm4 fantasy console. I want to use zig as the host language. I've gone through the tutorial page for Roc, and I don't recall seeing any documentation on implementing a platform. I'm going to take a look through the examples but I figured it would be a good idea to start a conversation here

view this post on Zulip Louis Pearson (Mar 26 2023 at 21:15):

Also is there any syntax highlighting/autoindent for emacs? I know the plan is to implement a default editor but AFAIK that doesn't work yet

view this post on Zulip Anton (Mar 27 2023 at 07:47):

Also is there any syntax highlighting/autoindent for emacs? I know the plan is to implement a default editor but AFAIK that doesn't work yet

Yes, correct. I haven't heard of any emacs plugins but perhaps you can re-use things from the (unofficial) vscode highlighting plugin or the highlighting we use for the docs. coffeescript syntax highlighting also works reasonably well.

view this post on Zulip Anton (Mar 27 2023 at 07:54):

There is indeed very little documentation on platform development. These wasm examples are probably our best resources basic wasm platform, the wasm repl, and virtual dom wip. We're always available for additional help :)

view this post on Zulip dank (Mar 27 2023 at 09:12):

i just activate elixir-mode for roc syntax highlighting


Last updated: Jul 06 2025 at 12:14 UTC