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
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...
New
The obligatory hello world thread!
Who are you and where are you from? :stuck_out_tongue:
New
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
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
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
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
Is there a word for the ~> symbol used in Version strings?
Do you also just call it a Squiggle Arrow™ ?!
New
Other Trending Topics
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
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
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Latest Ash Threads
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #ai
- #phoenix_html
- #elixirconf-us
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











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!