Better HN
topnewbestaskshowjobs
Log inSign up

mbuhot

2 karma · joined Jul 25, 2020 (6y ago) · 3 submissions

Functional programming fan. Engineering Manager at Alembic.
Submissions

comment 1y ago · link · parent

Re front end libraries, the other project I’m working on is an adapter for using InertiaJS from the Gleam Wisp web framework.

It won’t be as elegant as Lustre, but I figure it may be helpful for adoption if React/Vue/Svelte can be used on the front end.

With the server-side routing, Inertia doesn’t feel quite so SPA-first.

comment 1y ago · link · parent

Indeed Gleam’s typed actors are very powerful! I had to read through the erlang implementation code to fully internalise Subjects and Selectors. Thankfully Gleam makes it pretty easy since the std library package sources are just a go-to-definition away.

comment 1y ago · link · parent

Wow I never expected to stumble across a library I created while scrolling hacker news! :)

One interesting aspect of this approach is that if you want Gleam’s type safety guarantees, it requires explicitly decoding dynamic terms into Gleam data structures.

The latest version of Glyn amortises the cost of the decoding by performing it once per cluster node, then using the local typed messaging system to deliver the message to local subscribers.