Conversation
@twinspin6 static typing with proper inferrence tho
0
0
1
@twinspin6 everything is a register sized number
0
0
1
@twinspin6 yup, that's what forth does
0
0
1
@twinspin6 with the wrong compiler options you can end up with 512 bit bools in c++ iirc
1
0
1
@twinspin6 but they're at least a byte in basically every language
0
0
1
@twinspin6 only in densely packed arrays they're actually a bit, byte is just faster to access than masking out stuff and they're often larger for alighment
0
0
1
@twinspin6 no, it's at least one bit
2
0
1
@twinspin6 i don't think c even has a concept of data types whose size isn't byte aligned?
2
0
1
@snacks @twinspin6 everything is one bit
0
0
1
@snacks @twinspin6
struct foo {
int n1 : 4;
int n2: 4;
};

gives you two fields of 4 bits in one byte, if I'm correct
1
0
1
@snacks @twinspin6 yeah the bitfield itself is
0
0
2