Comment

Comment by wiktor-k

Is it just me or should the following fragment use EnforcedAlignment in main?

    #[derive(TypeLayout, Copy, Clone)]
    #[repr(C)]
    struct EnforcedAlignment {
        _offset: [u8; GAP - 8],
        data: AlignedU128,
    }

    pub fn main() {
        println!("{}",  StockAlignment::type_layout());
    }
Excellent blogpost showing their product, by the way!
parent wiktor-k 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton