← Back to context

Comment by Someone

15 hours ago

FTA: “Under the new semantics, because we only care about logical bit representation (which is endian-agnostic), the operation behaves identically on every target: the first array element becomes the 8 least significant bits”

I wouldn’t call that endian-agnostic. It’s explicitly picking little-endian.

It also makes things look weird for beginners. I know how it works, but in the

  test "bitcast [2]u3 to @Vector(3, u2)"

example, turning two 3-bit values [abc def] into three 2-bit values [bc fa de] is way less intuitive than turning it into [ab cd ef].