Better HN
topnewbestaskshowjobs
Log inSign up

flupe

51 karma · joined Sep 25, 2018 (8y ago) · 11 submissions

Submissions

comment 1y ago · link · parent

A little blog post on how, sometimes, a little bit of dependent types can make your life easier. For practical things.

comment 3y ago · link · parent

Both your examples (is my number prime, are my XML nodes unique) are easily expressed in a dependently-typed language.

Dependent type checkers may be hard to implement, but the typing rules are fairly simple, and people have been using this correct by construction philosophy using dependently-typed languages for a while now.

There's nothing delusional about that.

comment 3y ago · link · parent

I love the idea, although it doesn't seem to perform very smoothly, even on simple examples. A related project is Penrose [^1], except the latter isn't interactive.

[^1]: https://penrose.cs.cmu.edu/

comment 3y ago · link · parent

OP here! I just found out about about this technique last week and it looks quite important for any EDSL designer out here. The post is archived here, in case my site goes down: https://web.archive.org/web/20221212080641/https://acataleps...

5.

Overloading the Lambda Abstraction in Haskell(acatalepsie.fr ↗)

3 points · by flupe · 3y ago · 1 comment

comment 4y ago · link · parent

The problem is not solved by using unsigned ints though, because it stems from integer overflow. I'm afraid your implementations are, alas, also incorrect.

comment 4y ago · link · parent

Their point was about having to pay to export your data. Afaik Bridge is still to this day only available to paying users. Still, their statement is no longer true since exporting in bulk is permitted for free with the Import-Export app.

comment 4y ago · link · parent

The repository for Proton Mail Bridge (which is open source) claims to also host the source for the Import Export app.

Here: https://github.com/ProtonMail/proton-bridge

Briefly looking at the files and code it's hard to tell whether that is still the case, but it's fair to assume Import-Export would reuse most of the machinery behind Bridge.

comment 4y ago · link · parent

Nowadays they do provide an app (Import-Export) to export all your mail, even for free tier accounts, so it's quite easy to move away.

See: https://proton.me/support/export-emails-import-export-app

comment 4y ago · link · parent

Absolutely perplexed by the other answers that think CSS grid is a hammer for every nail. In your example without a table, you can just drop `display grid` and set `div {min-height: 33vh}`.