Latest #compiler Threads Top

Oliver
I have a macro that expands into a module definition. The use case is that we take a testcase defined in one elixir module (parent) and m...
New
MrYawe
Hey everyone! I just released recompile_buster, a Mix task that analyzes your project’s xref graph to surface the modules whose changes ...
New
ken-kost
Something I noticed; haven’t investigated deeply but I decided to query here: Previously, when I would do a change in a dep that I was t...
New
mszmurlo
Hi. I was wondering if the compiler makes any optimization for constructs like below. # Let’s define `my_func` def my_func(:ok, param) ...
New
sezaru
In my project, I have a compile-time code that can generate some warning depending on some circumstances. To show the warning I do IO.wa...
New
rvirding
I need to be able to get the Erlang AST which the Elixir compiler generates. So my question is: Is it possible to get the Elixir compile...
New
cblavier
Hi, I’m in the process of upgrading from Elixir 1.17.x to Elixir 1.19.x. I’ve noticed that running mix loadpaths now compiles the entire...
New
marcandre
Compilation time for our project degraded from ~26 seconds to ~32 seconds (~23% slower) :disappointed_face:. Did anyone else compare com...
New
mszmurlo
I’m working on a small library that, when use-ed in a client project, reads some external files and compiles those files into Elixir func...
New
hannesveit
Hi all, I’m trying to get up to speed with elixir and have just stumbled across a compiler warning that I find a bit puzzling. I was won...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

pejrich
I have quite a few files in my project that have many function heads(100s to 1000s). I don’t think these can easily be replaced with anot...
New
marcandre
Compilation time for our project degraded from ~26 seconds to ~32 seconds (~23% slower) :disappointed_face:. Did anyone else compare com...
New
joangavelan
So I’m building a couple of projects with Elixir/Ash/Phoenix/Inertia/React and I’m being EXTREMELY productive with this stack — I mean it...
New
MrYawe
Hey everyone! I just released recompile_buster, a Mix task that analyzes your project’s xref graph to surface the modules whose changes ...
New
cblavier
Hi, I’m in the process of upgrading from Elixir 1.17.x to Elixir 1.19.x. I’ve noticed that running mix loadpaths now compiles the entire...
New
rvirding
I need to be able to get the Erlang AST which the Elixir compiler generates. So my question is: Is it possible to get the Elixir compile...
New
mszmurlo
Hi. I was wondering if the compiler makes any optimization for constructs like below. # Let’s define `my_func` def my_func(:ok, param) ...
New
mszmurlo
I’m working on a small library that, when use-ed in a client project, reads some external files and compiles those files into Elixir func...
New
sezaru
In my project, I have a compile-time code that can generate some warning depending on some circumstances. To show the warning I do IO.wa...
New
hannesveit
Hi all, I’m trying to get up to speed with elixir and have just stumbled across a compiler warning that I find a bit puzzling. I was won...
New
Oliver
I have a macro that expands into a module definition. The use case is that we take a testcase defined in one elixir module (parent) and m...
New
ken-kost
Something I noticed; haven’t investigated deeply but I decided to query here: Previously, when I would do a change in a dep that I was t...
New

Last Three Year's Trending Top

alice
Hey guys, I just installed Elixir 1.10 on my Arch Linux and I am starting to learn this nice language. I am experiencing some problems ...
New
addrummond
Can Elixir code detect whether it is executing at compile time? I would like to write something like the following macro: defmacro foo()...
New
giddie
I came across this blog post (linked from Elixir Radar) about implementing a match operator that supports guard clauses. And it reminded ...
New
xpg
I generally enable warnings_as_errors in order to have the compiler fail hard in situations like invoking non-existing remote functions. ...
New
arjan
I am trying to hook into the @doc deprecated: "message" annotation using __on_definition__. defmodule ExampleCompiler do def __on_defi...
New
schnittchen
I’d like to get compiler warnings as errors in my tests, because in my experience, such warnings quite often uncover real bugs. What I’v...
New
hst337
The benchmark Mix.install [:benchee] defmodule X do def dot(map) do [ map.x + map.y, map.y + map.x, map.x + map...
New
herman
Hello :wave: I was working on upgrading one of our apps to 1.17 this morning and came across the compiler warning. pattern matching on ...
New
kerryb
Hi, In trying to upgrade from Elixir 1.14 to 1.15, I’m getting an error whenever I try to compile Elixir files under OEL7 (which I reali...
New
gmile
I am trying to understand why transitive compile-time dependency is there, and what’s a good strategy to remove it. The mix app for examp...
New
cashews
In this case, considering we don’t have any overlapping function names, is it worth it to use only as a means of asserting that we’re onl...
New
Asd
Elixir 1.17 changelog states: At the moment, Elixir developers will interact with set-theoretic types only through warnings found by th...
New
gmile
Hi! I’m continuing my battle (1, 2) against transitive compile-time dependencies on a large code base :slight_smile: This time I am faci...
New
dwark
The following code results in a warning that is difficult for me to understand: defmodule Mod do def hello(name) do map = Map.new(...
New
bartblast
I’m working on a bullet-proof live reload mechanism in Hologram, and I need a reliable way to be notified when any module in a Phoenix ap...
New

Trending Over Three Years Top

bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
sashaafm
Piggy backing a bit on @dvcrn topic BEAM optimization for functions with static return type?, I’ve been trying to understand in a deeper ...
New
tim2CF
Hello! Does anyone know why Elixir structures are implemented on top of Erlang maps, but not on top of Erlang records (tuples)? For me, ...
New
shahryarjb
In my controller, I improved and prevent dirty code in my project, for example, I was trying to put my params in variable like this: Ori...
New
samphilipd
Hey everyone! I’m working on optimising our build pipeline. I have a flow that looks like: – compile – dialyzer, test etc These are e...
New
jmitchell
TLDR: :compile_time_purge_level and dependency compilation are your friends. Moments ago I published my first Elixir package on hex! Wh...
New
wallyfoo
I was using asdf to install the latest Apple Silicon compiled versions of Erlang and Elixir to use on a Phoenix project that employs the ...
New
hst337
When calling Code.compile_quoted which recompiles existing module I constantly get this warning: warning: redefining module TheModule (c...
New
PJUllrich
In my mix.exs I used to be able to call other Modules in order to fetch some configurations for my application-env configuration. Somehow...
New
redfloyd
Greetings fellow alchemists ! I have started to write an open-source interpreter in Elixir (https://github.com/nicolasdilley/dwarf-inter...
New
cjk
Hi there, I am currently working on a Forum/community system in Elixir using Phoenix. First everything was nice, but slowly the compile ...
New
PhaserKell
Hi, I would like to make in the near future a programming language like https://vlang.io/ I think Elixir is an excellent candidate for t...
New
Fl4m3Ph03n1x
Background We are currently testing a module with 10 millions functions. This is an automatically generated module that we (pesky humans)...
New
schnittchen
Hi, I’m trying to track down why my testing experience is such a pain because there’s always many files being compiled… I’ve used the in...
New
sezaru
Elixir’s new version has a new compiler check specified here: link After upgrading Elixir, now I receive a lot of these compiler warning...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement