Skip to content

self() process is the radio it receives info. station() processes are radio stations that always send info.

Notifications You must be signed in to change notification settings

md-vanilla/Elixir-Radio-via-Pid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elixir-Radio-via-Pid

The pid of a process is very important for parallelism in elixir. #Explore.

Sales Pitch

One of the big sellings about elixir the erlang virtual machine which uses very lightweight processes and dynamic process size allocation. However, the common programs that I write often are within the self() process.

My goal with this project is to move to multi-process by default when I program in elixir.

My goal with this project is to add more recieve commands in the self() process and have spawned processes that perform work in an async manner.

  1. Spinning new processes in Elixir is easy
  2. Realize your always on a process called self()
  3. There are processes that came before the self() process which I often do not care about.
  4. You can spawn new processes from the self process.
  5. You can spawn a process that spawns another process.

Rough plan for this project:

  1. mix task defines a bunch of recieve conditions to match communication for other processes
  2. spawn processes to do a bunch of work. maybe counting to 5 million.
  3. count so high the process fails and sends the last good state back to the self() process.

Max out some elixir data:

Max out some elixir data https://stackoverflow.com/questions/28093580/how-to-get-minimum-and-maximum-value-of-each-type-in-elixir

Collection of topics similar to this project:

https://youtu.be/WvYtaVW4ACo?t=2343

Current Project Structure:

self() process is the radio it receives info.

station() processes are radio stations that always send info.

Alternate Project Structure:

self() process is the god_process or power_grid process director_of_the_play_process developer_process:

  1. it turns the power on for the radio and it turns the power on for the radio stations.
  2. it tunes the radio to a specific station after the radio defaults to

station() processes are radio stations that always stream and send info to tuned radios.
radio() located inside a car can be tuned by a user or by a god_process.

About

self() process is the radio it receives info. station() processes are radio stations that always send info.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages