Mika Bohinen / NixCon 2026

Trampolining Nix

Trampolining Nix

How I nearly lost my mind fighting the evaluator

Mika Bohinen - NixCon 2026

Charlie Kelly tries to explain a wall of papers connected by red string.Kleisli

How far can we take Nix as a programming language?

I wanted to build effects, a type system and an evaluator in Nix.

nix-effects / README.md

The program asks for state; the handler supplies it.

An effect is a request whose meaning is supplied by a handler
Code
get
An operation and the handler that answers it
Program asksgetrequest the state
Handler replies21the current state

bind passes that reply to the rest of the program.

A continuation: the function to run after get replies
Code
s: put (s * 2)
The continuation turns the reply into the next request
get repliess = 21
continuation
Next requestput (s * 2)
Handler storesstate = 42

The program changes the state, then returns the original value.

Read state, store twice the value, return the original
Code
bind get (s:
  bind (put (s * 2)) (_:
    pure s))
Follow the requests and replies
get repliess = 21
put storesstate = 42
pure s returns21the original value

The state ends at 42; the program returns 21.

nix-effects / README.md

This call waits for the next call to return.

step returns either a final value or the next state
Code
run = state:
  let next = step state;
  in
    if next.done
    then next.value
    else run next.state;
run s0 is waiting for run s1
run s0 is waiting for run s1run s0 calls run s1 and waits for its answer. Both calls remain open. Calls to step are omitted; each has already returned before the next run begins.1234stack limitrun s1run s0callerexecution orderopen callsrun s0 is waiting for run s1run s0 calls run s1 and waits for its answer. Both calls remain open. Calls to step are omitted; each has already returned before the next run begins.1234stack limitrun s1run s0callerexecution orderopen calls

Each call to step returns before run calls itself.

Each step leaves another call waiting.

step returns either a final value or the next state
Code
run = state:
  let next = step state;
  in
    if next.done
    then next.value
    else run next.state;
run s0 and run s1 are both waiting
run s0 and run s1 are both waitingrun s1 calls run s2. The two earlier calls remain open, waiting for the final answer. Each transition adds another waiting caller.1234stack limitrun s2run s1run s0callerexecution orderopen callsrun s0 and run s1 are both waitingrun s1 calls run s2. The two earlier calls remain open, waiting for the final answer. Each transition adds another waiting caller.1234stack limitrun s2run s1run s0callerexecution orderopen calls

The earlier calls cannot return until they have the answer.

The answer returns through every waiting call.

step returns either a final value or the next state
Code
run = state:
  let next = step state;
  in
    if next.done
    then next.value
    else run next.state;
Each caller passes back the same value
Each caller passes back the same valuerun s2 returns value to run s1, which returns the same value to run s0. Each return closes one call. No caller performs further work on the answer.1234stack limitrun s2valuerun s1valuerun s0valuecallerexecution orderopen callsEach caller passes back the same valuerun s2 returns value to run s1, which returns the same value to run s0. Each return closes one call. No caller performs further work on the answer.1234stack limitrun s2valuerun s1valuerun s0valuecallerexecution orderopen calls

The final value travels back through the waiting calls.

Even a tail-recursive driver consumes stack in Nix.

step returns either a final value or the next state
Code
run = state:
  let next = step state;
  in
    if next.done
    then next.value
    else run next.state;
Each caller passes back the same value
Each caller passes back the same valuerun s2 returns value to run s1, which returns the same value to run s0. Each return closes one call. No caller performs further work on the answer.1234stack limitrun s2valuerun s1valuerun s0valuecallerexecution orderopen callsEach caller passes back the same valuerun s2 returns value to run s1, which returns the same value to run s0. Each return closes one call. No caller performs further work on the answer.1234stack limitrun s2valuerun s1valuerun s0valuecallerexecution orderopen calls

Tail-call elimination could discard these waiting callers. Nix keeps them.

Let the step return before taking another.

Every step gives control back to the driver
Every step gives control back to the driverThree calls to step each return to the driver before the next begins, so depth never exceeds one. The first two replies say what to do next; the last reply is the result.1234stack limitstepnextstepnextstep3driverexecution orderopen step callsEvery step gives control back to the driverThree calls to step each return to the driver before the next begins, so depth never exceeds one. The first two replies say what to do next; the last reply is the result.1234stack limitstepnextstepnextstep3driverexecution orderopen step calls

