Host introspection: Difference between revisions

m
(Added Bash / Unix Shell Implementation)
Line 588:
 
This returns <code>32</code> in 32 bit J.
 
This value could also be calculated, exercising left shift of bits in a 2s complement fixed width integer:<lang J> 2+2^.>./1&(33 b.)^:a:1
64</lang>
 
Note that this mechanism is testing the interpreter, and not the OS or Hardware. (Though, of course, you cannot run a 64 bit interpreter on a machine that does not support it.)
6,962

edits