News for hackers. Stuff that matters.
Re:TScert: A Sound Core for TypeScript by conartist6 on Thursday November 05, 2026 @08:51AM (#50379050)
If you're interested I am happy to offer what I know on the topic but it won't be good news for you.

Basically if you want your project to survive and thrive you're going to have to implement a new programming language that runs using the semantics that Typescript claims to have rather than the semantics it actually has because it's Javascript under the hood.

I mean, if you want to despair, just try to account for the potential behavior Javascript Proxies could introduce in your Lean proofs.

If you do it correctly, Lean should tell you that virtually every Javascript program that has ever been written is possibly wrong, mostly for reasons that have to do with the lies Typescript tells about Javascript

Re:TScert: A Sound Core for TypeScript by bazoom42 on Thursday November 05, 2026 @10:41AM (#50380511)
Can’t the type system reject code which undermines the soundness of the type system?
Re:TScert: A Sound Core for TypeScript by lupodevelop on Thursday November 05, 2026 @11:26AM (#50381102)
I think the docs cover this. They assume on purpose that the program never touches a proxy, so the proof only holds if that's true. To me that's the more interesting thing to argue about, what the proof assumes, not whether the author knows TS is unsound.