Earlier quoted context omitted.
> It is actually insane how people is still unconvinced about sum types. Oh don't even get me started on this but I agree sooooo much. > No, more people should be using memory managed languages like Java and Golang. Well, I use both Golang and Rust depending on the need. We can have both, it's not an either-or.
I'm feeling my lack of academic training here, but I needed to make sure. When you say sum types, are you referring to enums, or is it a broader concept than that? The Wikipedia article was quite archaic but seemed to support my initial understanding that you're talking about enums. Are you talking about enums?
"No way to prevent this" say users of only language where this regularly happens
201–210 of 342 posts
Re: "No way to prevent this" say users of only language where this regularly happens
#202Re: "No way to prevent this" say users of only language where this regularly happens
#203Earlier quoted context omitted.
It's possible to write systematically safe code in C, no need to change language. People really just don't want to do it.
Maybe it is but the last several years of periodic (and quite embarrassing) CVEs suggest otherwise.
Re: "No way to prevent this" say users of only language where this regularly happens
#204Earlier quoted context omitted.
> The issue I have with this narcisstic fatigue (similar to the author's point I assume) is that there is no reflection when they fuck up a codebase. Forgive my bluntness, but do you even know any C programmers? The ones I know are not at all a homogenous group (there isn't even anything resembling a "C community" - and IMHO that's a good thing btw). > The best code is the code that is safe and easy to read. These tw…
> C code is unsafe, but typically easy to read Are you joking?
Re: "No way to prevent this" say users of only language where this regularly happens
#205Earlier quoted context omitted.
[flagged]
Well, I'm glad that you volunteered to go live in Soviet Russia or Fascist Germany, or a disarmed Native American tribe. Disarming population leads to tyranny without consequences.
Re: "No way to prevent this" say users of only language where this regularly happens
#206Earlier quoted context omitted.
[flagged]
Well, I'm glad that you volunteered to go live in Soviet Russia or Fascist Germany, or a disarmed Native American tribe. Disarming population leads to tyranny without consequences.
Re: "No way to prevent this" say users of only language where this regularly happens
#207Earlier quoted context omitted.
I have a longer nuanced post to write out at some point about my feelings here, but here's the cliff's notes: We should not be developing new projects in C, and we should make it politically hard to make new projects written in C in distribution repositories. C is going to stay around for a long time and that's okay, but there are so many inherent problems of its design and implementation that make it unsuited for un…
> We should not be developing new projects in C I would give at least embedded development a pass, since you rarely do have a choice there
Re: "No way to prevent this" say users of only language where this regularly happens
#208Earlier quoted context omitted.
Well, I'm glad that you volunteered to go live in Soviet Russia or Fascist Germany, or a disarmed Native American tribe. Disarming population leads to tyranny without consequences.
Most of the free democratic western world does not have a lax gun culture like the US has and yet there's no tyranny. Weird.
I do not like powerful guns in the hands of the population and I love the idea of a peaceful civilization without the need for violence, but you're living in a relatively short peaceful historic phase, which is just now starting to take a turn for worse again.
Re: "No way to prevent this" say users of only language where this regularly happens
#209Earlier quoted context omitted.
It’s a cult, but you don’t have to join the cult. I use Rust both privately and more and more frequently professionally and I don’t really notice the cult community outside of smiling at it once in a while when it blows up on HN. We’re mostly adopting rust to replace our C, to protect us from ourselves. It’s just so much easier to hand off these sort of projects to developers who mainly work with things like Java or…
Mostly agreed with your comment though I still have to remark that every community has zealots and it's mystifying to me why are people so annoyed by Rust's. So it's hard to agree that "Rust is a cult". As you said, it's a pragmatic but also kinda niche language. I don't reach for it unless I can't do the job with others, easier and quicker to work with languages.
The "religious zeal" was also an important reason why I switched back to C from C++ and why I don't have much interest in Rust. I can't quite stand the "holier than thou" attitude in.parts of those communities.
Re: "No way to prevent this" say users of only language where this regularly happens
#210Earlier quoted context omitted.
I program MCUs as a hobby. I wish I could use something better than C. Even C++ with RAII would be better. But somehow, even C++ support is spotty, with unsupported features, broken debugging, etc. for seemingly no reason. And all device-specific libraries are written in C, so I'd have to write C++ wrappers for every little thing. Send help...
Rust only works for a few popular targets, but if it is just a hobby then Zig might be an option. C interop is pretty seamless, so you don't face the problem of having to reinvent the universe.