How meditation imitates programming

Most of the programming languages have some way of implementing the observer/observable design pattern.

Now the basic premise of meditation is that every process is observable. what that means is that we have limited control over starting or stopping at will the processes in our mind ,but the design of the mind allows us to start the observer for a process; given that the process has already started; much more efficiently and flexibly.

So given that process p is running, start the process observer(p) as soon as you become aware/mindful of p, which you have evaluated to be a wasteful process.

So now we have two processes in the system competing for the computational resources of the brain:

{p,p’}

p’ = observer(p)

Further the observer(p) weakens p by actively polling p ,which is contradictory to most programming languages’ implementation of this design pattern which is based on push and not pull model. Now as the observer(p) eats up the cpu cycles of p by scheduling the polling ever more frequently , soon the process p weakens and is swapped out completely. This process is practiced and repeated opportunistically to fine tune it.

Another way to look at it is through the linux watch command.

Meditation allows one to practice starting watch(p) after learning that p has started of its own accord. Thus effectively reducing the power of p towards hogging the brain and starving other important processes.

Just my attempt at connecting the dots in a funny and curious way :). Happy reading.