bentanweihao
Implementing Parallel Comprehension with Elixir Macro Goodness
I wrote a new post detailing how to implement parallel comprehension using macros. Would love any comments and improvements!
Most Liked
Qqwy
Ooh! This is a lot of fun!
Awesome idea! 
bentanweihao
Yes it was! And very mind-bending in a very good way.
OvermindDL1
Probably would be good to give the para an argument to specify the number of processes to run in, defaulting to the cpu count (*2?) or so? As it is it is going to create a lot of processes, and will probably cause a speed hit in almost every case as the do: body is generally very simple (like {a, b, c} in your example) and all the work happens in the iteration and filters?
Very nice article though, shows how macros work and how to use them. 
bentanweihao
Thanks! You are right, it would be good to have an upperbound on the number of processes. Another thing is that it doesn’t support :into. But that should be an easy fix. 







