This Week's Trending
This Month's Trending
This Year's Trending
Last Three Year's Trending
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
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
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
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
Hi,
I discovered by accident last week this:
Example:
quote do %{hello: "test"}.hello() end == quote do %{hello: "test"}.hello end
tru...
New
I’m trying to write a tool, a script in Elixir, that will read a file containing code written in Elixir, rewrite a part of it, then save ...
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:
Sub Categories:
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







