Currently on 0.7 if I want to
reinterpret from a smaller data type to a larger one, I have to return an array, e.g.
reinterpret(Float64, zeros(UInt8, 8)) # returns Float64[0.0]
This results in an unnecessary allocation and interpret being unbelievably expensive for retrieving individual elements (by a factor of 3, according to my experiments). Is there any “safe” way around this, i.e. a safe equivalent to
unsafe_load, even in principle? This seems really important if
reinterpret has any chance of being a viable alternative to