Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Such Typescript already exists, Static Typescript,

https://makecode.com/language

Microsoft's AOT compiler for MakeCode, via C++.



The 2019 paper[1] says: “STS primitive types are treated according to JavaScript semantics. In particulars, all numbers are logically IEEE 64-bit floating point, but 31-bit signed tagged integers are used where possible for performance. Implementation of operators, like addition or comparison, branch on the dynamic types of values to follow JavaScript semantics[.]”

[1]: https://www.microsoft.com/en-us/research/publication/static-...




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: