Better HN
topnewbestaskshowjobs
Log inSign up

isaac21259

554 karma · joined Oct 16, 2018 (8y ago) · 83 submissions

Submissions

1.

Data Types with Negation(bentnib.org ↗)

8 points · by isaac21259 · 3y ago · 1 comment

2.

Teaching GHC to Play Minesweeper(github.com ↗)

1 points · by isaac21259 · 3y ago · discuss

3.

Switching to the meow modal editing system(esrh.me ↗)

2 points · by isaac21259 · 4y ago · discuss

comment 4y ago · link · parent

I was considering this for my programming language but I will most likely not use it because it makes optimisations and garbage collection harder, and the C would not be human readable (just look at the output of the chicken compiler for an example) so there's not a huge benefit. C-- could be an option but it isn't very active or well used.

In terms of relying on tested and supported infrastructure lots of these projects use llvm.

comment 4y ago · link · parent

Exponentials come up quite naturally from differential equations because it's often suprisingly useful to talk about something's rate of change in terms of itself. As far as I know there's no similar connection with tetration.

comment 4y ago · link · parent

To clarify where I live limits are introduced in high school, irrational numbers just much earlier.

comment 4y ago · link · parent

That's a pretty far departure from the original "multiplication is just repeated addition". Regardless, I don't think any student would find it helpful to hear "Multiplying two real numbers is simply taking the limit of a sequence of multiplications between rational numbers that converge to the two real ones". In my country irrational numbers are introduced two or three years before limits so you couldn't teach it in schools effectively either.

comment 4y ago · link · parent

What about irrational numbers? There's no neat way to view multiplication of two irrational numbers as repeated addition. And even if there were a way I don't think it's a useful way to think or teach after the first couple years because it makes obvious things like √2×√2 = 2 seem weird and mysterious.

9.

Profunctor Optics: The Categorical View(golem.ph.utexas.edu ↗)

1 points · by isaac21259 · 4y ago · discuss

10.

How to lie using visual proofs(youtube.com ↗)

4 points · by isaac21259 · 4y ago · discuss

11.

Löb and möb: strange loops in Haskell(github.com ↗)

4 points · by isaac21259 · 4y ago · discuss

12.

Löb's Theorem(ncatlab.org ↗)

2 points · by isaac21259 · 4y ago · discuss

13.

Can one explain schemes to biologists(dam.brown.edu ↗)

1 points · by isaac21259 · 4y ago · discuss

comment 4y ago · link · parent

Dependent type systems don't deal well with non termination. In general you can't prove a program will or won't terminate. The solution is to disallow recursion except through a few eliminators which do recursion in a well founded way that is guaranteed to halt.

The reason they don't work well with recursion is you could have something like: false :: _|_ false = false

Where false is a function we are defining of the uninhabited type.

For more complicated versions stuff like this see Girard's paradox.

15.

(call/cc call/cc) and friends(pavpanchekha.com ↗)

15 points · by isaac21259 · 4y ago · 1 comment

16.

Swift type checking is undecidable(forums.swift.org ↗)

3 points · by isaac21259 · 4y ago · discuss

17.

Surprises in Logic(math.ucr.edu ↗)

51 points · by isaac21259 · 4y ago · 5 comments

18.

Base 2048(github.com ↗)

96 points · by isaac21259 · 4y ago · 39 comments

comment 4y ago · link · parent

The Little Typer by Daniel P. Friedman and David Thrane Christianse. It's basically one long book of examples building on each other to show the semantics of a dependently typed programming language. It inspired me to learn some type theory and made me interested in mathematical logic more generally.

20.

Renormalizing the Mandelbrot Escape(linas.org ↗)

2 points · by isaac21259 · 4y ago · discuss

comment 4y ago · link · parent

Se also: https://tech-blog.capital-match.com/posts/5-the-reverse-stat...

22.

The Tardis Monad(hackage.haskell.org ↗)

45 points · by isaac21259 · 4y ago · 9 comments

comment 4y ago · link · parent

Everyone here has been talking about how blog comments add little value. On many blogs they are right. But John D Cook's blog regularly has interesting comments, some of which he'll make posts addressing later. Maybe it's because he has a bigger blog or maybe it's something else but blog comments are capable of adding a lot of value.

comment 4y ago · link · parent

I was also considering writing some introductory stuff about HoTT but I don't think it's possible to avoid talking about topology, homotopy theory, and category theory in depth like you can with, say Haskell and category theory. This is because the stuff that makes HoTT so cool cannot be separated from it's mathematical foundations. How would you explain truncated types without going fairly deep into the math? Or the circle type? Sure both of these could be explained as instances of higher inductive types but that explanation is missing a lot.

25.

Hexagonal Grids(redblobgames.com ↗)

48 points · by isaac21259 · 4y ago · discuss

comment 4y ago · link · parent

Curious how approachable you think homotopy type theory is to people who think they know better than researchers? Simple type systems would be understandable (Haskell has type systems similar to System F and rust has an affine your system) but if anything being a programmer may add obstacles to understand HoTT since programmers (generally) have never had the opportunity to learn topology or anything else that HoTT builds on. Also not everything in HoTT has a clear computational interpretation, notably the univalence axiom.

That said I encourage everyone who's interested to investigate this but I don't think it's realistic without having a solid foundation in mathematics.

(And I also agree with the sibling comment that HoTT isn't really used as a foundation of mathematics.)

comment 4y ago · link · parent

[1] Is what (I believe) they were talking about. Rather than configuring these in a sane way you just scan configuration barcodes. I didn't see anything on the list that was too dangerous but you could change the maximum input length or allow full ASCII encoding which could be dangerous if the programmers assumed that the barcode reader returns a fixed length string of numbers.

[1] https://cdn.sparkfun.com/assets/b/5/0/e/e/DY_Scan_Setting_Ma...

28.

The Email Servers and Superseeker(oeis.org ↗)

5 points · by isaac21259 · 4y ago · 1 comment

29.

I gave a worksheet that was “critique these bad 'disproofs' on Hacker News”(twitter.com ↗)

6 points · by isaac21259 · 4y ago · discuss

123