Better HN
topnewbestaskshowjobs
Log inSign up

dependenttypes

1,649 karma · joined Jan 1, 2019 (7y ago) · 1,251 submissions

Submissions

comment 6y ago · link · parent

I do not get it. HM lets you do things like f x = fold g x without writing the types, how is that not easy mode compared to C or Java for example?

comment 6y ago · link · parent

What do you mean by local type inference? Things like let? If so even languages without HM like Agda allow that. HM type inference is specifically for finding the type of the arguments of functions.

comment 6y ago · link · parent

Would you support the return of Armenians and Greeks to Turkey along with their historical land being given to them?

394.

Turkish Court Clears Way for Hagia Sophia to Be Used as a Mosque Again(nytimes.com ↗)

11 points · by dependenttypes · 6y ago · 1 comment

comment 6y ago · link · parent

DFAs are used on all kind of things, including on protocol design and implementation.

comment 6y ago · link · parent

Apologies, I meant for 0 * inf = 0. Since in n * inf n can be 0 the result should be able to be 0.

comment 6y ago · link · parent

What you are saying might make sense in regular programming languages like go/rust/etc but it does not make sense in type theory. Rather the reason that n / 0 = 0 makes sense in type theory is that you can simply define types such as

    (n : Nat) -> (m : Nat) -> Nonzero m -> n / m * m = n
as in you do not need to make your laws hold true for every possible input of / which is why it does not break regular mathematics.

comment 6y ago · link · parent

> n * inf == inf

I would expert this to be 0 actually.

comment 6y ago · link · parent

You can still do

    data TC x where
      DC :: Ord x => x -> TC x

comment 6y ago · link · parent

Just like Stallman except 12 years later.

comment 6y ago · link · parent

> this feature could spawn a whole new class of decentralised and harder to censor web hosting

How so?

comment 6y ago · link · parent

Was anything similar supported on firefox on windows and if so when was it implemented?

comment 6y ago · link · parent

Leaking the footage to the buyer as in the link is the same as making it public.

comment 6y ago · link · parent

Yes, really. There have been countless cases where the police "accidently" "lost" footage critical to a case.

comment 6y ago · link · parent

The policemen can talk about what they saw, the jury can talk about what they saw, the violation of privacy happens the moment that the police walk into your house. If something is not private enough for a group of random people to review then it is not private enough for the wider public either.

> By this logic ...

No, not really. The point of this is to establish a form of full disclosure - this is also my position about disclosing vulnerabilities. It should be public and uncensored so that the public knows about the full extend of data leakage and can act accordingly. I do not see how what you said follows from what I said.

> while 'not on duty'

They can just use normal cameras then.

comment 6y ago · link · parent

I disagree, ethically it is not only fully appropriate but also mandatory to post everything that said cameras contain.

comment 6y ago · link · parent

You could replace both with ublock origin.

comment 6y ago · link · parent

> the PGP word list covers just 2 bits per word

huh? no, it covers 8 bits per word, just a bit less than yours (6 vs 8 words per 64 bits)

comment 6y ago · link · parent

I do not get this. You would run a blocker anyway, the tracking protection is just a half-assed measure for these not bothering to install such an addon.

comment 6y ago · link · parent

> Judges can't just decide to have random people sterilized

They can if someone petitions for it.

> The mother petitioned the court to have her minor daughter sterilized

And I can petition to have you sterilized. If the judge accepts it you will not be able to hold him responsible. He does not need to listen to you nor do you need to know about it.

> The general rule is that judges can't be held personally liable for mistakes they make when acting in their official capacity as judges.

Meanwhile doctors, drivers, etc can be held personally liable for mistakes they make while working.

comment 6y ago · link · parent

All branches actually. You do not see politicians nor police officers often charged with the crimes that they commuted.

comment 6y ago · link · parent

Not sure if this is relevant to this but I would like to remind you that a US judge can order to you be sterilized without your knowledge and you can do nothing about it nor can anything be done to the judge.

https://en.wikipedia.org/wiki/Stump_v._Sparkman

https://en.wikipedia.org/wiki/Buck_v._Bell

comment 6y ago · link · parent

I do not get it. How are black, white, and western offensive? https://github.com/e-neuman/madhash/blob/master/offensive.tx...

Anyway, this is kinda similar to https://en.wikipedia.org/wiki/PGP_word_list

comment 6y ago · link · parent

Stallman

comment 6y ago · link · parent

There is also https://notabug.io/ for anyone looking into decentralized reddit alternatives.

comment 6y ago · link · parent

It is debatable if it is a crime (at least in the US - there were cases that said that upskirt photos, even of children, are protected by the 1st amendment) but even if it is then it is an instance of a victimless one.

comment 6y ago · link · parent

The funny thing is that the OK symbol actually became a "white power" (whether ironic or serious) symbol just because of the media.

comment 6y ago · link · parent

> but fearing saying the wrong thing

Indeed, fear itself is not mob justice, rather, the actions of the mod itself is mob justice.

> emotionally raw time ...

This was a thing before the riots too. The Stallman case happened last year for example.

> Downvotes are expected from those ignorant of history ;)

I do not think that anyone sane is doubting the historical mob justice against certain groups. It is just that just as these instances of mobbing were wrong so are the modern ones. (plus I believe that some of the people downvoting do so due to how us-centric this comment is)

comment 6y ago · link · parent

> If you question the evidence or whether shaming someone as punishment is an appropriate response you're instantly vilified.

I can kinda understand the rest but I never understood this one. It feels like an attack against critical thinking and reason.

comment 6y ago · link · parent

a lot of services only accept emails from "reputable" servers (gmail, yahoo, etc)
1
131415
42