News for hackers. Stuff that matters.

giacomocava

Re:Gleam doesn't compile to Erlang source anymore on Tuesday October 06, 2026 @01:24PM (#49981507)
Aww thank youuu
Re:Gleam doesn't compile to Erlang source anymore on Tuesday October 06, 2026 @01:23PM (#49981505)
Thank you! Too kind
Re:Gleam doesn't compile to Erlang source anymore on Tuesday October 06, 2026 @10:31AM (#49979118)
Thank you so much!! Reading this really made my day <3
Re:Testing Can Be Fun, Actually on Friday February 06, 2026 @10:30AM (#46914034)
Thanks!!
Re:The Gleam Programming Language on Wednesday January 14, 2026 @01:49AM (#46613114)
There’s no “unknown” or “any” in Gleam, it’s not possible to cheat the type system that way
Re:You Don't Need an ORM [video] on Tuesday December 09, 2025 @01:23PM (#46208508)
Speaker here! I'm really happy about this talk, I hope people enjoy it as much as I enjoyed delivering it :)
“We wouldn't be using Gleam if it wasn't a safe, sensible - almost boring - choice.” - I think this has become one of my new favourite quotes
Re:We Rewrote Our Startup from PHP to Gleam in 3 Weeks on Tuesday November 25, 2025 @12:52PM (#46048509)
Exciting to see new Gleam production uses pop up! Great writeup :)
Re:Fixing my gripes with GitHub using Gleam and a Raspberry Pi on Monday September 08, 2025 @12:37PM (#45170426)
I have to say, it's been great for hosting my little server! I ssh into it to code using Helix and it's been really good at compiling Gleam and running the language server as well :)
Amazing to hear success stories of Gleam in production! Running on the beam really feels like a super power
Re:Gleam v1.12.0 Released on Wednesday August 06, 2025 @03:02PM (#44816189)
Omg yes, pattern matching is such an amazing feature I miss it dearly in languages that don't have it!
Re:Gleam v1.11 Released on Monday June 02, 2025 @02:42PM (#44161747)
Implementing the decision tree optimisation was such a rewarding process, worth every minute I spent head scratching!
Re:Hyper Typing on Monday May 19, 2025 @05:28AM (#44027933)
Gleam is great too!
Re:Gleam v1.10.0 Released on Monday April 14, 2025 @12:21PM (#43682987)
> the language server (which is included within the gleam binary) now provides the "find references" feature

This was my #1 most wanted feature, I’m so grateful to Surya for implementing it, he’s amazing!!

Re:A Code Centric Journey into the Gleam Language YOW 2024 on Saturday March 15, 2025 @07:25PM (#43375843)
Thank you! Yeah guides and documentation will be a big focus for the core team this year :)
Re:Gleam v1.9.0 Released on Sunday March 09, 2025 @10:09AM (#43309160)
print debugging is the best debugging <3 Thank you for the kind comment!!
Re:Gleam v1.9.0 Released on Sunday March 09, 2025 @09:36AM (#43308974)
The language server has been improving at such a fast pace it's hard to keep up! Soon I'll be out of code actions to implement
Re:Gleam v1.9.0 Released on Sunday March 09, 2025 @09:35AM (#43308970)
All the pain to get echo working was 100% worth it! What a great release
Re:Gleam Is Pragmatic on Monday October 07, 2024 @07:35AM (#41764982)
> Could you say something about the cases where you did need to write Erlang code?

Sure! For one of my most used packages (https://github.com/giacomocavalieri/birdie) I needed to get the terminal width to display a nice output, that has to be implemented using FFI based on the specific runtime (erlang or js) so I had to write it in Erlang, that was just a couple of lines of code.

But now there's a Gleam package to do it, so if I were to rewrite it today I wouldn't even need to write Erlang for that and could just use that!

> What kind of cases?

Usually it is when you need some functionality that has to rely on specific things from the runtime (like IO operations, actors on the BEAM, async on the JS target, ...) and there's no package to do it already. Most of the common things (like file system operations and such) are already covered

> Were you already proficient in Erlang and its ecosystem?

Not at all :) I knew very little about Erlang (basically nothing behind the syntax), Gleam was my introduction to the BEAM ecosystem and it has worked out great so far!

Hope this is helpful, happy to share my experience here

Re:Gleam Is Pragmatic on Monday October 07, 2024 @06:18AM (#41764515)
Yeah FP can for sure take some getting used to before it clicks! I think a great resource for that is Gleam's Exercism track (https://exercism.org/tracks/gleam), not only will it teach you the language but by starting with small-ish exercises it can definitely help grokking FP concepts

And if you feel like you're stuck and need help Gleam's Discord is a great place to ask questions :)

Re:Gleam Is Pragmatic on Monday October 07, 2024 @06:14AM (#41764496)
There's a great article by Erika on use, definitely recommended :) https://erikarow.land/notes/using-use-gleam
Re:Gleam Is Pragmatic on Monday October 07, 2024 @06:11AM (#41764483)
Pure Gleam will get you really far without having to touch any Erlang, I've done Gleam for almost a year now and there were very little cases where I needed to write Erlang code myself, usually there's already a library that deals with it for most common needs :)
Re:Roc Lang – Elm but for everywhere [video] on Tuesday August 20, 2024 @04:17PM (#41303626)
Heard squirrel is well cool :P
Re:Supercharged Labels – Gleam v1.4.0 on Friday August 02, 2024 @01:17PM (#41140690)
I love how every new release becomes my new favourite one, so many nice additions! And I wanted the label shorthand syntax for a long time
Re:What if best practices were the norm? on Tuesday February 27, 2024 @11:27AM (#39525978)
That's a great point! Yeah using `Option`, or the newly introduced records is a great help in sticking to the best practices, you're totally right! The problem lies in the fact that it's not the only way to write Java code, you might stick to it but you're not guaranteed that other libraries and projects will use the same practices; that's why I think it's crucial to make those the _only possible way_ to write code. Thanks for reading the article!! :)

Older »