9,664 karma · joined Jun 14, 2010 (16y ago) · 1,504 submissions
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
This depends on the target audience though. Some people seem unable to be convinced by hard evidence and reason. If you’re able to pick your audience — which is the case for content creators and politicians — you will always be able to address those people.
In most professional settings, you’re more dependent on the goodwill of someone specific, and I think there the strategy is less effective.
comment 5y ago · link · parent
Out of curiosity, since I expect to give a short Rust introduction in the near future, what was your language background when learning Rust? How familiar were you with C-style pointers and/or C++-style references?
comment 5y ago · link · parent
For anyone who’s interested:
In Rust, you tend to do a lot of pattern matching and destructuring. But you also often only have a reference to your data, because copies can be expensive.
Combining pattern matching and references was always possible, but confusing: you had to place lots of “ref” annotations in various places, which I never got right on the first try. But now, you can magically destructure e.g. a reference to a tuple into a tuple of references. You don’t have to think about it, it simply works. Combined with Rust’s algebraic types, this allows you to write very elegant, almost fp-like code that’s also zero copy.
comment 5y ago · link · parent
I wanted to sync my personal files between three computers, two desktops and a notebook, which don't always see each other. At first, this worked great. Obviously, there were conflicts when I accidentally edited something in two places without syncing up. What I didn't figure out was how to permanently resolve those. I ran into endless cycles were I had a conflict between two systems, resolved that, but the third one hadn't seen the conflict resolution, which produced another conflict, which I resolved, which the first system hadn't seen yet, ad infinitum. At least, that's what it looked like. Among other errors, files long since deleted on all systems would still show up as conflicts.
To be fair, I didn't actually lose any data, and it's very possible I did something wrong that would be obvious to other people. But to me, it wasn't at all clear what and why, which scared me enough to move away from this setup. I don't want to take a lot of chances with my data.
comment 5y ago · link · parent
comment 5y ago · link · parent
That's a silly dichotomy. We don't even want films to look completely realistic, that's why CGI exists in the first place. Imagine that you ran this over something like an Avengers movie, or even better, Blade Runner 2049. The AI would remove all the stylized/unrealistic details, and someone here would claim that this is clearly an improvement, and any criticism must come from luddites!
comment 5y ago · link · parent
Of course that's not a logical inevitability, things can change with more understanding. Your link actually makes me very happy, I hadn't seen this. Let's hope that this works out, and becomes a model that more OSS project can follow.
comment 5y ago · link · parent
In a functioning software company, the managers recognize this skill difference and simply order the developers to implement what the designers suggest. They grumpily do. (It’s obviously not always so stereotypical. I’m exaggerating to make a point.)
In a typical OSS project, no one can give orders. The programmers ignore any good design suggestions because they don’t recognize those, and implement their own crappy ideas instead. Sometimes while arrogantly dunking on the designer who tried to make a contribution. Consequently, UX quality is abysmal, and anyone who could fix that is driven away. I don’t see a solution to this.
comment 5y ago · link · parent
Edit: I suggest that as a necessary condition for something to be assembly,
disassemble(assemble(x)) = x,
modulo comments and label names.
comment 5y ago · link · parent
comment 5y ago · link · parent
Also, because the .NET GC churns through a lot of memory, statistically almost every problem on the C++ turned up on the C# side first, sometimes with very confusing effects. For example, .NET has a compacting GC, so an object can get corrupted and then randomly moved somewhere else. We didn't have that kind of problem often, but when we did, it was pure hell to debug.
comment 5y ago · link · parent
Can an outsider with no knowledge of the field make a chance discovery? It's theoretically possible, and we might want to support undirected experimentation for the one in a billion chance that something might work. But we should take those probabilities into account when allocating our collective resources.
comment 5y ago · link · parent
As far as I understand, they don’t get that much more damages from larger cases, so they target masses of small fish instead. Individual ebay sellers, small private clubs (which are ingrained in the German culture) and the like.
comment 5y ago · link · parent
To show why, consider two alternative languages.
“Weak Rust”: an equally safe Rust with a weaker type system. It might not distinguish & and &mut, but it would still need those checks, because you might use those shared references to break a data structure invariant. It would have to detect such unsafe usage at runtime and raise the equivalent of Java’s ConcurrentModificationException.
“Unsafe Rust”: a less safe Rust with an equally strong type system. It wouldn’t need to do those checks. In fact, that’s basically C++.
comment 5y ago · link · parent
As hinted at in the article, nothing prevents me from spawning a global_nursery at the top of my entry point and making that visible everywhere. I can still use this global_nursery (or any other higher-level one) to break resource cleanup.
I do find the argument compelling. But Python is simply too powerful for this abstraction to work perfectly, you’d need further restrictions. Maybe something like linear types (or Rust’s borrow checker) to make sure local state doesn’t escape into global nurseries?
comment 5y ago · link · parent
comment 5y ago · link · parent
C has this issue as well, but Rust's compiler/borrow checker is particularly strong at this kind of analysis, so it's potentially bitten even harder.
comment 5y ago · link · parent