AndyL
Interesting discussion in the may office hours!
Questions about igniter:
- it sounds like igniter works with a tree of code-elements that perform generation. what do you call the bit of code that implements an ‘generator operation’? an agent? a performer? an action? (ansible calls them ‘modules’)
- is the sequencing and structure of the “igniter tree” defined within the ‘modules’ (functional composition), or by a playbook type of recipe comparable to how ansible does it?
- how is idempotency handled?
- could igniter emit data that describes the application structure (someone said something about a diff…)
- can someone post the URL of the igniter repo, to let outsiders study the pre-release code?
If it’s premature for questions like these, no problemo I’m happy to wait. Just thought I’d post these questions while they are fresh in my mind. ![]()
Trending in Discussions
The obligatory hello world thread!
Who are you and where are you from? :stuck_out_tongue:
New
Hey there,
It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
Hey folks,
I wanted to share with you a project I’ve been working on for a while: It’s an Open Source (AGPLv3) newsletter tool. Think Ma...
New
Hi everyone :waving_hand:
I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
Hi everyone,
I have 8 years of production experience with Erlang/OTP and I’m just starting to get to know Elixir. What would you learn f...
New
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New
Other Trending Topics
Hey there,
I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first.
...
New
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
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
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #elixirconf-us
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #elixirconf-eu
- #processes
- #security
- #api
- #forms
- #performance











Showing Posts 1 to 3- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
zachdaniel
So there are two levels of granularity that are relevant here. There is a “task”, which is an abstraction over a mix task with one minor change, which is that you only define an
igniter/2function, which takes an igniter (a small wrapper around aRewrite) and returns an igniter. This enables chaining. For example, here is a very early version ofmix igniter.install.ash.resourceThat level of granularity would be called a
task, and tasks can be composed withIgniter.compose_task/2. This means any task can be called viamixor composed, which is a very useful property.At a lower level of granularity, you have individual functions that will modify a
rewriteto make some code modification. We don’t currently have a name for these aside from “functions”, but you could perhaps call them “codemods”. Here is an example snippet frommix igniter.install.ashadd_dependency,import_depandconfigureare examples of the building blocks Igniter will provide.As you can see above, it is functional composition. A playbook/DSL version may come some day, but is not necessary to start.
When you run an igniter task, it displays a diff of all changes. Here is example output from running
mix igniter.install ashin a new package (ignore the bit about the local dependency. You have to use a local dependency to test/work on your igniterSince those are all new files, I need to figure out a way to hide the left side of those line numbers representing the original files, just haven’t done that yet
The codebase is not quite ready, but I will share it before too long.
zachdaniel
In the spirit of building in the open, the source code has been made public: GitHub - ash-project/igniter: A code generation and project patching framework. · GitHub There isn’t much to it yet, but more will come, and a
0.1release should happen in the next few weeks ideally.TwistingTwists
Waiting!