Skip to content

Instantly share code, notes, and snippets.

@michaelvobrien
Created November 14, 2016 15:30
Show Gist options
  • Save michaelvobrien/49658f2370d0a29d899ab6ba4a947335 to your computer and use it in GitHub Desktop.
Save michaelvobrien/49658f2370d0a29d899ab6ba4a947335 to your computer and use it in GitHub Desktop.

Elixir Overview

IEx and Signals

  • CTRL-C sends INT ("interrupt") signal. Opens BREAK menu.
  • CTRL-C CTRL-C same as abort (CTRL-C a ENTER).
  • CTRL-D sends EOT ("end of transmission") signal. Usually, exits a REPL or Shell, but not iex.
  • CTRL-Z sends TSTP ("terminal stop") signal. Puts process into the background.
  • CTRL-\ sends QUIT signal. (Note: does not dump core like other processes.)
  • System.halt
  • How to quit the Elixir shell (IEx)?
  • How do I quit the Erlang shell?

Kernel

Math

IO

:stdio---a shortcut for :standard_io, which maps to the current Process.group_leader/0 in Erlang
:stderr---a shortcut for the named process :standard_error provided in Erlang

Strings

Date/Time

The VM provides three time measurements:

  1. os_time/0---the time reported by the OS. This time may be adjusted forwards or backwards in time with no limitation;
  2. system_time/0---the VM view of the os_time/0. The system time and OS time may not match in case of time warps although the VM works towards aligning them. This time is not monotonic (i.e., it may decrease) as its behaviour is configured by the VM time warp mode;
  3. monotonic_time/0---a monotonically increasing time provided by the Erlang VM.

Time and Time Correction in Erlang

Net

Shell / Command Line

Security

Introspection

File Formats

Patterns / Data Structures

Other

Filesystem Watcher

Tools

3rd Party Docs

3rd Party Libraries

Frameworks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment