Skip to content

Conversation

@Blaisorblade
Copy link
Contributor

This is just to show a snapshot of #5558 before the rebase; some excluded bits seem still useful.

Blaisorblade and others added 9 commits December 2, 2018 17:40
I had a TypeError crash in refchecks after screwing up a typeclass encoding in a particularly bad way.
This commit reports an error instead.
A TermRef is stable if its underlying type is stable. Realizability should
behave the same way.
Part 1 of 9125f58.
I wrote this because I feared (incorrectly) exponential slowdowns in
realizability checking for this code. But debugging suggests that the
complexity of realizability checking is constant in the size of these
expressions (even after I disable caching of `Stable`).

Beware 1: these expressions almost smash the stack by sheer size.

Beware 2: this fails with `-Yno-deep-subtypes`, but simply because the checking
heuristics assumes people don't try to do this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants