Live data from Hacker News

Redis on the Raspberry Pi: Adventures in unaligned lands

antirez.com

11–20 of 60 posts

Re: Redis on the Raspberry Pi: Adventures in unaligned lands

#11

I fondly remember unaligned access faults "back in the day" with FreeBSD/alpha. We implemented a fixup for applications, but not for the kernel. I seem to recall that even though x86 could deal with unaligned accesses, it caused minor performance problems, so fixing alignment issues on alpha would benefit x86 as well. Most (definitely not all) of the mis-alignment problems were in the network stack, and were centered…

Why in god's name did they make it 14?!

Re: Redis on the Raspberry Pi: Adventures in unaligned lands

#13
post #12

Could Rust's typesystem catch unaligned pointer dereferences?

Considering dereferencing a pointer after doing some arithmetic on it can only be done within unsafe blocks, I would say you are at least warned about it. But it will happily compile.

Re: Redis on the Raspberry Pi: Adventures in unaligned lands

#14

I fondly remember unaligned access faults "back in the day" with FreeBSD/alpha. We implemented a fixup for applications, but not for the kernel. I seem to recall that even though x86 could deal with unaligned accesses, it caused minor performance problems, so fixing alignment issues on alpha would benefit x86 as well. Most (definitely not all) of the mis-alignment problems were in the network stack, and were centered…

Why in god's name did they make it 14?!

They didn't feel like they needed those 2 bytes and, hey, why waste space?

Also, was a "byte" standardized at the time? Didn't they still have systems working in not-8-bit "byte", nibbles, byte, and 2-byte boundaries?

Re: Redis on the Raspberry Pi: Adventures in unaligned lands

#15
I never deal with such low level issues, so I don't have to read this, but... reading these posts by antirez is such a joy. He makes this topic so clear and understandable, he doesn't assume much, he doesn't use overly complex explanations, he just "says it like it is" :-)

Thanks!

Re: Redis on the Raspberry Pi: Adventures in unaligned lands

#16

I fondly remember unaligned access faults "back in the day" with FreeBSD/alpha. We implemented a fixup for applications, but not for the kernel. I seem to recall that even though x86 could deal with unaligned accesses, it caused minor performance problems, so fixing alignment issues on alpha would benefit x86 as well. Most (definitely not all) of the mis-alignment problems were in the network stack, and were centered…

Why in god's name did they make it 14?!

Ethernet was invented in 1973 and the first 32-bit processors were available in 1979.

While you've got the time machine, can you fix it so that "network byte order" and Intel endianness are the same too?

Re: Redis on the Raspberry Pi: Adventures in unaligned lands

#17
post #16

Earlier quoted context omitted.

Why in god's name did they make it 14?!

Ethernet was invented in 1973 and the first 32-bit processors were available in 1979. While you've got the time machine, can you fix it so that "network byte order" and Intel endianness are the same too?

Or rather keep Intel from munging the order their processors write bytes in.

Re: Redis on the Raspberry Pi: Adventures in unaligned lands

#18
post #8
post #5

Earlier quoted context omitted.

No, but posting while green will usually get your comment downvoted to oblivion, even if you are erudite and contribute to the conversation. Turn on "show dead comments" and see how many greens are deleted. I screenshot many examples.

Is this cause (ie. people downvote greens out of prejudice) or effect (greens are often created to shitpost? And to concentrate all my meta in one place... Is shadow banning a thing at HN? I thought they just, well, banned you.

OT - new user here, what does green mean? I assumed it was staff/moderators.

Re: Redis on the Raspberry Pi: Adventures in unaligned lands

#19
post #18
post #8

Earlier quoted context omitted.

Is this cause (ie. people downvote greens out of prejudice) or effect (greens are often created to shitpost? And to concentrate all my meta in one place... Is shadow banning a thing at HN? I thought they just, well, banned you.

OT - new user here, what does green mean? I assumed it was staff/moderators.

It means new user (hence green color).
Post reply on HN