I care intensely about how long a new shell session takes to start, and I encouraged people to have an agent optimize their shell configuration.
I explored compiling the Vercel CLI’s TypeScript into a native binary with scriptc, and found a side-by-side comparison of the current TypeScript CLI and a performance-oriented alternative useful even while the work was still early. The quoted post describes readable TypeScript translated by GLM 5.2 Fast, use of Node APIs, and a fully static result without embedded V8 or QuickJS.
I said that, although the work was still early, “it served me really well to do a side-by-side comparison” of the current TypeScript CLI and what might be achieved performance-wise.
I reported a resulting native binary size of 1.28mb.
I reported mean startup overhead of 1.5ms.
I reported mean compilation time of 2.94s.
- The quoted result said it uses
node:https,node:fs,node:path,node:os, andnode:crypto; the candidate line describes these together as “𝚗𝚘𝚍𝚎:𝚑𝚝𝚝𝚙𝚜, 𝚗𝚘𝚍𝚎:𝚏𝚜, 𝚗𝚘𝚍𝚎:𝚙𝚊𝚝𝚑, 𝚗𝚘𝚍𝚎:𝚘𝚜, 𝚗𝚘𝚍𝚎:𝚌𝚛𝚢𝚙𝚝𝚘”.
The quoted post describes the code as “Highly readable TypeScript” translated by GLM 5.2 Fast.
The quoted post says the result “Deploys like a charm!” and describes it as having no embedded v8 or QuickJS and being fully static.
I shared the comparison link https://t.co/pURW9RrxBS.
I said, “I'm really neurotic about the startup time of a new shell session.”
I credited Opus 5.5 with finding “a lot of really great optimizations other models missed.”
My recommendation was: “Tell your agent to optimize .𝚣𝚜𝚑𝚛𝚌 and friends”.