Languages
Elixir
Installing Elixir on Ubuntu in TIDE
Elixir
Elixir is a dynamic, functional language designed for building scalable and maintainable applications. It leverages the Erlang VM (BEAM), known for running low-latency, distributed, and fault-tolerant systems.
Installation
To install Elixir and Erlang on TIDE's Ubuntu terminal:
apt update
apt install -y elixirVerification
Check the installed versions of Elixir and Erlang:
elixir --versionRunning the REPL
Start the Interactive Elixir shell (IEx):
iexIn the shell, you can evaluate Elixir code:
IO.puts("Hello from IEx!")To exit IEx, press Ctrl+C twice.
Hello World Example
Create an Elixir script file named hello.exs:
echo 'IO.puts("Hello, Elixir!")' > hello.exsRun the script using elixir:
elixir hello.exs