elixir fun with programming #1
Presentation for Fun with Programming series @ Freebird
- Functional language with a syntax similar to Ruby
- Dynamically typed
- Highly concurrent due to the process model - all code is executed in small, lightweight processes that are garbage collected independently. These do not share state other than through persisted data stores
- Runs on the Erlang BEAM VM, known for low-latency and reliability
- Hot code reloading
- Distributed - asynchronous message passing does not need to happen on the same machine, can be passed to any receiver on the same network (Actor model)
- Fault-tolerant - graceful error handling through supervisor model
- Factorial
- Topics:
- Pattern matching with recursion
- Topics:
- Exponentiation by Squaring
- Implemented by the math library
- Topics:
- Optional arguments with defaults
- Unused values
- Guard classes (
rem
,<
,>
)
- Math Abstract Syntax Tree
- Topics:
- Map Pattern Matching
- Enum library
cond
case
- Topics: