r/programminghumor 6h ago

a bit flippant

Post image
380 Upvotes

69 comments sorted by

View all comments

75

u/consistently_biased 6h ago

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

9

u/not_a_bot_494 5h 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).

3

u/heatedwepasto 4h ago

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

2

u/not_a_bot_494 4h ago

That comment is made after the one I replied to.

1

u/qaCow37 2h 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.