NHyDBrun4
R
u
v
Version of 1
lane
NLOverview

Realms and 10¹⁰⁰

A realm is an area of the address space, for example for a project or one kind of data. Every cell belongs to exactly one realm – that is the R in (R, u, v, lane).

What a realm is

In every realm the second coordinate v runs from 1 to T = 10¹⁰⁰, a one followed by a hundred zeros. This number is the fixed realm span. For every combination of realm, u and side, v starts again at 1: the cell (1, 14, 1, NL) and the cell (23, 14, 1, NL) are two different cells, both with v = 1.

The realms lie one after another

Mathematically, the realms lie one after another on a common axis. The position on this axis is called the global coordinate V:

V = (R − 1) · T + v

In realm 1, V is simply v. Realm 2 begins at V = T + 1, realm 3 at V = 2T + 1 and so on. The calculation then uses G = u + V and the same formulas as in realm 1.

An example at the boundary

V = T        →  R = 1,  v = T     (last position of realm 1)
V = T + 1    →  R = 2,  v = 1     (first position of realm 2)

You get back with an integer division: divide V − 1 by T. The quotient plus 1 is the realm, the remainder plus 1 is v.

No storage in advance

A realm is a logical area, not reserved space on disk or in memory. Neither does v = 1 have to exist before v = 744 is written, nor are the positions in between created. Only what has actually been written is stored.

Any number, any size

The number of realms is unlimited, and R and u can be natural numbers of any size. The numbers N become very large: the cell (23, 14, 744, NL) has an address with 203 decimal digits. NHyDB computes with them exactly. Coordinates and addresses with up to one million binary digits have been tested, including saving, reopening and integrity checking.

The lean sister dNHyDB makes do with a single realm.

# Realms and 10¹⁰⁰ A **realm** is an area of the address space, for example for a project or one kind of data. Every cell belongs to exactly one realm – that is the R in (R, u, v, lane). ## What a realm is In every realm the second coordinate v runs from 1 to **T = 10¹⁰⁰**, a one followed by a hundred zeros. This number is the fixed **realm span**. For every combination of realm, u and side, v starts again at 1: the cell (1, 14, 1, NL) and the cell (23, 14, 1, NL) are two different cells, both with v = 1. ## The realms lie one after another Mathematically, the realms lie one after another on a common axis. The position on this axis is called the **global coordinate V**: ```V = (R − 1) · T + v``` In realm 1, V is simply v. Realm 2 begins at V = T + 1, realm 3 at V = 2T + 1 and so on. The calculation then uses G = u + V and the same formulas as in realm 1. ## An example at the boundary ```V = T → R = 1, v = T (last position of realm 1)V = T + 1 → R = 2, v = 1 (first position of realm 2)``` You get back with an integer division: divide V − 1 by T. The quotient plus 1 is the realm, the remainder plus 1 is v. ## No storage in advance A realm is a **logical area**, not reserved space on disk or in memory. Neither does v = 1 have to exist before v = 744 is written, nor are the positions in between created. Only what has actually been written is stored. ## Any number, any size The number of realms is unlimited, and R and u can be natural numbers of any size. The numbers N become very large: the cell (23, 14, 744, NL) has an address with 203 decimal digits. NHyDB computes with them exactly. Coordinates and addresses with up to one million binary digits have been tested, including saving, reopening and integrity checking. The lean sister [dNHyDB](/en/dnhydb/) makes do with a single realm.