Gleam v1.13.0 released
63 points by giacomo_cavalieri
63 points by giacomo_cavalieri
Support for Tangled is awesome to see! :)
Gleam is a very exciting language and I want to find an excuse to use it more. One big question I have though is if anyone here has used it to target JavaScript, and how did that work? I am curious about Gleam as a replacement for TypeScript for Frontend application development but I don't think I've ever seen an example of it.
I’ve used it with lustre for a small front end project and it was fantastic. Imagine elm with better syntax, easy interop, and the ability to write your own native effects. Oh, and components done well.
That sounds very promising! Did you find any limitations? And does anyone know if there is a library for handling/compiling SQL queries similar to sqlc?
Yeah! There's both Squirrel and Parrot, they have slightly different approaches but both are sqlc-like: while Squirrel talks directly to your Postgres database to type queries, Parrot wraps sqlc and will download and use that to type queries. If you like sqlc you might enjoy both :)
I needed to jack a bunch of raw HTML into the page and they (Lustre) sent me off to create a "web component" which turned out to be entirely non-functional. I still have to dive back into this but it was a huge mess of Lit being not great and something around shadowDOMs not rendering etc.
Can't agree on better syntax. But Gleam has semantics like use that make the code less nested and easier to read.
One big question I have though is if anyone here has used it to target JavaScript, and how did that work?
For a slightly different usecase: I used Gleam to target Deno, specifically so I could have a single-binary CLI application (you can technically do this with erlang but the startup times are painful). I really enjoyed it!