Live data from Hacker News

"No way to prevent this" say users of only language where this regularly happens

xeiaso.net

41–50 of 342 posts

Re: "No way to prevent this" say users of only language where this regularly happens

#41

Earlier quoted context omitted.

Simplicity.

This. Learning Rust is like a long series of jousting matches with the compiler.

It's more than that. Even after you learn it, you will struggle a lot with productivity, especially fast iteration and incremental changes and fixes, as Rust forces you to redesign and refactor your code.

Re: "No way to prevent this" say users of only language where this regularly happens

#42
post #22

More broadly: > "No way to prevent $THIS" say users of only language where $THIS regularly happens A weird psychological quirk I've noticed (of myself, and others) is we'll often exhibit a sort of 'programming language xenophobia', where we apathetically accept (or don't even notice) unpleasantries of our language of choice, yet be quite averse to the unpleasantries of other languages. Maybe it's due to sunk cost; ti…

No way to prevent "this", says C++ programmer.

Re: "No way to prevent this" say users of only language where this regularly happens

#44
post #2

The headline is misleadingly focusing on a soundbite out of the full quote. "It's a shame, but what can we do? There really isn't anything we can do to prevent memory safety vulnerabilities from happening if the programmer doesn't want to write their code in a robust manner." -- Some (uncredited?) C programmer. Does C have more footguns as a low level language? Of course. That's part of the freedom of bringing only t…

It's a deliberate echo of the famous Onion headline about America's absolutely disgraceful pretence that it couldn't do anything about all the shootings. https://en.wikipedia.org/wiki/%27No_Way_to_Prevent_This,%27_... > If someone has a choice, a safer more modern language can accommodate less skilled practitioners. This is the usual mistake. It's not a "skill issue". Footguns are a design mistake, they're much more…

[Also writing "skill issue" caused me to immediately think of Gill Issue, the Grand Poo World 3 course with a name that's a pun on skill issue, so for anybody else whose brain works the same way, here's somebody competent beating Gill Issue: https://www.youtube.com/shorts/I6PdLgUGHaw ]

Re: "No way to prevent this" say users of only language where this regularly happens

#45

Maybe C programmers need some more thoughts and prayers at deployment time?

You obviously need to perform the correct rites and pay your homage to the blessed machine spirit or the Omnissiah will not permit your code to compile.

Re: "No way to prevent this" say users of only language where this regularly happens

#46

Needs more furries.

Yeah, was about to note that the link is unexpectedly SFW.

Why? Furries are NSFW because they look cartoonish and "unprofessional"? I don't like them but what a boring workplace would that be.

Re: "No way to prevent this" say users of only language where this regularly happens

#47
post #2

The headline is misleadingly focusing on a soundbite out of the full quote. "It's a shame, but what can we do? There really isn't anything we can do to prevent memory safety vulnerabilities from happening if the programmer doesn't want to write their code in a robust manner." -- Some (uncredited?) C programmer. Does C have more footguns as a low level language? Of course. That's part of the freedom of bringing only t…

What’s missing from Rust? I don’t care if you use C, but don’t pretend like there isn’t another option

If the borrow checker was optional and not baked into the language. If it compiled fast and not slower than c++.

I might try it out if these two requirements were met. I have a mental model between what I write in C and what I can expect the assembly to be.

Or maybe the problem is that we have the same stack for code and data? could that be it?.

Re: "No way to prevent this" say users of only language where this regularly happens

#48
post #22

More broadly: > "No way to prevent $THIS" say users of only language where $THIS regularly happens A weird psychological quirk I've noticed (of myself, and others) is we'll often exhibit a sort of 'programming language xenophobia', where we apathetically accept (or don't even notice) unpleasantries of our language of choice, yet be quite averse to the unpleasantries of other languages. Maybe it's due to sunk cost; ti…

see also https://wiki.c2.com/?BlubParadox

Re: "No way to prevent this" say users of only language where this regularly happens

#49
post #2

The headline is misleadingly focusing on a soundbite out of the full quote. "It's a shame, but what can we do? There really isn't anything we can do to prevent memory safety vulnerabilities from happening if the programmer doesn't want to write their code in a robust manner." -- Some (uncredited?) C programmer. Does C have more footguns as a low level language? Of course. That's part of the freedom of bringing only t…

It's a deliberate echo of the famous Onion headline about America's absolutely disgraceful pretence that it couldn't do anything about all the shootings. https://en.wikipedia.org/wiki/%27No_Way_to_Prevent_This,%27_... > If someone has a choice, a safer more modern language can accommodate less skilled practitioners. This is the usual mistake. It's not a "skill issue". Footguns are a design mistake, they're much more…

One can in fact not do anything about something for which one refuse to even consider the root causes of.

In the case of shootings, one must talk about what may have caused shootings to start noticeably increasing in around the 1970s, to the point where a single year started having as many shootings as all the shootings prior to the 20th century combined.

Fun fact; the first documented school shooting was perpetrated by some Lenape indigenous people, in Pennsylvania in 1764, during which attack they also beat to death all of the students and scalped everyone.

Re: "No way to prevent this" say users of only language where this regularly happens

#50

Earlier quoted context omitted.

What’s missing from Rust? I don’t care if you use C, but don’t pretend like there isn’t another option

Simplicity.

With all the language features I agree.

However, if you reduce the language surface it is possible to have something safe and simple enough (IMHO).

For instance, you can say no async, no custom traits and only {Debug, Display, Eq, PartialEq, ...} are allowed for your structs and generics. From limited personal experience that takes away more than half of the complexity of navigating rust code.

Post reply on HN