The pid of a process is very important for parallelism in elixir. #Explore.
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.
- Spinning new processes in Elixir is easy
- Realize your always on a process called self()
- There are processes that came before the self() process which I often do not care about.
- You can spawn new processes from the self process.
- You can spawn a process that spawns another process.
- mix task defines a bunch of recieve conditions to match communication for other processes
- spawn processes to do a bunch of work. maybe counting to 5 million.
- count so high the process fails and sends the last good state back to the self() process.
https://stackoverflow.com/questions/28093580/how-to-get-minimum-and-maximum-value-of-each-type-in-elixir
https://youtu.be/WvYtaVW4ACo?t=2343
self() process is the radio it receives info.
station() processes are radio stations that always send info.
self() process is the god_process or power_grid process director_of_the_play_process developer_process:
- it turns the power on for the radio and it turns the power on for the radio stations.
- 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.