Stream: show and tell

Topic: Galena: A lamdera implementation in roc


view this post on Zulip Nathan Kamenchu (May 14 2025 at 09:02):

I've written a very basic proof of concept of a lamdera - like platform that allows direct communication between the backend and frontend through a websocket.

You're welcome to check it out at Galena
It's very simplistic and has only the barebones features required for this to meet the definition of the platorm.
It uses wasm for the fronted written in zig as is required for all current wasm implementations. rust for the backend and has javascript to handle the websocket messages and ui. The ui written was very quickly done and is very barebones with only buttons, divs, text and onclick events. There is no virtual dom and all code is rerendered. There is no deallocation and each rerender continuously leaks memory. There are a number of types that are not supprted as the intermediate toBackend and toFrontend message types such as tagged unions which is a major limitation but a blueprint for further progress is present

Contributions, Bug reports and collaboration is welcome and
Help with the UI layer with someone who has more experience in handling UIs in wasm would be appreciated

view this post on Zulip Nathan Kamenchu (May 14 2025 at 09:02):

https://github.com/kamenchunathan/galena

view this post on Zulip Isaac Van Doren (May 14 2025 at 13:14):

Very cool!

view this post on Zulip Richard Feldman (May 15 2025 at 21:45):

whoa, super cool! :smiley:


Last updated: Jul 06 2025 at 12:14 UTC