Live data from Hacker News

Linus Torvalds on aliasing

yodaiken.com

151–160 of 284 posts

Re: Linus Torvalds on aliasing

#151
post #124

Earlier quoted context omitted.

When it comes to being oversensitive needy little things there is no true Scottsman. As a northern European I find it not only comfortable that Linus runs Linux, but I would be less comfortable if it was another American smile in face pretend to be your friend but be shady as fuck attitude that you guys seem to confuse for 'professionalism'. So let's chalk this to cultural differences. We wouldn't hire someone like y…

As another Northern European I disassociate myself from your comment. Yes, there are cultural differences between the US and Europe. No, that doesn't mean that Europe agrees with your opinion on what constitutes acceptable behaviour in the software community. You do not speak for us.

I dunno, man, I grew up in the states and moved to Northern Europe, and I definitely see what he means.

It's quite refreshing, even.

Re: Linus Torvalds on aliasing

#152
post #92
post #45

Earlier quoted context omitted.

It is against the rules. To fix that, you'd need to put a field of type 'struct Base' in the derived struct(s) rather than just copying its fields. edit: If you want to keep the existing syntax and can use GCC extensions, it should be legal to use an unnamed union: struct Derived1 { union { struct Base base; struct { int a; int b; int c; }; }; int d; int e; }; edit2: or, with -fms-extensions, just struct Derived1 { s…

Putting a field of type 'struct Base' adds extra padding in my case, unfortunately.

I believe there is a way to disable field alignment on a case-by-case basis. I could be wrong, though.

Re: Linus Torvalds on aliasing

#153
Am I the only one understanding that finding funny ways to rant is one of Linus' favourites hobbies? And so that he is not doing that to hurt people, but to entertain? He makes that particularly clear by attending gatherings about pirates' language, etc. Stop try to change him, because without this humorous spice his release notes would be way too boring.

Re: Linus Torvalds on aliasing

#154
post #41

I work with a codebase that implements a sort of OO inheritance in C. It looks like this: #define BASE_FIELDS int a; int b; int c; struct Base { BASE_FIELDS }; struct Derived1 { BASE_FIELDS int d; int e; }; struct Derived2 { BASE_FIELDS int f; int g; }; Then, it has lots of code that accesses Derived objects through a `Base*`, with ->a and so on. Is this against the standard C aliasing rules? If so, how would this ne…

That is well-defined.

"One special guarantee is made in order to simplify the use of unions: if a union contains several structures that share a common initial sequence (see below), and if the union object currently contains one of these structures, it is permitted to inspect the common initial part of any of them anywhere that a declaration of the complete type of the union is visible. Two structures share a common initial sequence if corresponding members have compatible types (and, for bit-fields, the same widths) for a sequence of one or more initial members."

Re: Linus Torvalds on aliasing

#155
post #78

Earlier quoted context omitted.

> Linus has done some (okay, lots of) wonderful stuff. However, his attitude here is pretty extreme. Being incredibly rude, then proceeding to merge said pull request. He already writes that he's OK with the code ("can live with it") -- he's against the reasoning that accompanies it.

Good code or not, if he doesn't agree with the reason to merge it, why merge it?

Presumably, there was a follow-up discussion.

Re: Linus Torvalds on aliasing

#156
post #141

I would go out of my way to avoid people who communicate like this with me. People put time and energy in making software better, at least in their own eyes, for others and then they get textually abused like this by someone who has his fame to protect himself with. He also does no service to his own arguments by peppering them with childish swearing because things like "So standards are not some kind of holy book th…

I can't stand when you're expected to wrap every sentence in some sugar coated fake 'niceness' just to not step on somebody's toes. If I have a certain way of expressing myself... Well that's how it is.

It doesn't have to be about sugar coating. Just try to take some of the emotions out of the conversation and stick to stating the facts, and you can easily come across as much less offensive.

Re: Linus Torvalds on aliasing

#157
post #124

I would go out of my way to avoid people who communicate like this with me. People put time and energy in making software better, at least in their own eyes, for others and then they get textually abused like this by someone who has his fame to protect himself with. He also does no service to his own arguments by peppering them with childish swearing because things like "So standards are not some kind of holy book th…

When it comes to being oversensitive needy little things there is no true Scottsman. As a northern European I find it not only comfortable that Linus runs Linux, but I would be less comfortable if it was another American smile in face pretend to be your friend but be shady as fuck attitude that you guys seem to confuse for 'professionalism'. So let's chalk this to cultural differences. We wouldn't hire someone like y…

If only us silly Americans talked so "honestly" with our wives:

"Why did you cook this? Are you fucking stupid?"

I'm in the military, and if you can't control what you say, you shouldn't be respected.

Re: Linus Torvalds on aliasing

#158

Earlier quoted context omitted.

My wife works in mental health, dealing with people at the very lowest ebb. You'd think the therapists' internal meetings would be full of carefully worded and graded polite discussion, but just yesterday she told me about a meeting where the lead therapist said to one particular member of the group, 'If you don't do X right, we're fucked. You are fucking us up!' I don't know if that's good or not, but it's not just…

Presumably your wife is dealing with complex issues where there are real conflicts that require real words, unlike this situation. This is a non-conflict that Torvalds turned into one. In this case, Torvalds is swearing at someone who agrees with him (see Andy Shevchenko's response) because he hasn't bothered to seek clarification before calling it "pure and utter garbage".

I think people's ideas of what's a real conflict can vary. I don't know what Linus's motivation was, probably you know better than me. Is it possible he's trying to engender a culture where Andy pushes back harder on these rationales, rather than just being polite? Quoting Andy:

   Yeah, there were few reasons why I decide to make that patch (OK, it seems I staked on not the best reason).

Re: Linus Torvalds on aliasing

#159

I would go out of my way to avoid people who communicate like this with me. People put time and energy in making software better, at least in their own eyes, for others and then they get textually abused like this by someone who has his fame to protect himself with. He also does no service to his own arguments by peppering them with childish swearing because things like "So standards are not some kind of holy book th…

It's not constructive, but at least explicitly so. Avoiding swear words wouldn't change the fact, rather the insult would creep hidden in fluff.

The constructive part, not destructive, is in the alternatives proposed. So, plus minus zero in my mind, the emotional aspect is just a grab for attention, and ...

Re: Linus Torvalds on aliasing

#160
post #124

I would go out of my way to avoid people who communicate like this with me. People put time and energy in making software better, at least in their own eyes, for others and then they get textually abused like this by someone who has his fame to protect himself with. He also does no service to his own arguments by peppering them with childish swearing because things like "So standards are not some kind of holy book th…

When it comes to being oversensitive needy little things there is no true Scottsman. As a northern European I find it not only comfortable that Linus runs Linux, but I would be less comfortable if it was another American smile in face pretend to be your friend but be shady as fuck attitude that you guys seem to confuse for 'professionalism'. So let's chalk this to cultural differences. We wouldn't hire someone like y…

Cultural differences? Look, we're not famous for our hospitality up here, but we are polite.
Post reply on HN