| Search internet |
We refer to integers which represent strings as 'byte vectors' or just 'vectors'. As an example, 5996503394 is a vector because it represents the string "bake".
We refer to integers that represent strings as vectors regardless of whether or not they respect the conventions for Logiweb text.
Formally, to be a vector, an integer x must be positive and must satisfy integer-length ( x ) mod 8 = 1
The following operations are suited for operations on vectors:
otherwise.All functions above accept arbitrary integers x rather than just vectors. When applied to an integer which is not a vector, the functions operate on vector ( x ) rather than x.
The Logiweb Abstract Machine (lgwam) supports two, distinct representations for integers: One which can be used for arbitrary integers and one which can only be used for representing vectors. Vector operations tend to be faster when applied to the latter representation.
One cannot see from the outside which representation lgwam uses when. The two representations are near-identical. They only differ in a single bit which is set for integers which are known to represent vectors. The functions above except vector-empty, vector-index, and vector-length return vectors.
| Search logiweb.eu |