1 USING: generic help.markup help.syntax kernel math memory
2 namespaces sequences kernel.private strings classes.singleton ;
7 ARTICLE: "system" "System interface"
12 "Getting the path to the Factor VM and image:"
17 "Getting a monotonically increasing nanosecond count:"
18 { $subsections nano-count }
19 "Exiting the Factor VM:"
20 { $subsections exit } ;
22 ARTICLE: "cpu" "Processor detection"
23 "Processor detection:"
25 "Supported processors:"
33 { $subsections x86 } ;
35 ARTICLE: "os" "Operating system detection"
36 "Operating system detection:"
38 "Supported operating systems:"
49 "Operating system families:"
58 { $values { "class" singleton-class } }
60 "Outputs a singleton class with the name of the current CPU architecture."
64 { $values { "class" singleton-class } }
66 "Outputs a singleton class with the name of the current operating system family."
70 { $values { "?" "a boolean" } }
71 { $description "Tests if this Factor instance is embedded in another application." } ;
74 { $values { "n" "an integer exit code" } }
75 { $description "Exits the Factor process." } ;
77 HELP: nano-count ( -- ns )
78 { $values { "ns" integer } }
79 { $description "Outputs a monotonically increasing count of nanoseconds elapsed since an arbitrary starting time. The difference of two calls to this word allows timing. This word is unaffected by system clock changes." }
80 { $notes "This is a low-level word. The " { $vocab-link "tools.time" } " vocabulary defines words to time code execution time." } ;
83 { $values { "path" "a pathname string" } }
84 { $description "Outputs the pathname of the currently running Factor image." } ;
87 { $values { "path" "a pathname string" } }
88 { $description "Outputs the pathname of the currently running Factor VM." } ;