dewetblomerus

dewetblomerus

It’s been almost two years since I built something with Ash, and LLMs have significantly changed my workflow since then. After trying it on a new side project this month, I have some new thoughts on Ash.

LLMs have made the task of generating working code much easier. This means that the human programmer spends a larger portion of their coding time reviewing code. I think the benefits of Ash shine brighter in this scenario. I wrote a longer form version of this here.

I’d be curious to hear other opinions on a thought experiment:

If LLMs got 5x better than they are today at quality, speed & cost. Assuming you can very quickly be presented with working code that at least achieves a reasonable interpretation of the initial prompt.

If in this new reality, your responsibilities as a software engineer is:

  1. Ensure that the resulting code does what the business needs.
  2. Ensure that it’s built in a way that when the stakeholders change their minds, the resulting changes will be made in a reasonable timeframe.
  3. Ensure that when other engineers or LLMs come to work on the project, they can copy the existing patterns without making you sad.
  4. Ensure that we can either handle the “ilities” (reliability, observability, usability, maintainability, operability, etc.) now, or can make reasonable changes (no re-writes) to handle them if we run into massive success & scale in the future.

In that utopian/dystopian future, would you rather be reviewing Ash code or something else?

In my opinion, Ash wins here because I would have so much less code to review and because different dimensions of the same functionality (auth, code interface, relationships, persistence) are all organized in a way that I can review one of those dimensions at a time without having to load all the others into my brain.

What would you choose?

Showing Posts 5 to 1

johns10davenport

johns10davenport

I’ve done significant large scale/long horizon development tasks. I’ve experimented with a lot of different techniques. The most effective thing I’ve found to do is refine and generate bdd specs that define what the application needs to do, design your phoenix context architecture and let the model write code in that structure till the tests pass. Llms are extremely effective at writing phoenix apps in this context.

dewetblomerus

dewetblomerus OP

I haven’t done any serious side-projects in a while. But something I did try on some small things here & there that turned out well, was to spend a lot of time vibe-coding markdown files with mermaid diagrams, descriptions of what the MVP should do, entity relationship diagrams for how the database schema should look. I only review the rendered markdown & diagrams, not the raw markdown that generate them.

This allows my 2026 attention span to still carefully comb through the details that matter, and the database schema which is easier to just plan up front and get right the first time than iterate on after valuable data is entered.

And when I have all that in the state that I want, I just tell the LLM to build it in vanilla Phoenix.

That’s the long way of saying I’ve tried a bit of the same @johns10davenport and I can confirm that at least for small side projects, the agents of 2026 do very very well at building Phoenix/LiveView code that they can also maintain over time.

johns10davenport

johns10davenport

I’m working on an elixir specific coding harness, and I’ve looked at this from a lot of different angles.

  • Magic: raw phoenix has less, ash has more, llms don’t like magic
  • Code: raw phoenix has more, ash has less. Llms like less, and humans too (to the op’s point)
  • Resources: there’s more raw phoenix than ash to train models on, but that seems to be changing rapidly
  • Derivation: you can derive loads of features from very little code in ash, which seems beneficial but I could also see it falling down

Thus far I’ve chosen to generate raw phoenix, but if I ever get space for a moon shot I’d love to harness ash generation

ken-kost

ken-kost

elixir is also niche but I believe it also saves tokens, as Jose made a blog post about on why that might be so. But abstracting the functional into declerative achives what you said - greater offload. this new nondeterministic tool couples well with any kind of deterministic tooling. I think in the coupling the real intelligence emerges, it’s relational.

And to your last point, with proper context (usage_rules) llm’s mistakes boil down to a minimum. For example I had an issue where it would write good ash code except for interfaces - it would write regular functions inside the domain. With two new lines in usage rules it started writing interfaces with no problem.

In any case, my emphesis is in the coupling; I think elixir (and ash) vibe well with ai. :cowboy_hat_face:

nxy7

nxy7

I’m digging out old thread here, but I’d say that LLM coding is big win for Ash. In my mind anything that decreases ‘code surface’ is big win for AI. There’s a lot of ways to mess up transactions/logic/authorization (any cross cutting concern really is a burden for AI), but with declarative approach it’s much better.
In my experience mistakes that AI makes with Ash are trivial (things don’t work) but once it plugs thing in correctly it usually works fine.
I guess what I’m trying to say it helps that with Ash you offload more work to the framework so AI code has less surface. Also perhaps maybe there’s tiny chance that declarative code burns less tokens (but this would very likely be offset by the fact that Ash is more niche so LLMs can make mistakes and run additional cycles).

— All posts loaded —

Where Next? Top

Trending in Discussions Top

budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
axelson
Hi there! :wave: @frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
achempion
I’ve been using Emacs as my main code editor for more than a two years. It’s a custom build version although I’ve tried doom emacs and sp...
New
budgie
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with. But I don’t use it anymore. Serverless was the promis...
New
jtormey
Lately I’ve been thinking about how to organize components as a LiveView application grows. One of the pain points I’ve found (for myself...
New
Null-logic-0
What IDE or editor are you using for Elixir development? Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews