1,706 karma · joined Dec 9, 2019 (6y ago) · 623 submissions
comment 5y ago · link · parent
Completely disagree. What will instead matter is purely someone's image and their ability to fool people. Those who will benefit most from this aren't good people affected by smear campaigns, it's bad people who can easily avoid real criticism of actual wrong doings.
Most political scandals I know of are not something inconsequential, but rather due to corrupt or truly immoral behavior, like the recent corruption affair in Austria. Making politicians immune to this seems like a drastic step backwards.
>Well, I mean we coped before we had cameras, right?
Well, yeah, humanity also coped with frequent famines. I'm not sure if going to back to something like that would count as 'adapting' to crop failures.
comment 5y ago · link · parent
Let's take the typical example of "lists of size n". It's either a special inductive type vec A n, or a list l with a proof that length l > 0. The signatures of a head function (using Coq syntax, where this approach is most common) would be:
head_safe1 {A n} : vec A (S n) -> A
head_safe2 {A} : forall (l : list A), length l > 0 -> A.
In both cases you match on the list and prove the nil case to be impossible.One benefit is that one can easily stack predicates. Need a list of length n that is also sorted? Just add an argument of type Sorted l.
Programs that are 'truly' dependently typed have their benefits, but they definitely can feel more rigid.
comment 5y ago · link · parent
Sure, but what would you do if e.g. the importance string isn't fixed? Well, you might write a function that takes in the importance string and returns a function that calls the generic function with the dynamic string. That's currying.
comment 5y ago · link · parent
How are you going to enforce the contract? If it's formally verified, the contract is enforced by itself.
Not to mention, I think as a developer accepting a spec that isn't verified is a tough pill to swallow, because any bug no matter the size would mean that you're breaking the contract.
comment 5y ago · link · parent
>The history of these things is overwhelmingly that in the final tally, actual benefits fall far short of break even.
Do you have some source for this?
comment 5y ago · link · parent
Not to mention that for software there's a good chance that this would just supercharge DRM and SaaS.
comment 5y ago · link · parent
That simplicity is also the root cause of an incredible amount of issues. Want to install a program that needs a different library version than is already installed? Well, too bad, guess you'll have to manually patch it (assuming the source code is even available). And there's countless such stories, 'dependency hell' is still an issue to this very day for dynamically linked libraries. Docker and the like didn't come into existence for no reason but because the experience of simple package managers is just not adequate.
Now, dynamic libraries on their own aren't at fault of course. If more complex package managers like Nix were common this wouldn't be an issue, but simplicity 'won', so static linking it is.
comment 5y ago · link · parent
They're directly responding to a comment literally saying that this is done to drive away the homeless and poor so "the rich" don't have to see them.
And maybe homeless people differ depending on location, but where I'm from a good amount of homeless are obviously mentally unwell and alcoholics/on some other drug. Most of them seem peaceful and nice enough, but I've also had pretty negative experiences that range from unpleasant to downright scary. I wouldn't care if I saw a single homeless guy at a McDonalds, but if I knew that this was a location that attracted groups of homeless people (like e.g. some parks are), I would definitely stay clear of it.
comment 5y ago · link · parent
“Are you going to tell me,” said Arthur, “that I shouldn’t have green salad?”
“Well,” said the animal, “I know many vegetables that are very clear on that point. Which is why it was eventually decided to cut through the whole tangled problem and breed an animal that actually wanted to be eaten and was capable of saying so clearly and distinctly. And here I am.”
- Douglas Adams, The Restaurant at the End of the Universe
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
As an example, it's very hard for me to judge what it means for equality to not have a type without an underlying system to go along with it. Since it's still featured as part of types (such as your dom f = A ∧ cod f = B example), you still need a typing rule, but what would that look like? It's at the very least non-obvious to me that this doesn't potentially have some issues.
Or, what does extensionality for types cover that isn't done by subtypes? And should this just be a metatheoretic property, or also something that can be stated inside the system?
Besides that, the current items on the list are of course reasonable enough (though nil strikes me as a regression from option types and paraconsistent logic strikes me as totally unusable in the general case as you'd lose A \/ B, ~A |- B, which is absolutely essential.)