The driver has called the first step. It is the only call above the driver.

That call returns before the next one begins.

Every step gives control back to the driver
Every step gives control back to the driverThree calls to step each return to the driver before the next begins, so depth never exceeds one. The first two replies say what to do next; the last reply is the result.1234stack limitstepnextstepnextstep3driverexecution orderopen step callsEvery step gives control back to the driverThree calls to step each return to the driver before the next begins, so depth never exceeds one. The first two replies say what to do next; the last reply is the result.1234stack limitstepnextstepnextstep3driverexecution orderopen step calls

The first step has returned its reply. Its call is gone before the next one starts.

More steps. The same nesting depth.

Every step gives control back to the driver
Every step gives control back to the driverThree calls to step each return to the driver before the next begins, so depth never exceeds one. The first two replies say what to do next; the last reply is the result.1234stack limitstepnextstepnextstep3driverexecution orderopen step callsEvery step gives control back to the driverThree calls to step each return to the driver before the next begins, so depth never exceeds one. The first two replies say what to do next; the last reply is the result.1234stack limitstepnextstepnextstep3driverexecution orderopen step calls

Each step returns before the next call; the depth stays at one.

A fold passes the running total to this function.

One addition per input
Code
total: _: total + 1
Accumulatortotal = 0the initial value
total + 1
Next accumulator1
becomes total in the next call

Can a builtin fold run this counter?

ticks is a list of 100000 inputs
Code
builtins.foldl'
  (total: _: total + 1)
  0
  ticks
scalarFold?
Explore code

A dependency closure collects every reachable package.

Each package has a unique id and a dependencies list
Code
builtins.genericClosure {
  startSet = [{ key = app.id; package = app; }];
  operator = item:
    map (package: {
      key = package.id;
      inherit package;
    }) item.package.dependencies;
}
operator runs once for each new key
operator runs once for each new keygenericClosure starts with app. operator returns lib-a and lib-b; each library returns lib-c. The first copy of lib-c is visited. The second is skipped when it leaves the queue because its key has already been seen. lib-c returns an empty list. The result lists app, lib-a, lib-b and lib-c in the order they were visited.key seenapplib-alib-blib-c[ ]resultapplib-alib-blib-coperator runs once for each new keygenericClosure starts with app. operator returns lib-a and lib-b; each library returns lib-c. The first copy of lib-c is visited. The second is skipped when it leaves the queue because its key has already been seen. lib-c returns an empty list. The result lists app, lib-a, lib-b and lib-c in the order they were visited.key seenapplib-alib-blib-c[ ]resultapplib-alib-blib-c

Each box is one call to operator; its arrows are the dependencies it returns.

One successor continues execution; no successors means done.

genericClosure owns the loop; operator chooses the next state
genericClosure owns the loop; operator chooses the next stateStarting from key 0, operator returns one successor with key 1, then one with key 2. At key 2 it returns an empty list, so the traversal stops. The result lists all three visited states, not just the last.012[ ]result012genericClosure owns the loop; operator chooses the next stateStarting from key 0, operator returns one successor with key 1, then one with key 2. At key 2 it returns an empty list, so the traversal stops. The result lists all three visited states, not just the last.012[ ]result012

Illustrative traversal; each key is expanded once, in visit order.

Start with one record: an identity and a running total.

genericClosure input; total stands in for interpreter state
Code
startSet = [{ key = 0; total = 0; }];
One state, two jobs
key = 0

Identity used by the worklist

total = 0

Payload used by our counter

Build the successor from the current record, item.

Code
{
  key = item.key + 1;
  total = item.total + 1;
}
The first call to operator
Current itemkey = 0total = 0the seed
operator
Successorkey = item.key + 1total = item.total + 1fields can remain unevaluated

Return no successors when the key reaches the limit.

Operator excerpt; the else branch returns the successor in a list
Code
operator = item:
  if item.key >= n then [] else
The operator returns a list
Conditionoperator returnsEffect
item.key < n[ successor ]one more state
item.key >= n[]this branch stops

n = 100000. The seed has key 0; the last visited record has key n.

naive names the returned list, including the initial state.

Code
naive = builtins.genericClosure {
  inherit startSet operator;
};

Surely the hard part is over.

