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 1 to 5

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).

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:

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

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’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.

— All posts loaded —

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 91898 914
New
AstonJ
The obligatory hello world thread! Who are you and where are you from? :stuck_out_tongue:
4616 55835 594
New
byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project. My initial shotgu...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New
Herve37
We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using. We’re particularly inte...
New
matt-savvy
Is there a word for the ~> symbol used in Version strings? Do you also just call it a Squiggle Arrow™ ?!
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
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
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
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