Lost Art of Asking Questions - Go Concurrency Model
Khem Raj August 23, 2024 #metaSometimes, line of questioning a problem can get narrower and narrower and heavens forbid into a rat-hole therefore we must consider broader scope and alternatives to fuel out-of-box thinking
what if ? what else ? what may ?
Sometimes, this can lead to amazing outcomes. Golang's concurrency model is one of the best in programming world because its simple, scalable and resource eficient. This concurrency model is inspired by Tony Hoare's Communicating Sequential Processes (CSP), which emphasizes message passing for communication between processes rather than shared memory and locks
CSP concept was introduced in 1978 and book detailing it came out in 1985, Occam Language used it heavily during 90s, Golang's author's questioned traditional threading models and questioned its short-coming that they are too low level, programmers have to combine this with something like shared memory to build usable theading primitives, which means they have to pay attention to low level implementation, CSP offered the alternative approach.
Challenging the status-quo and sometimes revisiting the ancient with fresh outlook can result in wonderful results.