concept runtime in category elixir

This is an excerpt from Manning's book Elixir in Action.
This code is significantly smaller and therefore easier to read and maintain. Its intention is more clearly revealed, and it’s less burdened with noise. And yet, it’s as capable and flexible as the Erlang version. It behaves exactly the same at runtime and retains the complete semantics. There’s nothing you can do in the Erlang version that’s not possible in its Elixir counterpart.
Regardless of which method you choose, the effect is the same. The code is compiled, and the resulting module is loaded into the runtime and can be used from the shell session. Let’s try it:
iex(3)> path = [3, :title] iex(4)> put_in(todo_list, path, "Theater") #1 #1 Using a path constructed at runtime

This is an excerpt from Manning's book Elixir in Action.
This code is significantly smaller and therefore easier to read and maintain. Its intention is more clearly revealed, it’s less burdened with noise. And yet it’s as capable and flexible as the Erlang version. It behaves exactly the same at runtime and retains the complete semantics. There is nothing you can do in the Erlang version that’s not possible in its Elixir counterpart.
Regardless of which method you choose, the effect is the same. The code is compiled, and the resulting module is loaded into the runtime and can be used from the shell session. Let’s try it:
Regardless of how you start the runtime, an OS process for the BEAM instance is started, and everything runs inside that process. This is true even when you’re using the iex shell. If you need to find this OS process, you can look it up under the name beam.
Once the system is started, you run some code, typically by calling functions from modules. How does the runtime access the code? The VM keeps track of all modules loaded in memory. When you call a function from a module, BEAM first checks whether the module is loaded. If it is, then the code of the corresponding function is executed. Otherwise, the VM tries to find the compiled module file—the bytecode—on the disk and then load it and execute the function.
In the runtime, module names are aliases; and as we said, aliases are atoms. The first time you call the function of a module, BEAMtries to find the corresponding file on the disk. The VM looks for the file in the current folder and then in the code paths. When you start BEAM with Elixir tools (such as iex), some code paths are predefined for you. You can add additional code paths by providing the -pa switch:
$ iex -pa my/code/path -pa another/code/pathYou can check which code paths are used at runtime by calling the Erlang function :code.get_path.
If the module is loaded, the runtime doesn’t search for it on the disk. This can be used when starting the shell, to auto-load modules: