Does the elixir have a garbage collector?

I started reading about the Elixir programming language.

I understand that:

  • Functionally
  • It is dynamic but supports @spec
  • It is based on Erlang VM

My question is: does it have a GC?

+8
elixir
source share
1 answer

Yes, Erlang has a GC, and since Elixir is built on Erlang, it also has a GC. Check out this old SO answer about Erlang GC and this . The Elixir site refers to the GC as follows:

Due to their light nature, it is not uncommon to have hundreds of thousands of processes running simultaneously on the same machine. Isolation allows you to process garbage independently of each other, reducing system-wide pauses and using all the resources of the machine as much as possible (vertical scaling).

+14
source share

All Articles