Latest #ast Threads 
Metastatic is a library that provides a unified MetaAST (Meta-level Abstract Syntax Tree) intermediate representation for parsing, transf...
New
I know I put the cart before the horse, but AI providers started this race, not me.
Welcome Typle, the library that leverages a modern E...
New
Giulia runs as a persistent OTP daemon — AST indexes, knowledge graph, and embeddings stay warm in ETS between sessions. No cold starts, ...
New
Meet my trip building LazyDoc from scratch, exploring Elixir ASTs and combine it with a simple AI prompt you can generate fairly accurate...
New
I have some AST rewriting code (using Sourceror) that has started failing in Elixir 1.18 – I believe because unquote has become stricter ...
New
I have this situation where I have a list of modules in a module attribute to be used for another purpose and I also want to “use” them, ...
New
Hi,
As the title states, I want to reject an AST with function calls. This seems to work, is there a better way?
@invalid_ast_ops [:....
New
I go through bouts of playing around with re-writing source-code using Sourceror. It generally goes: I learn a whole bunch, start gettin...
New
I am currently stuck in implementing a macro :thinking: Here’s the code I currently have (without unnecessary code):
defmacro request(op...
New
I have a number of different notifications, each identified by an id (example “ticket_closed”).
This ID can later be used to select the ...
New
This Week's Trending
This Month's Trending
This Year's Trending
Metastatic is a library that provides a unified MetaAST (Meta-level Abstract Syntax Tree) intermediate representation for parsing, transf...
New
Giulia runs as a persistent OTP daemon — AST indexes, knowledge graph, and embeddings stay warm in ETS between sessions. No cold starts, ...
New
I know I put the cart before the horse, but AI providers started this race, not me.
Welcome Typle, the library that leverages a modern E...
New
Last Three Year's Trending
This morning, I came to a sudden realization: Elixir’s Macro system is even more powerful than I’d thought.
My mind is blown.
Let me tr...
New
Hello all,
I need to convert AST with possible long binary to string.
Macro.to_string() uses Inspect and Inspect has the printable_limi...
New
Meet my trip building LazyDoc from scratch, exploring Elixir ASTs and combine it with a simple AI prompt you can generate fairly accurate...
New
I’m doing some questionable meta-programming, and could use your help!
I’m using Macro.prewalk to traverse some source code, with the go...
New
I have a number of different notifications, each identified by an id (example “ticket_closed”).
This ID can later be used to select the ...
New
I go through bouts of playing around with re-writing source-code using Sourceror. It generally goes: I learn a whole bunch, start gettin...
New
I have this situation where I have a list of modules in a module attribute to be used for another purpose and I also want to “use” them, ...
New
I’m trying to write a couple of mix format plugins for my project. So far I’ve been able to achieve most of what I want (e.g. rewriting f...
New
I am currently stuck in implementing a macro :thinking: Here’s the code I currently have (without unnecessary code):
defmacro request(op...
New
I want to work on a DSL that looks very similar to unit tests, define some steps but the steps are linked
step "step 1" do
IO.puts("...
New
Have some experience with Macro: Macro.prewalk helps me a lot with module converting.
Some of modules have sigil_F macros inside (surfac...
New
I have some AST rewriting code (using Sourceror) that has started failing in Elixir 1.18 – I believe because unquote has become stricter ...
New
Hi,
As the title states, I want to reject an AST with function calls. This seems to work, is there a better way?
@invalid_ast_ops [:....
New
Trending Over Three Years
Is it possible to decompile BEAM files with :debug_info chunk to actual Elixir source code? This data is from :debug_info
iex(2)> Sec...
New
Hi.
I am making a library for user submitted templates (so users can customize email content). I have a parser which parses the template...
New
Lately I’ve been digging into the elixir AST for learning purposes. There is a section in the elixir docs(Syntax reference — Elixir v1.19...
New
Hi, I want to modify elixir files based on the AST.
For the result I want to the elixir formatter.
For a prototype I tried the followin...
New
Suppose we’ve got the following module:
defmodule TestModule do
defmacro test_macro(param1, param2, param3) do
quote do
para...
New
Now that the next Elixir version will add Code.quoted_to_algebra/2 and Code.string_to_quoted_with_comments/2, we’re able to take some sou...
New
Hey!
I’m playing around with macro and I’m thinking - is it possible to completely expand quoted expression (including all private and p...
New
Dear Alchemists,
Assume I have an AST fragment with some unbound variables:
iex(1)> expr = quote do: IO.puts(x)
{{:., [], [{:__alias...
New
Summary
Is there any way to write a function which can be invoked in compile time and which can return an AST and Macro.Env of given func...
New
I am looking for a way to read in a elixir module and replace functions with code you want to run. Anyone know of any examples of code o...
New
It’s one of those “if you try it, you can figure it out” questions. I’m just hoping someone has already done this before and has some qui...
New
I found Code.string_to_quoted/2 returns quoted expression, but couldn’t find a way to rebuild it to code. Also, it has all location infor...
New
Hey, I would like to ask if there is a simple way to map/traverse Elixir project (*.ex and *.exs) files …
defmodule Example do
def get...
New
Sometimes an argument to a macro is to be used as the name of a function being created with def. That’s straightforward[*].
But suppose ...
New
Hi, I have been playing around with the Elixir AST (trying to help with an Issue in Credo) and I found two things that I would like to kn...
New
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







