Host introspection: Difference between revisions

m
(→‎{{header|Raku}}: Add an alternate)
Line 992:
<lang perl6>say blob8.new(1,0).read-int16(0) == 1 ?? "little-endian" !! "big-endian"</lang>
 
In Rakudo 2019.01 the dynamic KERNALKERNEL varible was fleshed out with a bunch of accessors, among them:
<lang perl6>say join ', ', $*KERNEL, $*KERNEL.bits, $*KERNEL.arch, $*KERNEL.endian</lang>
{{out}}
10,333

edits