Intro to Erlang (L19) Flashcards
What is Erlang known for?
Erlang is the king / queen of concurrent languages.
Which concurrency framework is based directly upon the Erlang language?
Java’s Akka concurrency framework.
Like Clojure, Erlang is a direct mapping of the LISP language.
False.
Erlang runs on which virtual machine?
BEAM.
Name a language that run’s on Erlang’s virtual machine.
Elixir.
What’s the name of Erlang’s interactive command line?
Eshell.
What is the suffix of a compiled Erlang file?
.beam
What command is used to compile Erlang code?
erlc
What command is used to run compiled Erlang code?
erl
What is the suffix of a Erlang source file?
.erl
Are there type declarations in Erlang?
No - types are inferred from context.
What are Erlang’s simple types?
Integers, floating point values, strings.
What is the max size of Erlang’s integers?
Erlang’s integers are of arbitrary length.
Do Erlang strings use single or double quotes?
Double.
Is there a boolean type in Erlang?
No, but there are true/false constants that are returned by conditional checks.
Erlang uses prefix notation for its operations.
False.
Erlang variables can only be reassigned once.
False, they can only be assigned once - attempts to reassign generate errors.
Erlang variables must begin with what?
A capital letter.
When are commas used in Erlang?
Commas are used between function arguments and between expressions in a function body.
When are semi colons used in Erlang?
Semi-colons are used between alternate forms of a function.