concept runtime in category haskell

appears as: runtime
Haskell in Depth

This is an excerpt from Manning's book Haskell in Depth.

In this chapter, we discuss an idea of an exception and exception handling mechanisms for getting around the problems mentioned above. We also cover logging as an essential tool for recording information on what is going wrong at runtime.

9.1  Mental model for Haskell memory usage at runtime

In this section, we look at GHC/Haskell memory usage: what’s going on in memory at runtime. We focus on the simple model and discuss the storage of data and code in memory. These details will help us to understand how Haskell code is executed at runtime. I call it simple model because the compiler may affect memory usage profoundly due to various optimizations.

Figure 9.2 presents the high-level closure model.

Figure 9.2. Closure as the main data structure for Haskell memory usage at runtime
closure
"efdtInteger1"
   [~1]
   forall x l.   enumDeltaToInteger x 1 l
   =
   build (\c n -> enumDeltaToInteger1FB c n x l)