nupp.runtime.services.system
Canonical host.system API 1 environment contract.
Setup selects service before requiring nupp.system. Importing this declaration loads no host implementation. Facts describe the executing Nupp ABI, including emulated environments, and remain fixed for the loaded facade. Providers report nonempty platform and architecture names, little or big endianness, and a 32- or 64-bit pointer width. They must agree with the target ABI used by generated code.
availableParallelism estimates the number of execution units usable by this process, including host restrictions, and returns an integer of at least one. It must not create a worker pool. The browser implementation may suspend while requesting host facts. Native and browser implementations are selected only from the artifact's compatible provider catalog; explicit setup selection takes priority.
Module contents
Types
| Type | Kind | Description |
|---|---|---|
Provider | interface | Facts and a parallelism query for the executing ABI. |
Values
| Value | Kind | Description |
|---|---|---|
service | variable | Select during setup before the system facade loads. |
Types#
Providerinterface#
interface Provider
readonly platform: string
readonly architecture: string
readonly endianness: string
readonly pointerBits: integer
readonly availableParallelism: function(): integer
endFacts and a parallelism query for the executing ABI.
Methods
availableParallelism#
availableParallelism: function(): integerEstimates usable execution units, always at least one.
Returns
| Type | Description |
|---|---|
integer |
Fields
Values#
servicevariable#
Select during setup before the system facade loads.