A toddler clenches his fist with a triumphant expression.
Found a while loop in Nix.

Did visiting every state compute the answer?

How many states were visited?
builtins.length naive?
Explore code
What is the final total?
(last naive).total?
Explore code

Then I asked for the total.

KC Green's dog calmly sits in a burning room.

The key and the total have separate demand paths.

The successor record returned by the operator
Code
{
  key = item.key + 1;
  total = item.total + 1;
}

Empty source

    Keys move forward; each total refers back
    keytotal
    00
    1total[0] + 1
    2total[1] + 1
    • computed number
    • deferred expression
    • evaluated record
    Three states shown; total[k] is the total of the state with key k.
    Visiting evaluates each record and its key
    keytotal
    00
    1total[0] + 1
    2total[1] + 1
    • computed number
    • deferred expression
    • evaluated record
    Three states shown; total[k] is the total of the state with key k.
    Reading the final total climbs through every deferred addition
    Reading the final total climbs through every deferred additionBuilding the states returns after each step without evaluating any total. Reading the final total forces the previous total, which forces the one before it. Each forced addition waits inside the previous one until the evaluator reaches its stack limit.1234stack limittotal[n−2]total[n−1]total[n]⋯stack overflowevaluatorvisit statesread totalforcing depthReading the final total climbs through every deferred additionBuilding the states returns after each step without evaluating any total. Reading the final total forces the previous total, which forces the one before it. Each forced addition waits inside the previous one until the evaluator reaches its stack limit.1234stack limittotal[n−2]total[n−1]total[n]⋯stack overflowevaluatorvisit statesread totalforcing depth

    Demanding the final total enters n deferred additions; at n = 100000, the recorded run overflows.

    seq next evaluates the record, not its total
    keytotal
    00
    1total[0] + 1
    2total[1] + 1
    • computed number
    • deferred expression
    • evaluated record
    Three states shown; total[k] is the total of the state with key k.
    First transition: compute 1, then expose key 1
    keytotal
    00
    11
    next?
    • computed number
    • deferred expression
    • evaluated record
    Three states shown; total[k] is the total of the state with key k.
    Each transition carries a computed number
    keytotal
    00
    11
    22
    • computed number
    • deferred expression
    • evaluated record
    Three states shown; total[k] is the total of the state with key k.
    Each step computes its total before the next begins
    Each step computes its total before the next beginsThe first peak labels the two nested evaluations: the step waits while seq forces one addition. Both finish before the next step begins. Reading the final total then uses an already computed number.1234stack limitforce additionstepread computed total100000⋯evaluatorvisit statesread totalforcing depthEach step computes its total before the next beginsThe first peak labels the two nested evaluations: the step waits while seq forces one addition. Both finish before the next step begins. Reading the final total then uses an already computed number.1234stack limitforce additionstepread computed total100000⋯evaluatorvisit statesread totalforcing depth

    Each step computes its total before returning; the recorded run returns 100000.

    Is forcing next.stats enough?

    The successor record returned by the operator
    Code
    let next = { stats.total = item.stats.total + 1; };
    in {
      key = item.key + 1;
      inherit (next) stats;
    }

    Empty source

      Keys move forward; each total refers back
      keystats.total
      00
      1stats.total[0] + 1
      2stats.total[1] + 1
      • computed number
      • deferred expression
      • evaluated record
      Three states shown; stats.total[k] is the stats.total of the state with key k.
      seq next.stats evaluates stats, not stats.total
      keystats.total
      00
      1stats.total[0] + 1
      2stats.total[1] + 1
      • computed number
      • deferred expression
      • evaluated record
      Three states shown; stats.total[k] is the stats.total of the state with key k.
      Each transition carries a computed number
      keystats.total
      00
      11
      22
      • computed number
      • deferred expression
      • evaluated record
      Three states shown; stats.total[k] is the stats.total of the state with key k.

      Programs choose the state. This interpreter uses deepSeq.

      newState: the data carried between interpreter steps
      Code
      k = builtins.deepSeq newState (step.key + 1);

      We know to force total in our counter. The interpreter accepts differently shaped program state, so it chooses recursive forcing.

      The same counter, using deepSeq before each next key
      (last deep).total?
      Explore code

      nix-effects / src/trampoline.nix

      Suppose the program also keeps a growing log.

      Add history to the counter's carried data
      Code
      history = {
        head = item.key;
        tail = item.history;
      };
      New cellhead = item.keytail = item.history
      tail
      Previous cellitem.historyshared, not copied
      tail
      Earlier cells…

      deepSeq computes the total and walks the program's log.

      next now carries a history
      Code
      next = {
        total = item.total + 1;
        history = { head = item.key; tail = item.history; };
      };
      The same state, three demand boundaries
      DemandEvaluatesStill deferred
      seq nextthe recordtotal, history
      seq next.totaltotalhistory
      deepSeq nexttotal and every history cellnothing

      Repeated deep traversal revisits the growing prefix.

      A traversal of the whole retained chain after every extension
      Step 1
      cell 1
      1 visit
      Step 2
      cell 1cell 2
      2 visits
      Step 3
      cell 1cell 2cell 3
      3 visits

      3 new cells. 1 + 2 + 3 = 6 visits.

      Stored values can already be evaluated. Each traversal walks the links again.

      n steps cost n(n + 1) / 2 visits: about 5 billion at n = 100000.

      Precise forcing requires knowledge of the state.

      We know this counter's state

      seq next.total

      Computes the number; leaves the program log alone.

      The interpreter accepts different state

      deepSeq next

      Recursive forcing also walks this program's growing log.

      The interpreter cannot hard-code total. Its forcing cost depends on what the program carries.

      Can my checker compare this deeply nested type with itself?

      nix-effects: an MLTT-inspired type checker
      Π (x₁ : A₁).
        Π (x₂ : A₂).
          …
            Π (xₙ : Aₙ). R

      What about 10,000 binders?

      A Π type describes a function whose result type may depend on its argument.

      One driver step can still enter deeply nested Nix calls.

      Recursive comparison inside one driver step
      Recursive comparison inside one driver stepA native driver invokes one comparison. That call waits for a comparison under the next binder, which waits for another. Three host calls remain open; further descent would add more. The driver cannot take its next step until this operation returns.1234compare bodycompare bodycomparenative driverexecution orderopen Nix callsRecursive comparison inside one driver stepA native driver invokes one comparison. That call waits for a comparison under the next binder, which waits for another. Three host calls remain open; further descent would add more. The driver cannot take its next step until this operation returns.1234compare bodycompare bodycomparenative driverexecution orderopen Nix calls

      The driver can take another step only after this operation returns.

      This function remembers which function to call first.

      Code
      f0 = x: x;
      step = previous: x: previous x + 1;
      Callstep f0
      returns
      A new functionx: previous x + 1remembers previous = f0

      Each new function remembers the one before it.

      Code
      f1 = step f0;
      f2 = step f1;
      f3 = step f2;
      Wrapperf3adds 1 after previous
      previous
      Wrapperf2adds 1 after previous
      previous
      Wrapperf1adds 1 after previous
      previous
      Base functionf0returns x

      What does deepSeq do with this larger function?

      closureChain: the same construction, repeated 100000 times
      Code
      builtins.deepSeq closureChain true
      builtins.deepSeq closureChain true?
      Explore code

      What happens when we apply the larger function?

      Run the larger construction
      Code
      closureChain 0
      f3 0 nests four calls before any addition
      f3 0 nests four calls before any additionEach call waits for the next one and owes an addition. Four calls are open when the base case returns zero; the replies then come back one, two, three. A large enough count reaches the stack limit before any call returns.1234stack limitf0 00f1 01f2 02f3 03callerexecution orderopen callsf3 0 nests four calls before any additionEach call waits for the next one and owes an addition. Four calls are open when the base case returns zero; the replies then come back one, two, three. A large enough count reaches the stack limit before any call returns.1234stack limitf0 00f1 01f2 02f3 03callerexecution orderopen calls

      Illustrative trace; spacing shows order, not elapsed time.

      closureChain 0?
      Explore code

      The recursion has moved inside the callback.

      Pikachu stares in open-mouthed surprise.
      I forced the function.

      And then I called it.

      Return after one transition. Store the remaining work.

      Function bodyx: previous x + 1

      previous is the remembered function. The pending operation is + 1.

      Explicit pending operation{ tag = "add"; amount = 1; }

      Store the operation for the dispatcher to perform. Written add 1 below.

      Where did previous go? Its links become the order of the frame list.

      First: f1's additionadd 1
      Then: f2's additionadd 1
      Last: f3's additionadd 1
      Defunctionalization

      The dispatcher reads one frame and performs its operation.

      apply: the dispatcher for add frames
      Code
      apply = value: frame:
        if frame.tag == "add"
        then value + frame.amount
        else throw "Unknown frame";
      Hand trace: one frame
      Current value0
      apply reads the frametag = "add"amount = 1
      New value1value + frame.amount

      Do the frames produce the same result?

      frames holds the three add records
      Code
      builtins.foldl' apply 0 frames
      f3 0?
      Explore code
      builtins.foldl' apply 0 frames?
      Explore code

      A machine makes its pending operations inspectable.

      Each transition consumes one frame and carries the rest forward
      Each transition consumes one frame and carries the rest forwardThe machine starts with value zero and three add-one frames. Each transition applies the top frame: zero becomes one, then two, then three. The remaining frames keep their order, and the run ends when no frames remain.pending framesvalueadd 1add 1add 10applyadd 1add 11applyadd 12applyno frames3Each transition consumes one frame and carries the rest forwardThe machine starts with value zero and three add-one frames. Each transition applies the top frame: zero becomes one, then two, then three. The remaining frames keep their order, and the run ends when no frames remain.pending framesvalueadd 1add 1add 10add 1add 11add 12no frames3

      Each transition consumes the top frame; the remaining frames keep their order.

      A CEK-style evaluator carries:

      C: control
      The expression being evaluated.
      E: environment
      The bindings available to that expression.
      K: continuation
      The pending evaluator work, stored as frames.

      Deep terms require control over each recursive walk.

      nix-effects / src/tc/eval/machine.nix

      The checker can return between comparisons.

      Π₁ = Π (x₁ : A₁). Π₂

      Π₁ is the outer type; Π₂ is its body: Π (x₂ : A₂). …

      Compare the argument types, then resume the bodies
      Compare the argument types, then resume the bodiesThe current comparison begins at the outer type, Pi one. It moves to the argument type A one and stores a frame to compare the bodies, Pi two. When the argument types match, the body comparison becomes current and its frame is removed. Each transition returns to the driver; comparison continues at the next binder.pending framescompareno framesΠ₁return to driverΠ₂A₁return to driverno framesΠ₂Compare the argument types, then resume the bodiesThe current comparison begins at the outer type, Pi one. It moves to the argument type A one and stores a frame to compare the bodies, Pi two. When the argument types match, the body comparison becomes current and its frame is removed. Each transition returns to the driver; comparison continues at the next binder.pending framescompareno framesΠ₁Π₂A₁no framesΠ₂

      Each arrow returns to the driver. Open both bodies with the same stand-in for x₁, then continue at the next binder.

      Now I can choose the next transition.

      The hijacker in Captain Phillips points to his eyes while taking command.
      Look at me.

      I'm the evaluator now.

      genericClosure keeps every visited state reachable from its result.

      The original counter: key and total
      Code
      { key = 0; total = 0; }
      The visited list holds every state until return
      The visited list holds every state until returnStates zero, one and two enter the visited list at successive steps. None is released, so the number of held states climbs and all three remain reachable when the driver returns.123s2s1s0drivertraversal stepsstates heldThe visited list holds every state until returnStates zero, one and two enter the visited list at successive steps. None is released, so the number of held states climbs and all three remain reachable when the driver returns.123s2s1s0drivertraversal stepsstates held

      Each held state keeps the data it references reachable.

      genericClosure keeps every visited state reachable from its result.

      The visited list holds every state until return
      The visited list holds every state until returnStates zero, one and two enter the visited list at successive steps. None is released, so the number of held states climbs and all three remain reachable when the driver returns.123s2s1s0drivertraversal stepsstates heldThe visited list holds every state until returnStates zero, one and two enter the visited list at successive steps. None is released, so the number of held states climbs and all three remain reachable when the driver returns.123s2s1s0drivertraversal stepsstates held

      Each held state keeps the data it references reachable.

      A skeleton waits at a computer.
      Me waiting for the garbage collector

      while holding every visited state

      Run several steps per fold, then recurse into another chunk.

      The list supplies iterations; stepIf computes the next state
      Code
      chunk = builtins.genList (i: i) size;
      after = builtins.foldl' stepIf state chunk;
      fold chunks₀ → s₁ → … → sₖ
      unfinished: recurse
      fold next chunksₖ → … → sₘ

      Finished: return the answer. Each recursive call leaves one driver call waiting.

      nix-effects / src/tc/eval/machine.nix

      Keep taking steps until the program finishes.

      Thanos regards his opponent after receiving a small cut in Avengers: Infinity War.

      All that for a while loop.

      What I need is a while loop.

      Code
      run = state:
        let next = step state;
        in
          if next.done
          then next.value
          else run next.state;

      A native trampoline could run those steps directly.

      Interface sketch for a native primitive
      Code
      builtins.trampoline step initialState
      Each step returns another state or the final answer
      Initial stateinitialState
      Native driverstep currentone call, then a reply
      finished
      Final answerresult
      continue: next state becomes current

      The machine's frames and forcing policy stay in the program.

      Overview
      1. Trampolining Nix
      2. How far can we take Nix as a programming language?
      3. The program asks for state; the handler supplies it.
      4. bind passes that reply to the rest of the program.
      5. The program changes the state, then returns the original value.
      6. This call waits for the next call to return.
      7. Each step leaves another call waiting.
      8. The answer returns through every waiting call.
      9. Even a tail-recursive driver consumes stack in Nix.
      10. Let the step return before taking another.
      11. That call returns before the next one begins.
      12. More steps. The same nesting depth.
      13. A fold passes the running total to this function.
      14. Can a builtin fold run this counter?
      15. A dependency closure collects every reachable package.
      16. One successor continues execution; no successors means done.
      17. Start with one record: an identity and a running total.
      18. Build the successor from the current record, item.
      19. Return no successors when the key reaches the limit.
      20. naive names the returned list, including the initial state.
      21. Surely the hard part is over.
      22. Did visiting every state compute the answer?
      23. Then I asked for the total.
      24. The key and the total have separate demand paths.
      25. Did the worklist visit every step?
      26. What work remains in the final total?
      27. Does forcing next also compute total?
      28. The next key becomes available after next.total has been computed.
      29. The following step receives a total that has already been computed.
      30. Does forcing next.total finish the counter?
      31. Is forcing next.stats enough?
      32. Does forcing stats compute its total?
      33. Does reaching stats.total repair the counter?
      34. Programs choose the state. This interpreter uses deepSeq.
      35. Suppose the program also keeps a growing log.
      36. deepSeq computes the total and walks the program's log.
      37. Repeated deep traversal revisits the growing prefix.
      38. Precise forcing requires knowledge of the state.
      39. Can my checker compare this deeply nested type with itself?
      40. One driver step can still enter deeply nested Nix calls.
      41. This function remembers which function to call first.
      42. Each new function remembers the one before it.
      43. What does deepSeq do with this larger function?
      44. What happens when we apply the larger function?
      45. The recursion has moved inside the callback.
      46. Return after one transition. Store the remaining work.
      47. The dispatcher reads one frame and performs its operation.
      48. Do the frames produce the same result?
      49. A machine makes its pending operations inspectable.
      50. The checker can return between comparisons.
      51. Now I can choose the next transition.
      52. genericClosure keeps every visited state reachable from its result.
      53. genericClosure keeps every visited state reachable from its result.
      54. Run several steps per fold, then recurse into another chunk.
      55. Keep taking steps until the program finishes.
      56. What I need is a while loop.
      57. A native trampoline could run those steps directly.
      58. Should Nix provide this directly?
      59. And that’s how I nearly lost my mind writing a loop in Nix.

      Sum requested memory

      Sum the memory requested by service configurations and keep a report of entries missing a port. The report is only needed when requested.

      let
      Definitions
      n = 100000;
      entries = builtins.genList
        (i: if builtins.bitAnd i 1 == 0
            then { memoryMiB = 512; }
            else { memoryMiB = 1024; port = 8080; }) n;
      makeReport = entries: builtins.toJSON
        (builtins.filter (entry: !(entry ? port)) entries);
      diagnostics = makeReport entries;
      initial = { total = 0; inherit diagnostics; };
      result = builtins.foldl'
        (acc: entry: { total = acc.total + entry.memoryMiB; inherit diagnostics; })
        initial entries;

      Empty source

        Inspect the record's fields without asking for the memory total or the report.