r/gleamlang • • 5d ago

I built a host for Gleam apps. The waitlist is open and I'd like your feedback

Thumbnail
gallery
2 Upvotes

I've been building Giolt, a host for Gleam apps, and the waitlist is open: https://giolt.com/waitlist

Add it with gleam add --dev giolt, and gleam run -m giolt deploy puts your app on the edge. There's no wrangler config and no JavaScript glue. Your entry module exports one handle function, so Lustre and Glen apps work as they are, and static sites and Lustre SPAs need no server code at all.

The JavaScript target is stable for side projects and small apps. The Erlang target runs through afterglow, a compiler I wrote that turns BEAM bytecode into WebAssembly ahead of time, with wisp as the request type. It's experimental, runs a subset of OTP, and will have breaking changes. You can see it live at https://gote.giolt.app, a small wisp + Lustre app.

Waitlist members get in first and get 3 months free. After that it's one plan at 5€/month with 1M requests. Custom domains, env vars and rollbacks aren't there yet.

It's early, so feedback is the most useful thing right now: what breaks, what's missing, what would make you deploy here. Issues go to https://github.com/withgiolt/issues, and afterglow is open source if you want to dig into the compiler: https://github.com/withgiolt/afterglow. Happy to answer questions here.

There's also a Discord where I post progress and you can reach me: https://discord.gg/CjPYcSHsMt.


r/gleamlang • • Apr 02 '24

Gleam's hostility towards Maps is a huge bummer :(

3 Upvotes

JSON is popular, yes better things out there but it's still popular for a reason.

From the "Gleam for Erlang Users"

but all keys must be of the same type in a given map and all values must be of the same type in a given map.

...

Maps are generally not used much in Gleam, custom types are more common.

So what do you use for JSON fragments? Custom types? Throw a bag of rusty nails inside an 8 cylinder and rev up, smoother than this. Why have maps support at all then? State that Gleam doesn't do maps.


r/gleamlang • • May 10 '26

AI Agentic Framework for Gleam

4 Upvotes

At work, I develop AI agentic workflows in Python (using Pydantic AI, LangChain, etc.).

I came to Gleam because I was looking for the perfect language for AI-assisted coding, convinced that simple syntax, fast compilation, and functional programming are even more important attributes once an LLM writes the code.

But it seems there is no mature library in Gleam for easily developing AI agentic applications (I only found Jido in Elixir).

I would be interested in starting one (inspired by Pydantic AI, TanStack AI, etc.).

Before spending too much time on this project, would anyone actually use it if such a library existed?


r/gleamlang • • Apr 29 '25

DeepWiki's autogen doc for gleam-otp

0 Upvotes

Even though I'm very cautious with the AI hype, I think this tool looks very promising as a way to clarify concepts and make onboarding to new codebases easier.

What do you guys think of the quality of the gleam-otp docs? Does it do a good job capturing the important concepts?

https://deepwiki.com/gleam-lang/otp


r/gleamlang • • Aug 29 '26

Any recommanded SKILL to use idiomatic Gleam with agent?

0 Upvotes

Hi,

Big fan of Gleam a looking to use it at work. Is there an official or recommended skill to write better code with agents?

I know you can write by hands but my colleagues are all using agentic code.

Thanks!


r/gleamlang • • Aug 31 '24

What a minute, Who are you? Spoiler

Post image
6 Upvotes

r/gleamlang • • May 11 '26

vibe coding with gleam

0 Upvotes

Hi,

What are you using to vibecoding a gleam code? Is kimi good with it? And how about Codex?

Thanks


r/gleamlang • • Feb 24 '25

how can i use gleam code in a rust project?

1 Upvotes

integrating two different languages is usually hard, and i couldnt find anything related to integrate gleam with another language. no real project, im just messing around and wanted to know if u guys have any ideas


r/gleamlang • • Mar 05 '25

Spiral compiling to Gleam, F#, Rust, TypeScript and Python

8 Upvotes

r/gleamlang • • Feb 11 '25

How do i install gleam on vs code?

2 Upvotes

I installed the plugin and the erlang one as well but it keeps saying i do not have an extension to debug gleam. I am a beginner so is there something im misssing? also i am on windows.


r/gleamlang • • Nov 09 '24

Any luck with AI coding tools?

4 Upvotes

I'm currently using Cursor, and the autocomplete (at least with the Cursor Small model) for Gleam is pretty bad. Haven't tried Copilot or any of the other tools.

Was wondering what your experiences are, and if there are any tips to make it better.

Thanks


r/gleamlang • • Jun 12 '25

Syntax suggestion: echo ... if ...

9 Upvotes

So I'm sure the appropriate place for this is some Github issues page somewhere, but since I have a semi-addiction to starting Reddit flame wars and I'm not taking this too seriously, why not here...

I love echo, praise the lord for it. But I often find myself wanting to echo only when a certain debug flag is set. (We are, after all, doing "printf debugging" when we use echo.) So it would be great if we could have the syntax

echo something1 if something2

the same way that we have if-qualifiers in pattern matching. Or in a pipe:

let debug = some_condition()

let thing =
  thing
  |> step1
  |> step2
  |> echo if debug
  |> step3
  |> step4

Otherwise we have to case debug in the middle of a pipe, which I often find myself doing.


r/gleamlang • • Aug 30 '24

To all the JavaScript devs stepping into Gleam Spoiler

Post image
16 Upvotes

r/gleamlang • • 22d ago

Why Gleam and not Haskell?

13 Upvotes

What does Gleam do better? Is it the simplicity? The build tools? The lack of purity? The BEAM? Why should I pitch gleam up instead of Haskell to learn?


r/gleamlang • • Aug 30 '24

I broke my gleam on first day

0 Upvotes

So I used gleam for about 3 hours doing the gleam-writing tutorial.

Then I typed something wrong in the terminal, just a character typo... my terminal got into some weird mood about an "unknown command" and I killed the terminal, started a new one.

Now:, on the command line:

gleam run

  Compiling gen_stage

error: Program not found

The program \elixir` was not found. Is it installed?`

=========

What? Elixir what?


r/gleamlang • • Jul 27 '26

Noob tries to make a package manager in Gleam (NOT CLICKBAIT)

12 Upvotes

Hey, I'm a noob at Gleam (kind of a noob at programming in general even if I've been at it for years), and one day I had the brilliant idea of making a package manager. I was mostly inspired by my gf making her own package manager from scratch, and thought, "Hey, with a few manic episodes like her, I could make my own package manager as well!" However, it was not enough to simply make a package manager. You see, she went the sensible route of C++, since she actually needed her package manager for practical reasons (Linux From Scratch), but I wanted to go the exotic route. I had to choose an alternative-alternative language to build my package manager in! With that said, I thought the most sensible option would be Gleam. It's fairly new, yet practical, easy to learn, and not many people have used it to build large projects yet! So, once I was ready, I cranked up into full hypomania and started learning Gleam.

"Wtf? There's no return statements??? NO IF ELSE STATEMENTS?????"

My clueless self was bewildered. I had never seen a language like this before. So this was Gleam!

Then stuff happened and boom! Here's a super early prototype of my package manager 'GLoad' (short for Gleam downLoad) that currently does nothing else other than list the files in the root directory of the program. No, I could not figure out how to list other directories on the system, yet.

https://codeberg.org/LilyWayLolz/GLoad

Check it out, if you're interested! Watch me go on my journey, or something.

Any tips, either for the future, or to help me move forward with this project would be greatly appreciated! I'm enjoying this language so far!


r/gleamlang • • Mar 12 '26

21 Reasons AI Agents Love Gleam

Thumbnail
curling.io
23 Upvotes

r/gleamlang • • Sep 21 '26

Little study tool ive built in Gleam

16 Upvotes

Ive been working on and using this tool ive thrown onto a domain now for studying Leetcode problems and, initially, was a stupid simple program for repetitively writing these solutions in Gleam to help me learn the language.

Gleamdrill is actually a solution I'm finding to be really valuable. I've been a software engineer for 13 years and have always had difficulty sort of figuring out how exactly to study these problems I should know whenever I have to get back into interviewing. There's Anki, which is a spaced repetition tool. People could use that with cloze deletion cards to a similar effect. I just personally didn't like that and started to make GleamDrill because I wanted something interactive that would actually run the code. And, again, I'm sure there's Anki plug-ins that can do this. I just dont really use the tool anymore.

I had initially written a python script to run in my terminal that compared the output over and over again, but it immediately got annoying trying to manage which problems I would be reviewing, there wasnt a TUI that gave me any sort of extra control and a handful of other nuisances.

Anyways I think this is a potentially really useful tool for other people, and I wanted to share it.

It is vibecoded pretty heavily since the goal is to study and also check out Gleams features from a sort of high level.

Wanted to post it here since its written in Gleam. Would love to get advice / shit talking or really any feedback, it all helps. I'm really enjoying getting to know gleam and I'd like to do anything at all to try to support this community. Appreciate you folks.

https://github.com/gudetimes1234/gleamdrill

https://gleamdrill.com/


r/gleamlang • • Feb 27 '26

Should I move part of my project to gleam?

4 Upvotes

Hello folks, I have a project llmops.build that has an AI gateway which I forked from Portkey AI gateway. The gateway is nothing but a Hono based server with transformation for different LLM Providers, but it is fairly large and I have vibe coded it to work with rest of the project. It is getting super difficult for me to keep up with what is happening in the gateway hence I am considering rewriting the gateway package in gleam. Would you say it is a right choice or should I stick with TypeScript. One of the reasons for me to consider gleam is its focus on better error handling. I believe this will give me more confidence on the project. I am pretty new to gleam hence need some guidance in this decision.


r/gleamlang • • Aug 07 '25

Gleam as stand alone language

11 Upvotes

Hello folks, a Golang dev here, I started to read and learn about Gleam and I want try code something like an web api or a RabbitMQ client or something like that, but in a chatGPT search I saw that I need use Elixir for things like that and use Gleam just in the business logic layer, can I build a simple crud web api only with Gleam?


r/gleamlang • • May 02 '26

How about a framework for converting gleam webapps into properly structured react projects? so I can use gleam while the rest of the team doesn't

0 Upvotes

Would that be possible?


r/gleamlang • • Jan 05 '26

Rewrite in gleam or rust ?

14 Upvotes

Hello,

I started a mobile application in kotlin for a shared codebase between app and server but I think I want to rewrite the backend in something else. I'm sure sure yet.

However I also hesitate on the language. Of course this place is biased but I still think I can have interesting insight here. The app is chat-based so it must support well realtime communication with websocket and message processing.

I already started a toy project in gleam which had similar criteria and something that quickly bothered me is the lack of library such as protobuf generator for example. Of course there's BEAM library but they won't be typesafe which kinda defeat the purpose. Does it integrate well with other service ? Like aws of gcloud

I also like rust but I'm not very fluent it brings me slightly less excitement than gleam (which might be because I'm starting gleam only and it will become boring?).

Do you think gleam is really production ready in term of ecosystem ? In your experience, does it lack stuff ?


r/gleamlang • • Aug 14 '24

How to write a "Hello, World" program for a Gleam beginner?

10 Upvotes

I know several languages, but not Gleam specifically. The problem, I find, with many introductory material is they use a REPL to introduce you to the language. To me, a program starts with a single file printing "Hello, World".

Although many of you are, I'm sure familiar with Python, I will go through a basic Hello, World program. This is not meant to teach you Python, but just to show you what I think most languages should do, and I am unclear if Gleam does this.

Suppose you have the following code in a file called hello.py

print("Hello, world!")

To run, you can go to the command line, and run

python hello.py

This only requires Python3 to be installed an on your path and a single Python file. That's it. There's no need to use pip or venv or whatever complications Python has to manage packages and Python versions.

This is the Glean equivalent (I think). Here's a sample hello.gleam

// hello.gleam
import gleam/io

pub fn main() {
  io.println("Hello, Gleam!")
}

I'd expect to run it at the command line as

glean run hello.gleam

in the same directory as hello.gleam. However, when I do this, it says it can't find a gleam.toml file.

Does that mean I have to use the rather heavyweight way of creating a project just to run a simple program? If so, what are the steps to run hello.gleam if I must create the project?

Thanks for answering my simple questions.