News for hackers. Stuff that matters.
Re:Porffor: A from-scratch ahead-of-time JS engine by pjmlp on Tuesday July 30, 2024 @05:11PM (#41114177)
Such Typescript already exists, Static Typescript,

https://makecode.com/language

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

Re:Porffor: A from-scratch ahead-of-time JS engine by mananaysiempre on Wednesday July 31, 2024 @06:31AM (#41117888)
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-...