-
1. Initialization and finalization lifecycle PPL-LLR-000131 The runtime shall initialize shared library facilities before their first supported use and finalize them after their last supported use. Multiple participating translation units shall not cause premature finalization of shared facilities. Thread-specific numerical state shall be initialized and finalized according to the selected thread-support configuration. Each supported native or binding lifecycle protocol shall define the validity of existing objects and borrowed views across finalization and reinitialization, the permitted order of owned-object and managed cleanup, and the live-thread and interruption-state preconditions for those transitions.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
3. Failure and resource safety PPL-LLR-000133 When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming link from: 4. Prolog library lifecycle1
1. Explicit C library lifecycle PPL-LLR-000201 The C interface shall provide explicit initialization and finalization of library state. Repeated initialization without an intervening finalization, and repeated finalization without an intervening initialization, shall report an invalid lifecycle request.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use PPL-LLR-000438 For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
ppl_initialize shall initialize native library state, published symbolic constants and the calling thread's C variable formatter. ppl_finalize shall release C-owned interruption objects and its native library-initialization owner and restore the preceding native variable formatter. Initialization and finalization shall return zero on success and invalid-argument status for duplicate lifecycle requests. Reinitialization after a completed finalization shall succeed. Independently owned client objects shall be released before finalization.
New participating threads shall enter and leave using the thread functions in supported configurations. The initializing thread shall use the library lifecycle rather than duplicate thread entry or exit. Thread finalization shall restore that thread's preceding native formatter. Shared lifecycle and interruption ownership shall obey the native synchronization prerequisites.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. Failure and resource safety PPL-LLR-000133 When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
3. C boundary error reporting PPL-LLR-000203 The C interface shall report every failure designated by its supported failure model through the corresponding negative error status and invoke the installed error handler with the error category and a textual description. Native C++ exceptions raised by supported operations shall be contained at the C language boundary rather than escaping to the caller.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
-
4. Binding interruption support and state changes PPL-LLR-000439 Each interruption facility exposed by a supported language interface shall define and observe its availability, parameter restrictions, thread and signal ownership preconditions, replacement and reset effects, and cleanup after notification. Unsupported requests shall be rejected through the interface's declared error mechanism without arming the unsupported facility. The effects of successful or rejected replacements and resets on existing interruption settings shall be explicit. An interruption shall be distinguishable from a completed numerical outcome.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
Supported native exceptions shall be contained at the C boundary and translated to the corresponding negative category: allocation, invalid argument, domain, size, logic, checked arithmetic overflow, internal runtime error, other standard exception, unexpected exception or interruption. The installed non-null error handler shall receive that category and a description exactly once for each reported failure, including directly detected I/O, buffer-allocation and unsupported-operation failures. Its description shall be borrowed only during the callback. A null handler shall disable notification. Handlers shall return normally and obey synchronization and reentrancy prerequisites.
ppl_set_error_handler shall replace the calling thread's handler where thread-local state is configured. Direct C I/O errors shall preserve their errno detail across notification. Pointer-returning text wrapping shall use null on failure, with handler notification, rather than allowing a C++ exception to escape.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. Failure and resource safety PPL-LLR-000133 When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming link from: 4. Prolog library lifecycle1
1. Explicit C library lifecycle PPL-LLR-000201 The C interface shall provide explicit initialization and finalization of library state. Repeated initialization without an intervening finalization, and repeated finalization without an intervening initialization, shall report an invalid lifecycle request.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
-
Incoming links from: 1. Configured binding domain selection 1. OCaml numerical term conversion2
2. Mathematical consistency of corresponding binding operations PPL-LLR-000214 For every supported facility exposed by a configured non-C++ language interface, conversion of inputs and operation parameters and production of returned results shall preserve the corresponding native facility's declared mathematical semantics, including its exactness, approximation and inconclusiveness guarantees.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
Version and banner accessors shall expose the built library's version components and borrowed static strings. Dimension accessors shall assign the native maximum extent and reserved non-dimension sentinel without changing them numerically. Initialization shall publish relation flags, complexity classes, optimizer statuses, modes and controls corresponding to the native values. Callers shall use these symbolic values in the operations that accept them. Version component functions shall return their nonnegative component directly.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. Floating-point rounding-state exchange PPL-LLR-000132 On supported platforms with floating-point rounding control, initialization shall establish the rounding state required by PPL floating-point abstractions and preserve the preceding state for restoration. Restoring that preceding state shall permit the client to resume its own floating-point computations; before further use of affected PPL abstractions, the client shall be able to reestablish the PPL-required state.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
3. Failure and resource safety PPL-LLR-000133 When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming links from: 1. Configured binding domain selection 1. OCaml numerical term conversion2
2. Mathematical consistency of corresponding binding operations PPL-LLR-000214 For every supported facility exposed by a configured non-C++ language interface, conversion of inputs and operation parameters and production of returned results shall preserve the corresponding native facility's declared mathematical semantics, including its exactness, approximation and inconclusiveness guarantees.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use PPL-LLR-000438 For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
Rounding controls shall apply the native PPL rounding mode or restore the calling thread's saved preceding mode. The precision query shall assign the current irrational-result precision, and setting shall apply the native admission and precision semantics. These controls shall not change exact integer or rational values. Calls involving floating arithmetic shall satisfy the applicable native rounding and thread-entry prerequisites.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. Failure and resource safety PPL-LLR-000133 When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming links from: 4. Binding interruption support and state changes 6. Thread entry and shared-facility use2
5. Watchdog scheduling and cancellation scope PPL-LLR-000135 Where watchdog support is available, the runtime shall accept supported positive timer durations, schedule notifications, and allow cancellation of pending notifications under the documented timer, signal, and thread-ownership restrictions. Failed construction shall not leave a pending event or invalidate existing watchdogs. Unsupported watchdog facilities and invalid durations shall be reported through the documented failure mechanism. Watchdog use shall not imply a hard elapsed-time deadline or a guarantee beyond the documented timer-state failure behavior.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
3. C boundary error reporting PPL-LLR-000203 The C interface shall report every failure designated by its supported failure model through the corresponding negative error status and invoke the installed error handler with the error category and a textual description. Native C++ exceptions raised by supported operations shall be contained at the C language boundary rather than escaping to the caller.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
-
4. Binding interruption support and state changes PPL-LLR-000439 Each interruption facility exposed by a supported language interface shall define and observe its availability, parameter restrictions, thread and signal ownership preconditions, replacement and reset effects, and cleanup after notification. Unsupported requests shall be rejected through the interface's declared error mechanism without arming the unsupported facility. The effects of successful or rejected replacements and resets on existing interruption settings shall be explicit. An interruption shall be distinguishable from a completed numerical outcome.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
Supported signal-timeout requests shall arm the native watchdog for the positive centisecond duration under its thread/signal ownership prerequisites. Replacing a timeout shall cancel the preceding signal timeout before admitting and arming its replacement; failure after cancellation shall not restore the old one. Reset shall release the C-owned signal watchdog and its binding-owned notification state. A delivered signal interruption shall report the timeout category and release that signal timeout before notification. Thread-safe C configurations shall reject the unsupported request without arming it. C library finalization shall release any remaining C-owned signal watchdog before native watchdog finalization.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. Failure and resource safety PPL-LLR-000133 When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment PPL-LLR-000134 At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
3. C boundary error reporting PPL-LLR-000203 The C interface shall report every failure designated by its supported failure model through the corresponding negative error status and invoke the installed error handler with the error category and a textual description. Native C++ exceptions raised by supported operations shall be contained at the C language boundary rather than escaping to the caller.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
-
4. Binding interruption support and state changes PPL-LLR-000439 Each interruption facility exposed by a supported language interface shall define and observe its availability, parameter restrictions, thread and signal ownership preconditions, replacement and reset effects, and cleanup after notification. Unsupported requests shall be rejected through the interface's declared error mechanism without arming the unsupported facility. The effects of successful or rejected replacements and resets on existing interruption settings shall be explicit. An interruption shall be distinguishable from a completed numerical outcome.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
Supported deterministic requests shall use the native positive scaled computational-weight increment, its admitted circular threshold domain and cooperative checkpoints. Replacing shall cancel the preceding deterministic setting before admitting the replacement; reset shall release its C-owned watcher and notification state. A deterministic interruption shall release that deterministic watcher before reporting the timeout category. It shall not remain active merely because the signal-timeout cleanup path was selected instead. Reset shall clear only the C-owned deterministic request and preserve unrelated borrowed interruption requests. In thread-safe C configurations, each initialized thread shall own its independent watcher, threshold queue, checker and budget counter. Setting, canceling or expiring one thread's budget shall not alter another's. Thread and library finalization shall release the calling thread's remaining C-owned deterministic state before native teardown; a later thread session shall inherit no pending C deterministic timeout.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.