On this page:
system.version
system.racket_  version
system.type
system.os
system.arch
system.host
system.target_  machine
system.Target  Machine  Symbol
system.path
system.seconds
system.milliseconds
system.exit
8.16.0.1

14.5 System Information and Control🔗ℹ

Reports the running Rhombus version.

> system.version()

"0.33"

Reports the host Racket version.

> system.racket_version()

"8.16.0.1"

function

fun system.type() :: Symbol

Report the host platform’s general type: #'unix, #'windows, or #'macosx.

function

fun system.os() :: Symbol

Report the host platform’s operating system more specifically than system.type. For example, the result may be #'linux or #'freebsd instead of #'unix.

function

fun system.arch() :: Symbol

Report the host platform’s architecture. Possible results include #'x86_64, #'i386, #'aarch64, #'arm (32-bit), and #'ppc (32-bit).

function

fun system.host() :: String

Reports details of the host operating system in a platform-specific format.

Reports the native compilation target machine for the host platform. Possible results include #'ta6le, #'tarm64osx, and #'ti3nt.

The system.TargetMachineSymbol annotation is satisfied by a machine type symbol that are supported as a compilation target by the host Racket system, which may include a cross-compilation target machine.

function

fun system.path(which :: Symbol) :: Path

Returns a system-specific path categorized by which:

The system.seconds reports the current time in seconds since the epoch—which is consistent with the filesystem.modify_seconds function’s result, for example. The system.milliseconds function reports the same time with more precision, expressed in milliseconds (including fractional milliseconds) since the epoch.

See also measure.cpu_milliseconds and measure.real_milliseconds.

function

fun system.exit(v :: Any = #true) :: Void

Calls the system exit handler, which normally exits the current process. If v is a byte, then the byte is used as the process’s exit code, otherwise 0 is used as the exit code.