News for hackers. Stuff that matters.
Re:Try Gleam by nchagnet on Monday November 09, 2026 @06:55AM (#50424367)
I wrote this to show my appreciation of this small-ish but beautiful language.
Re:Try Gleam by micbas on Monday November 09, 2026 @07:36AM (#50424750)
Naive question: why do we care about programming languages when we no longer read programming languages directly? Shouldn't we either design languages optimized for LLMs? (needs fewer tokens, easier for bots to process, easier to machine verify, not sure what else)
Re:Try Gleam by profunctor on Monday November 09, 2026 @07:41AM (#50424797)
We do still read code. Most people are not doing a fully unseen development strategy because we have needs around efficiency, security, compliance etc and we can’t simply blame it on our agents like we don’t control them like OpenAI do
Re:Try Gleam by pjmlp on Monday November 09, 2026 @07:48AM (#50424863)
That is like arguing everyone should master Assembly when using high level languages. :)
Re:Try Gleam by spider-mario on Monday November 09, 2026 @07:53AM (#50424927)
For one thing, who said “everyone”?
Re:Try Gleam by pjmlp on Monday November 09, 2026 @08:12AM (#50425138)
We do still read code. => We do still read Assembly code in the world of compilers.
Re:Try Gleam by Topfi on Monday November 09, 2026 @08:19AM (#50425209)
Deterministic vs None-Deterministic

Heck, OpenAI can't even get their models to reliably do what they intend, so yeah.

Re:Try Gleam by pjmlp on Monday November 09, 2026 @08:22AM (#50425241)
AOT without PGO, manual memory management, traditional optimisations vs AOT with PGO, JIT, tracing GC, machine learning optimisation passes.
Re:Try Gleam by Topfi on Monday November 09, 2026 @08:26AM (#50425300)
Which have what to do with the relationship between the assembly and the higher level language?
Re:Try Gleam by pjmlp on Monday November 09, 2026 @08:36AM (#50425412)
It is the answer to you Deterministic vs None-Deterministic.

If you don't get the difference, I get there isn't much that you know about how instruction selection works, across all those approaches.

Re:Try Gleam by Topfi on Monday November 09, 2026 @08:49AM (#50425560)
Ok, I feel you know what this is actually about, but here spelled out:

Do any of the optimizations you mentioned affect the underlying behavior of the run code? Does the source ever lead to a different observable behavior? If not, it doesn't fit to LLM use, where this is very much the case.

Re:Try Gleam by pjmlp on Monday November 09, 2026 @09:16AM (#50425969)
There is the observable behaviour, and the machine code instructions that actually get generated in every single case for the same kind of text input.

Which for example, unless you can exactly replicate the world every single time a PGO data gathering session is done, there are no guarantees that the compiler will generate exactly the same machine code pattern, when given various PGO files generated at different occurrences.

Re:Try Gleam by Topfi on Monday November 09, 2026 @09:23AM (#50426057)
Thanks, yes. To get back to the "We do still read Assembly code in the world of compilers" analogy, in the case of LLM usage, the observable behaviour is...
Re:Try Gleam by pjmlp on Monday November 09, 2026 @09:48AM (#50426400)
Re:Try Gleam by spider-mario on Monday November 09, 2026 @08:39AM (#50425445)
Not seeing it. “We do still read code” implies neither that every single person does, nor that they need to master the language being read. Taken together, it sems to me that you need a fair bit of extrapolation to make the analogy work.
Re:Try Gleam by wakamoleguy on Monday November 09, 2026 @07:56AM (#50424954)
Which tangentially brings up another analogy: many high level languages don’t compile directly to assembly but to an intermediate language first (LLVM). We don’t read the LLVM code ourselves.
Re:Try Gleam by rlander on Monday November 09, 2026 @09:08AM (#50425838)
But LLVM compilation is deterministic. LLM code gen isn’t.
Re:Try Gleam by pjmlp on Monday November 09, 2026 @09:13AM (#50425919)
Only when not used alongside PGO data or as a JIT, as its inputs are not deterministic in first place.
Re:Try Gleam by profunctor on Monday November 09, 2026 @08:34AM (#50425393)
No it isn’t. I think you read into my comment too much.
Re:Try Gleam by creata on Monday November 09, 2026 @04:30PM (#50432473)
I don't want to say what people should and shouldn't do, and a world in which all the world's professionals spend their days talking to sycophantic machines with only a loose commitment to the truth is really funny to me.

But, high level languages don't really lose precision in any way that matters (except when you need extreme performance, resistance to timing attacks, or niche stuff like that). Natural language on the other hand loses precision that's usually important, so I don't see how your comparison is valid.

Re:Try Gleam by WJW on Monday November 09, 2026 @07:46AM (#50424849)
Who's this "we" you speak about. There is a small subset of programmers who have become effectively become managers and ask their AI employees to do things. The rest of us still regularly read and write code.
Re:Try Gleam by jeremyjh on Monday November 09, 2026 @01:21PM (#50429376)
I’d love to see some numbers on this, but this is not my impression from the communities I participate in (such as the Elixir forum.). Amongst programmers who are employed, I suspect it is a majority at this point who use agents to write code. It is hopefully a small minority who never read code, but it’s certainly growing.
Re:Try Gleam by logophobia on Monday November 09, 2026 @07:48AM (#50424867)
I mean, even if you've stopped even reading code (good luck with that), the right abstraction should make things things easier for the LLM. A good rich type system to stop incorrect code, linters to catch common errors. A good set of battery-included system libraries. BEAM should provide a good abstraction for highly parallel and distributed systems, which means the LLM doesn't need to build all those abstractions itself. If you're building a distributed system, it should be like providing a set of good guardrails, guiding the LLM in building a correct system.

I've seen even the best models try to build & debug parallel and distributed systems. The results are always a bit uneven at best, even with a good harness and a lot of guidance.

The disadvantage of niche languages is that the LLM won't quite know the language as well due to less training data being available. But if you actually need to build something distributed, then this might be a good trade-off.

Re:Try Gleam by Gualdrapo on Monday November 09, 2026 @07:49AM (#50424878)
Re:Try Gleam by wakamoleguy on Monday November 09, 2026 @07:50AM (#50424890)
We might still read them, but let’s set that aside. Some languages may offer ways to eliminate entire classes of bugs. Gleam and Haskell-ish languages do that through very strong type systems and expressive high-level functional constructs. Rust similarly eliminates a ton of memory errors through its borrow checker. LLMs aren’t infallible, so this can result in better quality code (or if you believe every bug will still be caught…less code to do it).

Gleam also runs on BEAM, which has important runtime characteristics vs other languages. That will impact your system and how it scales even if you never look at the code.

Re:Try Gleam by Topfi on Monday November 09, 2026 @07:50AM (#50424891)
For what it's worth, I still parse code changes and feel uncomfortable if I struggle to understand code output without assistance.

On the "languages for LLMs front", isn't that a bit "cart-before-horse"? Doubt we are anywhere near the limit of what a model could do with a static verifiable language, even more so since stuff like TS has massive training data, any new language wouldn't benefit in such a way.

Add to that, I'd rather be able to understand the output, partly for aforementioned reasons, partly because we have seen with post Spud GPT reasoning traces what happens when being able to read model output becomes even slightly harder. Having model-focused languages would only exacerbate such issues.

Re:Try Gleam by nchagnet on Monday November 09, 2026 @07:51AM (#50424900)
Even in an AI intensive workflow, reading code remains a huge quality gate and I'd be wary of any software which hasn't been reviewed by humans.

Moreover, to me coding carefully is still a hobby, a pleasure, a craft. Gleam is exactly the kind of language that makes this such a pleasant activity.

Re:Try Gleam by benrutter on Monday November 09, 2026 @07:53AM (#50424930)
[delayed]
Re:Try Gleam by OtomotO on Monday November 09, 2026 @07:55AM (#50424945)
> why do we care about programming languages when we no longer read programming languages directly?

Because, we do?

You may not, which is fine. A lot of developers may not... that's fine. I guess you're all employed and don't risk your livelihood when things go wrong.

I do though. I take responsibility.

And just like with any junior developer I guide AI and I do review what it creates in the project that matter. (Personal tools I've entirely vibe-coded, never any client projects though)

Re:Try Gleam by adamddev1 on Monday November 09, 2026 @07:48AM (#50424865)
Gleam is really a delightful language with great ideas, but the lack of currying is a tragedy.

Missing currying feels a little to me like walking in FP land with one leg cut off.

Re:Try Gleam by kaoD on Monday November 09, 2026 @08:04AM (#50425036)
[delayed]
Re:Try Gleam by nchagnet on Monday November 09, 2026 @08:11AM (#50425123)
Yes Gleam allows you to do f(arg, _)

See the relevant docs: https://tour.gleam.run/everything/#functions-function-captur...

Re:Try Gleam by riffraff on Monday November 09, 2026 @03:36PM (#50431693)
But that's a single argument right?

Seems more limiting than the closure way. Scala allows multiple _ but in turn that doesn't allow changing ordering.

TBH, I feel this stuff is not really worth it,

Re:Try Gleam by yladiz on Monday November 09, 2026 @04:10PM (#50432201)
I think the single hole version is a good compromise compared to actual currying or multiple holes, since it's strictly better than something like first or last argument threading (e.g. ->, ->> in Clojure), easier to reason about than currying, and in my experience most of the time you'll only be dealing with one argument to pass piping anyway. Anonymous functions are fine for the cases you need more flexibility.
Re:Try Gleam by senderista on Monday November 09, 2026 @01:55PM (#50429889)
Are there any physicists out there who are reminded of abstract index notation for tensors?
Re:Try Gleam by stiiv on Monday November 09, 2026 @08:36AM (#50425410)
A deal breaker, and just when I was starting to get excited!

Plenty of practical reasons for currying, but the biggest (imo) is for use with the pipe operator.

If they don't have partial application now, what are the odds they'll have it in the future?

Re:Try Gleam by nchagnet on Monday November 09, 2026 @08:51AM (#50425579)
As I mentioned in my other comment, they do have partial application with _, and it works like a charm for piping! It's automatic currying which is absent.
Re:Try Gleam by senderista on Monday November 09, 2026 @01:56PM (#50429899)
And that's fine, because currying forces you into impossible tradeoffs when choosing argument order.
Re:Try Gleam by adamddev1 on Monday November 09, 2026 @03:50PM (#50431923)
But Haskell has nice little functions for switching argument order, and people can easily make them in other currying languages.
Re:Try Gleam by hmokiguess on Monday November 09, 2026 @07:50AM (#50424886)
To your point on "Gleam: the bad" and the ecosystem being small, I would add that this community has a history of activism behaviour. Some like that, I'm out.
Re:Try Gleam by nchagnet on Monday November 09, 2026 @07:52AM (#50424906)
I wasn't particularly aware of that to be honest. What kind?
Re:Try Gleam by hmokiguess on Monday November 09, 2026 @08:04AM (#50425039)
I saw a thread once from the language creator and community owner that left an impression on me https://news.ycombinator.com/item?id=46614727
Re:Try Gleam by jakelazaroff on Monday November 09, 2026 @08:10AM (#50425111)
Where is the "activism behavior"? All I see in the thread is other people whining because they disagree with the Gleam community's values.
Re:Try Gleam by nchagnet on Monday November 09, 2026 @08:17AM (#50425190)
Couldn't find it either, and my experience with the gleam community is that they're very welcoming and positive people.
Re:Try Gleam by MoOmer on Monday November 09, 2026 @08:22AM (#50425252)
Agreed. Treat people well seemed to be the Gleam desire.

The counterarguments from the other party (seemed like one person with multiple accounts to me) were about their disbelief in trans people and the idea behind the Black Lives Matter movement (coupling it with some organization that copied the name and stole some donations)

Re:Try Gleam by 15155 on Monday November 09, 2026 @08:23AM (#50425259)
I am on that thread as well. The issue with these "Codes of Conduct" isn't that they exist, it's that their purveyors force the "code" upon every participant regardless of forum.

If you don't support their special interests in completely unrelated venues, you are persona non grata and will either fall in line or be excommunicated.

Re:Try Gleam by jmcgough on Monday November 09, 2026 @08:32AM (#50425360)
I think you're seriously overreacting; you don't need to believe the same things that they do, all the CoC states is that if you want to engage with the community, you agree not to harass people. Every community has similar expectations; having it in a markdown just makes it more explicit.
Re:Try Gleam by 15155 on Monday November 09, 2026 @08:41AM (#50425472)
Sure, you don't need to "believe" the same things they do, but if you are vocal about your ideals on Twitter, for instance, you are unwelcome.

"Don't publicly disagree with my ideals or I will use my little fiefdom to destroy you."

Re:Try Gleam by jmcgough on Monday November 09, 2026 @10:04AM (#50426639)
You might be letting your personal experiences pollute things. The CoC never says that. It's anti-harassment language, and specifically enumerates what that might look like. Some contributors are members of the LGBT community, and I'm sure don't want to debate their personal identity when they're there to contribute to a project and write code.
Re:Try Gleam by jakelazaroff on Monday November 09, 2026 @02:03PM (#50430043)
[delayed]
Re:Try Gleam by nchagnet on Monday November 09, 2026 @08:16AM (#50425184)
Sounds to me like a lot of divisive American politics, as usual.

I have no problem with a community setting whatever acceptance criteria they like.

If the license did the same, I could see a case of being a bit of overzealousness.

I couldn't find if that was the issue, but if your problem is that the creator and the community have political opinions and don't like people with incompatible ones, then that's just society...

Re:Try Gleam by hmokiguess on Monday November 09, 2026 @08:32AM (#50425367)
> but if your problem is that the creator and the community have political opinions and don't like people with incompatible ones, then that's just society...

No, I am fine with incompatible views and I often seek them in order to grow. I do not enjoy echo chambers and I usually prefer and welcome disparate, including contrarian, opinions.

It's more like I don't want Ideology served with Programming Language, it feels like a distraction to me when I am in that mode. I usually consume Ideology under a different context, where I find it more productive and can contribute better to it.

Re:Try Gleam by nchagnet on Monday November 09, 2026 @08:40AM (#50425456)
I think you have a reasonable position here, so I understand where you come from.

I find this whole thread here interesting because until today I wasn't confronted by any of this, even though I joined the Discord and had a pleasant time (and will keep doing).

So I guess all I have to say on this is I don't think the "ideology" is that much served with the programming language. Yes I read that there's a code of conduct and that annoyed some people. But like I downloaded Gleam, I coded with it, I talked to people, and the thought police didn't knock on my door. So I guess what I mean is that it feels a little overblown.

Re:Try Gleam by 15155 on Monday November 09, 2026 @08:46AM (#50425538)
> I don't think the "ideology" is that much served with the programming language

Their ideology is literally on the front page of https://gleam.run/

Re:Try Gleam by AnimalMuppet on Monday November 09, 2026 @08:55AM (#50425648)
On the front page or not, I think nchagnet's point is that, in practice, he doesn't bump into it much.

Whether that's good enough for you or not is up to you.

Re:Try Gleam by omnimus on Monday November 09, 2026 @10:03AM (#50426614)
you mean this?

> "As a community, we want to be friendly too. People from around the world, of all backgrounds, genders, and experience levels are welcome and respected equally. See our community code of conduct for more. Black lives matter. Trans rights are human rights. No nazi bullsh*t. "

Re:Try Gleam by hmokiguess on Monday November 09, 2026 @08:57AM (#50425676)
Thanks for understanding it, and yes not everyone draws the line at the same boundaries.

Once in a while I try to push my boundaries, but then again I like to choose where I do this. For this one, I prefer not to do it in a work adjacent environment with strangers on the internet.

That aside, the language sounds fun hope you create cool things with it!

Re:Try Gleam by 15155 on Monday November 09, 2026 @08:34AM (#50425391)
> creator and the community have political opinions and don't like people with incompatible ones, then that's just society

Why are my political views relevant? Nobody is popping into the Gleam issue tracker and mentioning politics, nobody is violating the "code of conduct" there. The "code of conduct" exists solely to exclude people who disagree with their special interests in other irrelevant spaces. This is the "paradox of tolerance" in codified form.

Re:Try Gleam by nchagnet on Monday November 09, 2026 @08:58AM (#50425703)
I mean it's only relevant if you bring it with you in their community. You don't sign your soul away when you download the compiler. Do you have the same issue with all the ToS asking you to not be a nazi and whatnot on a given platform?
Re:Try Gleam by adamtulinius on Monday November 09, 2026 @08:24AM (#50425269)
Maybe you could be specific, instead of just spreading FUD? I read through the discussion you linked, and I have no idea what you’re talking about, so to me your comment comes of as just FUD.
Re:Try Gleam by jmcgough on Monday November 09, 2026 @08:27AM (#50425304)
Wait, people are upset because they have a code of conduct?
Re:Try Gleam by 15155 on Monday November 09, 2026 @08:29AM (#50425332)
People are upset because their "code of conduct" extends beyond the purview of the project.

You may not participate if you hold and espouse ideals contrary to theirs in unrelated spaces.

Re:Try Gleam by jmcgough on Monday November 09, 2026 @08:45AM (#50425527)
Read the CoC again: https://github.com/gleam-lang/gleam/blob/main/CODE_OF_CONDUC...

It doesn't police peoples' personal beliefs outside the community. It only says that while participating in the community you agree not to harass people and try to contribute in a positive way.

I wonder if you have past experiences that are coloring your interpretation of this, because I'm really unsure where you're getting any of this from.

Re:Try Gleam by surgical_fire on Monday November 09, 2026 @09:09AM (#50425858)
Eh, the controbutor covenant thing does have a tendency to attract people that are really into culture war and internet drama.

That said, their CoC does not block anyone from merely using the language.

Re:Try Gleam by jmcgough on Monday November 09, 2026 @10:00AM (#50426573)
People working on an open-source language aren't 19-year-olds on twitter, you're using the wrong heuristic here. They're there mostly to talk programming and work on a project together. The CoC is pretty standard language that you'd find at most conferences you attend. It specifically enumerates bigoted actions because several contributors are members of the LGBT community. The last thing many of them want is to deal with culture war nonsense seeping into their fun hobby.
Re:Try Gleam by surgical_fire on Monday November 09, 2026 @10:14AM (#50426768)
> The last thing many of them want is to deal with culture war nonsense seeping into their fun hobby.

This is bullshit.

Typically we are talking about the same category of people that become Reddit mods. Those are full blown adults where internet drama and culture war nonsense is their actual hobby. The open source thing beneath it is the side project.

It's the reason why I avoid getting involved with open source communities like billionaires avoid taxes.

That said, my original point is not to avoid Gleam as a language. The language itself looks pretty interesting. You don't need to stare at the CoC to use the language.

Re:Try Gleam by 15155 on Monday November 09, 2026 @10:40AM (#50427098)
> People working on an open-source language aren't 19-year-olds on twitter

You don't say? https://x.com/louispilfold

> "the maintainer is a legitimate communist. i will not be supporting this language"

What type of individual attaches their identity to this type of quote? Cringe.

Re:Try Gleam by ModernMech on Monday November 09, 2026 @04:03PM (#50432101)
I mean, sure he's on Twitter but he's in his 30s...
Re:Try Gleam by omnimus on Monday November 09, 2026 @10:01AM (#50426583)
I am honestly a bit confused because this whole comment chain looks like someone is starting culture war and drama? But you mean that the people who use gleam tend to be into culture wars, not the OP poster in the chain?
Re:Try Gleam by surgical_fire on Monday November 09, 2026 @10:15AM (#50426786)
> But you mean that the people who use gleam tend to be into culture wars, not the OP poster in the chain?

Er... No?

I think I was clear that you can use the language without getting involved with the drama related to the community behind the codebase.

Re:Try Gleam by i80and on Monday November 09, 2026 @01:26PM (#50429448)
I'm gonna be honest, based on this thread it sounds more like it's repelling people that are really into culture wars and internet drama.
Re:Try Gleam by spiderice on Monday November 09, 2026 @03:46PM (#50431854)
Culture wars come up in every Gleam thread. How often do you see culture war comments in a Rust, Elixir, Javascript, Etc thread? Essentially never. The Gleam founder's bigotry is a distraction at best.
Re:Try Gleam by ModernMech on Monday November 09, 2026 @04:07PM (#50432158)
I dunno about the others, but the icon for the Rust discord is the Rust logo superimposed on the pride flag, so they are not subtle about their position on the topic, so it has been a topic of discussion in that community.
Re:Try Gleam by surgical_fire on Monday November 09, 2026 @04:12PM (#50432235)
Whatever confirms your priors.

What is interesting here is that most likely I am on the same side of the political aisle as the people there.

I still find that sort of talk insufferable. Gives me mid-2010s "woke" bullshit vibes (god the slang of my contemporaries is horrid).

Re:Try Gleam by ajjenkins on Monday November 09, 2026 @04:34PM (#50432532)
On the Gleam homepage under the Friendly heading it says “Black lives matter. Trans rights are human rights. No nazi bullsh*t.”

That’s probably what the OP meant by “activism”.

https://gleam.run/

Re:Try Gleam by OtomotO on Monday November 09, 2026 @07:53AM (#50424924)
> Some like that, I'm out.

And a third group couldn't care less either way.

I have a few decades on my back, I am a father, a husband, a nerd... I once was young too, believe it or not, and I had ideals and I fought for them.

If you don't participate in this, why does it bother you? Unless they are active around your doorstep, that is.

Re:Try Gleam by nchagnet on Monday November 09, 2026 @07:54AM (#50424938)
Couldn't agree more with this. Having ideals and principles isn't a bad thing, we all do.
Re:Try Gleam by hmokiguess on Monday November 09, 2026 @07:56AM (#50424960)
Fair point, I am with you on that. I guess just had a bad first impression on drama that I've seen as a spectator through the public channels that stuck.

That could be repaired, just don't care enough to spend time there again I guess.

Re:Try Gleam by bel8 on Monday November 09, 2026 @08:12AM (#50425127)
I for one am thankful for their warning. Saved me precious time.

Suggestions about cool projects are just as important as warnings about uncool projects.

Re:Try Gleam by OtomotO on Monday November 09, 2026 @09:19AM (#50426021)
Yes, it's just that I don't deem them uncool.

Same as art by Hitler... if I would like it, I would like it, doesn't matter that I think he was one of the worst human beings.

So: I just argued, that there is a third way to view it.

You may, of course, see it completely differently and deem this project "uncool" for whatever reasons you want!

Re:Try Gleam by latinodev on Monday November 09, 2026 @08:07AM (#50425069)
opensource is activism
Re:Try Gleam by voidUpdate on Monday November 09, 2026 @08:19AM (#50425208)
What kind of activism? Isn't activism just "doing something to try and make a larger change"?
Re:Try Gleam by 15155 on Monday November 09, 2026 @08:52AM (#50425600)
Does "larger [political] change" need to run sidecar to a programming language?
Re:Try Gleam by F3nd0 on Monday November 09, 2026 @08:23AM (#50425257)
I don’t have a problem with activism per se, but it does put me off how the official website tries to make the language and community look extremely friendly and cutesy, only to immediately break that facade. If that’s the look you’ve decided to go for, at least try and commit to it!
Re:Try Gleam by surgical_fire on Monday November 09, 2026 @09:08AM (#50425841)
You know you don't need to follow hold their CoC in any way to use the language right?

Do you only use languages that you can contribute to their codebase?

Re:Try Gleam by 15155 on Monday November 09, 2026 @09:16AM (#50425974)
"Contribute to their codebase" includes bug reports and seeking help with errata and other issues.

It might be problematic to use a language where needed help could be preceded by Twitter or HN background and allegiance check.

Re:Try Gleam by surgical_fire on Monday November 09, 2026 @10:20AM (#50426857)
> "Contribute to their codebase" includes bug reports and seeking help with errata and other issues.

That is exceedingly rare. The vast majority of times you will either find your answer online to work your way around issues.

> It might be problematic to use a language where needed help could be preceded by Twitter or HN background and allegiance check.

I would remind you that we have LLMs now. One of the greatest gifts of LLMs is not having to rely on talking to people online to figure out issues when using a language/framework/library.

Re:Try Gleam by F3nd0 on Monday November 09, 2026 @11:11AM (#50427506)
Both searching for answers online and consulting LLM’s depends on prior human works or interactions, and (from what I know) their feasibility scales with the language’s popularity. I should expect both approaches to work much more reliably for Perl or Python than they would for Gleam or Newlisp.
Re:Try Gleam by wannabe44 on Monday November 09, 2026 @01:49PM (#50429790)
Re:Try Gleam by barddoo on Monday November 09, 2026 @08:20AM (#50425219)
I've been keen to try it out for a while, I might do something with it in the near future.
Re:Try Gleam by subarctic on Monday November 09, 2026 @08:20AM (#50425221)
I have a web app i've been using regularly and develop regularly with gleam on the frontend and backend. I have written very little of the code by hand and use claude to implement everything, open PRs and stuff and it works well. I like that it's typesafe and you can share code between the frontend and backend so easily, and you don't have to get a bunch of config right like you do if you want an all-typescript application. If I was writing it by hand I think I would find there's an annoying amount of boilerplate, but since ai is writing the code for me it's not a big deal.

Overall, I recommend it.

Re:Try Gleam by mono442 on Monday November 09, 2026 @08:24AM (#50425283)
if the ai is writing everything wouldn't it be better to choose a more popular language?
Re:Try Gleam by lpil on Monday November 09, 2026 @09:35AM (#50426227)
Why's that?
Re:Try Gleam by tharmas on Monday November 09, 2026 @11:07AM (#50427452)
Lots and lots of production code to train AI models.
Re:Try Gleam by lpil on Monday November 09, 2026 @11:11AM (#50427502)
Programming models have been sophisticated enough for some time to not be restricted to specific languages. It's rather like the difference between a junior developer (who knows how to use a specific language) and a mid developer (who knows who to program generally).
Re:Try Gleam by jeremyjh on Monday November 09, 2026 @01:10PM (#50429214)
Thanks for creating Gleam!

Is there any research that supports what you are saying here? I agree it mostly works, but I’d expect more API hallucinations and test cycles at a minimum.

Re:Try Gleam by ch4s3 on Monday November 09, 2026 @01:08PM (#50429175)
I'm not sure how much that matters. I suspect and anecdotally hear/see that compiler errors and docs are as/more important.
Re:Try Gleam by giancarlostoro on Monday November 09, 2026 @01:11PM (#50429223)
That mindset is a bit dated when models can pull up docs for a few years now. You can even have it write itself a little guide for lesser known languages within its own agents file.
Re:Try Gleam by perrygeo on Monday November 09, 2026 @01:36PM (#50429595)
The entire gleam language tour fits comfortably in a modern LLM context window. You're one web search away from "training" it yourself.
Re:Try Gleam by benzible on Monday November 09, 2026 @01:23PM (#50429410)
Another BEAM-based language, Elixir, came in first in a recent agentic coding study: https://dashbit.co/blog/why-elixir-best-language-for-ai
Re:Try Gleam by sczi on Monday November 09, 2026 @02:47PM (#50430853)
In that Tencent study less common languages got easier problems. Which explains why racket also performed suspiciously well in it. The authors recognize the problem themselves. I like elixir, but it's imo embarrassing how often elixir people cite that study despite it not actually supporting what they claim.

A much more recent and imo more realistic comparison of different languages with ai, is openai's study reimplementing sqlite in different languages: https://openai.com/index/low-resource-programming-languages/

That showed about what we expect, that popular languages like python, javascript, java, C#, etc do best, while less popular languages like Common Lisp, Ocaml, Zig, etc do slightly worse. But the difference is small enough I'd still just choose whatever language and ecosystem I know best that is appropriate for a project.

Re:Try Gleam by yladiz on Monday November 09, 2026 @04:21PM (#50432359)
I would definitely be skeptical of a study that finds using an LLM/agent to write sqlite in JS being better than writing in Zig, but it strongly depends on what “better” or “worse” mean.
Re:Try Gleam by sczi on Monday November 09, 2026 @04:32PM (#50432499)
It means how much of the sqlite test suite it passed. They were just measuring correctness, not performance or memory consumption, where of course Zig should win.

But the aim of that experiment was measuring correctness of llm written code in different languages, so used sqlite as a benchmark considering it's fairly complex software with a comprehensive test suite. It is not suggesting that because a language scores better on that benchmark it'd be better suited to writing the next sqlite, due to obvious other factors like performance...

Re:Try Gleam by ModernMech on Monday November 09, 2026 @04:59PM (#50432856)
There’s just not enough information in the “study” to be helpful or informative though. It’s just a list of numbers with not enough methodology to reproduce them, so to me they’re no more meaningful than a press release.
Re:Try Gleam by ModernMech on Monday November 09, 2026 @02:46PM (#50430828)
Exactly the opposite -- in a lot of ways, mainstream languages represent a compromise that gives the worst of all worlds for the benefit of popularity. With AI, you can take advantage of unpopular esoteric languages that have measurable advantages over mainstream languages. Before, the choice for a mainstream language was too strong because of network effects. Now with AI those effects don't matter as much, so being mainstream isn't as much of an advantage.

The copious training data on mainstream languages doesn't really translate as a network effect, and therefore is kind of a red herring because the AI can use all that training on new languages as well. e.g. if you use a esoteric language that is vaguely object oriented, the AI will use its vast training on object oriented programs and apply it to your language instead of falling over because your language isn't Python and it doesn't have training data on it.

Moreover, the AI is trained on copious amounts of PL research, so it's not like the ideas in a new language are completely new to it.

Re:Try Gleam by doomspork on Monday November 09, 2026 @08:35AM (#50425398)
What framework did you use for Gleam? I feel the last time I looked that was one of the big absent libraries.
Re:Try Gleam by whalesalad on Monday November 09, 2026 @02:09PM (#50430130)
this is what grinds my gears with gleam. afaik its not really possible to interact with elixir libraries? A project exists to try to make this 'easier' but the fact that it was not baked-in as first class is a huge smell to me https://github.com/gleam-lang/mix_gleam/

Perfect example: Clojure. Clojure is the textbook esoteric programmers dream... but it's SUPER easy to sell and integrate in a typical Java shop. Why? Clojure is Java. You can use everything on Maven. You can interop with any Java tooling. No hacks or BS required... it's a native compatibility. The fact that the Gleam did not opt for this level of congruence is mind boggling to me.

Re:Try Gleam by jjtheblunt on Monday November 09, 2026 @04:32PM (#50432513)
Re:Try Gleam by hugeBirb on Monday November 09, 2026 @04:28PM (#50432443)
What's the fuckin point of any language ergonomic if you're not reading or writing it.
Re:Try Gleam by listedb on Monday November 09, 2026 @08:21AM (#50425229)
Hey! I know this!
Re:Try Gleam by stiiv on Monday November 09, 2026 @08:38AM (#50425439)
Apart from the language, what's the developer experience like, especially doing full-stack?

F# showed a lot of promise with Fable, but the community never quite got the tooling right, I think for a lack of energy/funding.

Re:Try Gleam by nchagnet on Monday November 09, 2026 @08:54AM (#50425636)
I found the tooling to be quite comprehensive, the LSP is high-quality for a small project.

There are a few rough patches too. For example, I have yet to find out how to run a single test and not the whole suite.

Re:Try Gleam by Kinrany on Monday November 09, 2026 @01:32PM (#50429536)
Tangent: the correct approach looks like filtering the suite down to a single test rather than running individual tests independently.
Re:Try Gleam by brightball on Monday November 09, 2026 @01:07PM (#50429169)
Had a great talk on Gleam at the Carolina Code Conference a couple of years ago by Dillon Mulroy, now with Cloudflare I believe.

https://carolina.codes/speakers/2024/dillon-mulroy

That site is also partially powered by Gleam on the backend.