13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 6y ago · link · parent
I agree with your point about political issues - the entire tier list, specifically even Rust being tier 2, was political. I saw stupid shit like that too many times at Dropbox.
But it is simply a fact that new projects are being built in Rust, regardless of the political aspects of why that is the case despite it being tier 2. "Forbidden" does not convey the state of things - everything else you've said is agreeable.
comment 6y ago · link · parent
Tier 2 means it requires approval. That is massively different from "forbidden". There is, for example, a Tier 3 list - Java is on there, some other languages, they're discouraged a lot more strongly than Rust though you'll still find them in some parts of the codebase (primarily acquired code from what I recall). Approval is only required for business/ product dev - non product teams can very easily write rust, at least one is currently doing so.
Tier 2 means it has internal library support, such as the communication library. That means there is, at all times, active rust development - and of course this is true, the most critical parts of Dropbox are written in Rust, and they rely on those libraries.
You can also very easily find out about the existing projects being written in Rust. Go ask the rust-lang channel. Last I saw, maybe 6 months ago, Rust was being used for another major component of the product - obviously I'm not commenting publicly on that further.
comment 6y ago · link · parent
1) IDK, start with anyone who says they're a nazi. There are tons of people who are openly fascist, white supremacists. No need to worry about grey lines, plenty of punching to go around. If you really want to push the boundaries, go for people who are openly hateful towards minority groups - it's usually not subtle. Punch away, totally ethical.
2) Up to you, it's your punch.
> Is there a continuum between nazi and non-nazi?
Sure but who cares? There may be a continuum but there's also huge parts of the spectrum that are extremely clear cut. Hitler falls in the continuum of nazis, and it's hardly a grey area simply by virtue of being gradient.
> Also how many punches is being a nazi worth?
IDK, depends on the nazi, and how many punches it takes to accomplish what you set out to do.
> do I become a nazi if I stop punching nazis?
Again, your call. It's really weird to me that you have such a hard time with this. You position this like there's tons of moral ambiguity, but I find it extremely concerning that you have a hard time determining who is and is not a nazi. The people who run around with swastikas and want to kill minority groups? They're the nazis buddy, don't worry about whatever weird grey area you've got concocted. When in doubt, feel free not to punch - it's that easy! When they're definitely a nazi, as so many are, and so obviously so, do your thing!
> To me you are literally the most dangerous person in term of risk of an authoritarian regime.
Weird, to me it's the nazis, since like, they advocate for fascism and genocide. Whereas I just feel it's ethical to punch genocidal fascists. Seems like one of us should be a lot scarier than the other
Anyway, I'm sorry you have such a weak ethical compass that somehow "nazis are bad" is a big deep scary question for you.
P.S. If you think the people punching nazis started the violence, I'd recommend reading up!
comment 6y ago · link · parent
Totally, I wish Rust could express over/underflows better!
> Rust doesn't live up to the safety standards many programmers coming from dynamic languages are used to where over and underflows are checked.
> Rust doesn't live up to the safety standards many programmers coming from dynamic languages are used to where over and underflows are checked.
Yeah, that's possible. Thought it won't lead to unsafety, it is definitely a gotcha.
> Many people in the Rust community appear to be unaware of this. Which is actually a big deal.
Maybe, not sure.
> If safety was my primary concern, I wouldn't choose C++ but I wouldn't choose Rust either.
Really depends on the goals and constraints, of course. I'd be really concerned about using rust where an integer overflow could kill someone. I'd be really happy to use rust where a program crashing is totally acceptable, but exploitability isn't.
comment 6y ago · link · parent
Sometimes. There's a lot more to safety than memory safety, but that's the easiest to define.
Other aspects might be safety against null values, safety against poor error handling, etc. Those are much harder to define.
> Could not the C compiler be given the same thing, with a flag like "strict mode"?
Not really, no. There's a lot of research into proving C code safe, and automation of it, and it's not really feasible for general C codebases. There are tons of static analysis tools that try to get part of the way there, but they can be slow, miss things, and have many false positives.
It would require, at minimum, some seriously ugly annotations. There are papers that demonstrate such annotation based approaches with C. One that I read ended up looking quite a lot like Rust, at which point, you wonder why you wouldn't just write rust.
Not a stupid question at all, by the way.
> Couldn't this be added to the C compiler?
Rust is able to insert those frees because it has lots of information about memory usage at compile time. C doesn't, therefor C can't insert those frees in the general case.
Other issues, cultural ones that is, like "people just disable it" are fair but not the biggest issue imo. But to further emphasize that point there are many runtime mitigation techniques (ASLR, stack cookies), and they get disabled all the time because, and this is the extra sad part, they legitimately find bugs and crash a program that otherwise may have appeared to work, and the fastest "fix" is disabling it.
Re: Effort, totally, yes. But the effort isn't really split. There are tons of people working on safer C/C++ through tools like fuzzing, static analysis, and runtime mitigations.
comment 6y ago · link · parent
The problem with "All bets are off" is it's not meaningful. What does that mean? It's so vague.
Lots of unsafe code is safe. Lots of UB is not exploitable. I can link to a vulnerable crate and not be vulnerable.
Can there be an exploitable bug in rust code? Yeah, sure. But saying "all bets are off" gives the impression of "why even bother if you link to unsafe code", which is absurd. Yeah, we should strive for more safe code, audit unsafe code, be very cautious about using it, but "all bets are off" come on.
comment 6y ago · link · parent
As for an echo chamber, yeah the Rust community downvotes way too much. I find myself upvoting just to counter it.
But the downvoted comments here are legitimately bad. Someone being pedantic about the 70%, and being wrong, and another person calling this propaganda.
comment 6y ago · link · parent
* The claims aren't baseless. We've seen for decades already that memory safe languages have fewer memory safety issues than languages that are not memory safe.
* Asking for hard proof is silly in software. There's tons of research into programming languages and their impact on software projects, across a number of areas, and it's all fairly useless - it's extremely expensive to do right, and impossible to objectively measure.
Common sense isn't propaganda.
comment 6y ago · link · parent
I doubt many people are against the idea of a specialized government role that provides protection services.
What they are against is:
* Thinking we can get that role by reforming existing police systems, given how opposed police systems are to such reform
* That these systems need the absurd budgets of police departments
* That the role requires absurd levels of protection for violent actions
* That the role requires armaments in the majority of cases
Going form police to a role that fits those criteria is going to start with not having police.
comment 6y ago · link · parent
The issue is memory usage, which OS threads take a lot of.
Would userland scheduling be more CPU efficient? Sure, probably in many cases. But I don't think that's the problem with handling many thousands of concurrent requests today.