Elixir Reference And Pid Data Types — Tentamen Software Testing Blog

Image for post
Image for post
Elixir Reference

TL;DR

In the previous post, we introduced Elixir Closure. Today we present the last two Elixir Basic Types, Reference, And Pid. This post is part of the functional language series, and it is based on the remarkable book Elixir In Action by Sasa Juric.

Processes

Elixir is a programming language that runs on BEAM virtual machine. Erlang was the first programming language for BEAM, but the biggest issue with Erlang was that you created a lot of boilerplate (repeating) code. Elixir is functional programming with Ruby code readability using functions and modules, boilerplate generation is minimum. The core part of the BEAM is Processes, where Reference and Pid and basic Elixir data type are used in the context of Processes. You can not add two References or Pids.

Reference

It is almost a unique value that is handy in functions related to Processes.

Image for post
Image for post
Elixir Reference

Pid

Image for post
Image for post
Elixir Pid

Pid is an Elixir data type that describes a Process.

Remember

  • core BEAM feature are Processes

TL;DR

In the previous post, we introduced Elixir Closure. Today we present the last two Elixir Basic Types, Reference, And Pid. This post is part of the functional language series, and it is based on the remarkable book Elixir In Action by Sasa Juric.

Processes

Elixir is a programming language that runs on BEAM virtual machine. Erlang was the first programming language for BEAM, but the biggest issue with Erlang was that you created a lot of boilerplate (repeating) code. Elixir is functional programming with Ruby code readability using functions and modules, boilerplate generation is minimum. The core part of the BEAM is Processes, where Reference and Pid and basic Elixir data type are used in the context of Processes. You can not add two References or Pids.

Reference

It is almost a unique value that is handy in functions related to Processes.

Pid

Pid is an Elixir data type that describes a Process.

Remember

  • core BEAM feature are Processes

Originally published at https://blog.tentamen.eu on September 26, 2020.

Written by

Founder of Tentamen, software testing agency.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store