News for hackers. Stuff that matters.
Re:Perry Compiles TypeScript directly to executables using S... by thayne on Saturday May 30, 2026 @02:49AM (#48333374)
> The hardest parts were numbers (TS has no ints or shorts)

The easy way to handle that would be to just treat "number" as 64-bit float, since that is semantically how Javascript defines them. But that can hurt performance.

Another option is to define your own integer types

Re:Perry Compiles TypeScript directly to executables using S... by jeswin on Saturday May 30, 2026 @02:56AM (#48333422)
> Another option is to define your own integer types

This is what I did. Most int usage is inferred, but if they had to define it explicitly, I make them import { int } from "@tsonic/core/types.js";