TScert: A Sound Core for TypeScript

github.com

25 points by bpierre 3 days ago


gavinray - 2 days ago

  > Acceptance proves, of the function's translation into the calculus, that for inputs and a heap meeting their declared types it does not get stuck and does not return a value outside its result type.
TypeScript's type-checker already proves the latter bit, no?
SSchick - 2 days ago

I'd like examples/cases this catches that aren't handled by the existing compiler.

cristianioc - 14 hours ago

[flagged]

conartist6 - 2 days ago

There's there is this little, really piddlingly small problem that TS isn't a sound language. Its type system, for convenience, pretends JS works in ways that are not how JS ACTUALLY works

You can of course slap a formal solver in without knowing that, which is evidently what this person did