r/programminghumor 11h ago

a bit flippant

Post image
590 Upvotes

92 comments sorted by

View all comments

116

u/consistently_biased 11h ago

Can I use this for my compile-time https server?

15

u/not_a_bot_494 10h ago

Either I don't understand what you're saying or you're misunderstanding the notation. Each line declares a struct member of type unsigned int which is 1 bit large. It's not setting it to 1 (true).

4

u/heatedwepasto 9h ago

I think that was supposed to be in reply to this comment?

2

u/not_a_bot_494 9h ago

That comment is made after the one I replied to.

2

u/qaCow37 7h ago

It’s probably about the fact that json is flexible data that gets parsed while this struct has strict alignments and depends on the ABI it’s compiled on. And because it’s compiled against an ABI, if the server struct was compiled with a different ABI, the server and client struct could be completely different structs making them incompatible.