If you have a better argument to counter his logic, please post that, it would be more useful for everyone involved. Posting pretty useless comments here is pretty lame.
Linus Torvalds on aliasing
51–60 of 284 posts
Re: Linus Torvalds on aliasing
#52Earlier quoted context omitted.
Better security in general maybe? The mainline kernel community is known for its conservatism on introducing security mitigation that may affect development in other ways. In comparison, BSD is more security-minded (M* Money per Linus). Although much has been changed after KSPP.
Except BSD even being older than Linux never really took off either in Desktop space or Servers.
Linux only took off thanks to SGI, IBM, HP, Cray seeing value reducing costs from their own in-house systems to something else.
Re: Linus Torvalds on aliasing
#53Gee, Linus, you couldn't just Google "Reasons to avoid union aliasing" and see posts going all the way back to 2011 griping about how it screws even the most basic code beyond repair?
Re: Linus Torvalds on aliasing
#54Re: Linus Torvalds on aliasing
#55Earlier quoted context omitted.
Except BSD even being older than Linux never really took off either in Desktop space or Servers.
Thanks AT&T suit and the MIT licensing, lots of companies use BSD derived OSes without giving anything back. Linux only took off thanks to SGI, IBM, HP, Cray seeing value reducing costs from their own in-house systems to something else.
> Linux only took off thanks to SGI, IBM, HP, Cray seeing value reducing costs from their own in-house systems to something else.
This seems unfair, Linux took off because it constantly kept getting improved and has more and more developers contributing to it. It didn't only take off because it was cheap, but it kept on improving. Also, the Elitist mindsets of some BSD devs and community go back to harm it. Try contributing to OpenBSD or FreeBSD and compare it with how approachable and relatively easy it is to contribute to Linux is.
Also, it's the fault of BSD's to not adopt or change to a better License at getting contributions back to its mainstream.
I also have major objections to calling anything more secure. No software is secure, each one of them has bugs. Some are discovered because more and more people use it. It's not like BSDs never had any CVEs ever.
Re: Linus Torvalds on aliasing
#56Earlier quoted context omitted.
Another question is would Linux become what it's become if everyone would really have just forked it?
Another question is would Linux become what it's become if only nice polite guys were allowed to code it?
Re: Linus Torvalds on aliasing
#57Earlier quoted context omitted.
Thanks AT&T suit and the MIT licensing, lots of companies use BSD derived OSes without giving anything back. Linux only took off thanks to SGI, IBM, HP, Cray seeing value reducing costs from their own in-house systems to something else.
Agree with your points about the suit and Licensing. > Linux only took off thanks to SGI, IBM, HP, Cray seeing value reducing costs from their own in-house systems to something else. This seems unfair, Linux took off because it constantly kept getting improved and has more and more developers contributing to it. It didn't only take off because it was cheap, but it kept on improving. Also, the Elitist mindsets of some…
It would be just another BSD or Minix if it would be only university students and weekend coders working on it, and we would all keep using Solaris, Aix, HP-UX, Tru64, Ultrix....
As for security issues, it helps that Linus is against disclosing security bugs as such.
Re: Linus Torvalds on aliasing
#58Make this construct legal behavior without making it 10x slower than clang/gcc are today: void wat(uint16_t *x, uint16_t *y) { *x = *y; } uint64_t a[100] = { 0 }; wat((uint16_t *)&a[0], (uint16_t *)(((char *)&a[0]) + 1)); When you think you've figured that one out, try this one: uint16_t heh = 0xFFFF; extern uint16_t doesAnything(uint16_t *, uint16_t *); void wat(uint16_t *x, uint16_t *y) { *x = *y + doesAnything(&he…
Re: Linus Torvalds on aliasing
#59Earlier quoted context omitted.
Oh, that's cute. The mere fact that you say that makes it clear you have no idea who Trump is.
A celebrity who speaks with a highly authoritative voice whether they have any idea what they're talking about or not. Sounds about right.
Re: Linus Torvalds on aliasing
#60Doesn't C have something better than that type punning via union to achieve the same effect? I understand Linus reasoning, but still it's an ugly hack.