Recent submissions

Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
> How would you do [packed structs] in C?

Bitfields! This is valid C:

  struct foo {
    unsigned bg_priority: 2;
    unsigned character_base: 2;
    // ...
  };
Comment · 3 years ago
Comment · 4 years ago
Comment · 4 years ago
And the corollary, "In theory, theory and practice are the same thing. In practice..."
Comment · 4 years ago
Are those mutually exclusive? Modern society can be a systemic trainwreck and still be better than what came before.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton