News for hackers. Stuff that matters.
Re:Gleam 1.2.0 release – Fault tolerant Gleam by SwiftyBug on Tuesday May 28, 2024 @07:44AM (#40499729)
I'm jumping in the Gleam wagon as soon as something like Elixir's Phoenix LiveView is available.
Re:Gleam 1.2.0 release – Fault tolerant Gleam by hayleighdotdev on Tuesday May 28, 2024 @07:52AM (#40499773)
Hey there, I maintain a library a called lustre [0] that does similar things to liveview. The linked docs are the API reference, but there's not currently a guide or a robust example on how to put things together (there's a bare minimum one in the repo you can find) – that'll be changing soon, I was just giving a talk about this at Lambda Days ^.^

In the interest of fairness, there's also sprocket [1] which leans much heavier into thing that you might also what a check out.

[0]: https://hexdocs.pm/lustre/lustre/server_component.html [1]: https://sprocket.live

Re:Gleam 1.2.0 release – Fault tolerant Gleam by SwiftyBug on Tuesday May 28, 2024 @08:41AM (#40500155)
That's seriously cool! I'm going to try and give this a test this weekend.
Re:Gleam 1.2.0 release – Fault tolerant Gleam by heeton on Tuesday May 28, 2024 @08:23AM (#40500010)
I've been thinking of creating an app with a type-safe core in gleam, and then using elixir/phoenix for its more mature web / live interfaces.
Re:Gleam 1.2.0 release – Fault tolerant Gleam by SwiftyBug on Tuesday May 28, 2024 @08:33AM (#40500088)
Can you run Elixir and Gleam concurrently in the same VM and exchange messages between them?
Re:Gleam 1.2.0 release – Fault tolerant Gleam by lawn on Tuesday May 28, 2024 @09:01AM (#40500325)
Yes, they both run on the Beam VM and you can seamlessly call the code directly or pass messages between processes written in Gleam or Elixir (or Erlang).