concept imperative programming in category nosql

appears as: Imperative programming
Making Sense of NoSQL

This is an excerpt from Manning's book Making Sense of NoSQL.

As you can see, imperative programming can’t process this in parallel because the state of the variables must be fully calculated before the next loop begins. Some functional programming languages such as XQuery keep each loop as a separate and fully independent thread. But in some situations, parallel execution isn’t desirable, so there are now proposals to add a sequential option to XQuery functions.

Figure 10.9. Imperative programming (left panel) and functional programming (right panel) use different rules when transforming data. To gain the benefits of referential transparency, output of a transform must be completely determined by the inputs to the transform. No other memory should be read or written during the transformation process. Instead of a pipe with holes on the left, you can visualize your transformation pipes as having solid steel sides that don’t transfer any information.