zlacker

[return to "I tried Gleam for Advent of Code"]
1. marlie+f5[view] [source] 2025-12-13 17:40:23
>>tymsca+(OP)
One thing im wondering with the LLM age we seem to be entering: is there value in picking up a language like this if theres not going to be a corpus of training data for an LLM to learn from? Id like to invest the time to learn Gleam, but I treat a language as a tool, or a means to an end. I feel like more and more I'm reaching for the tool to get the job done most easily, which are languages that LLMs seem to gel with.
◧◩
2. victor+E8[view] [source] 2025-12-13 18:05:56
>>marlie+f5
I feel that was more true 1-2 years ago. These days I find Claude Code write almost as good (or as bad depending on your perspective) Elixir code as JavaScript code and there must be less Elixir code in the training data.
◧◩◪
3. agos+2f[view] [source] 2025-12-13 18:53:42
>>victor+E8
in my daily experience Claude Code writes better Elixir code than JS (React). Surely this has to do with the quality of the training material
◧◩◪◨
4. pjm331+Kx[view] [source] 2025-12-13 21:09:46
>>agos+2f
Can’t confirm or deny comparison with JS but I can second that it write decent elixir

The only problem I’ve ever had was on maybe 3 total occasions it’s added a return statement, I assume because of the syntax similarity with ruby

◧◩◪◨⬒
5. aryono+6V[view] [source] 2025-12-14 00:09:41
>>pjm331+Kx
I’ve found Claude (at least until Opus 4) would routinely fail at writing a bash script. For example it would end an if block with }. Or get completely lost with environment variables and subshells.

But those are exactly the same mistakes most humans make when writing bash scripts, which makes them inherently flaky.

Ask it to write code in a language with types, a “logical” syntax where there are no tricky gotchas, with strict types, and a compiler which enforces those rules, and while LLMs struggle to begin with, they eventually produce code which is nearly clean and bug free. Works much better if there is an existing codebase where they can observe and learn from existing patterns.

On the other hand asking them to write JavaScript and Python, sure they fly, but they confidently implement code full of hidden bugs.

The whole “amount of training data” is completely overblown. I’ve seen code do well even with my own made up DSL. If the rules are logical and you explain the rules to it and show it existing patterns, the can mostly do alright. Conversely there is so much bad JavaScript and Python code in their training data that I struggle to get them to produce code in my style in these languages.

[go to top]