gzah
How to write parallel compositions of processes in Elixir?
How can parallel composition of process be encoded in Elixir ?
Marked As Solved
NobbZ
spawn will return the PID of the spawned process, send/2 sends the term it gets as second argument to the process identified by the first argument.
send/2 does not understand via-tuples though, only PIDs and atoms.
Also Liked
benwilson512
There is no true parallelism within a given BEAM scheduler yes. If you are on a multi-core processor running multiple schedulers (the default) then true parallelism does occur.
lucaong
One more reason to make sure we all understand the specific definition of the terms we use in the thread ![]()
Terms like “process”, “encoding”, “parallelism” all have different meanings in different context:
- OS process, vs Erlang process, vs. abstract unit of computation
- Parallelism as execution on multiple CPUs vs. SIMD
- Encoding as serialization vs. type encoding vs. writing in code
NobbZ
By “true parallelism” I mean what I have learned as “parallel computing” at university.
Same operations on different data at the same time. As on GPU or modern CPU using SIMD.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










