Hacker News Viewer

Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

by maxloh on 7/26/2026, 10:46:10 PM

https://github.com/vercel-labs/scriptc

Comments

by: acmnrs

Porforr&lt;<a href="https:&#x2F;&#x2F;porffor.dev" rel="nofollow">https:&#x2F;&#x2F;porffor.dev</a>&gt; has been working towards the same goal for a while. The creator, CanadaHonk&lt;<a href="https:&#x2F;&#x2F;honk.foo" rel="nofollow">https:&#x2F;&#x2F;honk.foo</a>&gt;, is extremely talented and the project still only passes ~68% of Test262. I&#x27;m more than a little suspicious of how Vercel has made so much progress so fast, unless I&#x27;m misunderstanding the scope of this project.

7/27/2026, 2:34:14 AM


by: sheept

One of the strengths of TypeScript besides its expressiveness is that it&#x27;s compatible with the massive npm ecosystem. Most packages only ship untyped JavaScript with type declarations defining the interface,[0] so realistically you&#x27;d still need a JavaScript engine if you use any packages.<p>But if you&#x27;re starting from scratch and know you won&#x27;t be using any npm packages, you might as well use AssemblyScript.[2]<p>[0]: Publishing packages in TypeScript is explicitly discouraged by Node[1]. TypeScript isn&#x27;t backwards compatible even in minor releases, and its compiler settings aren&#x27;t portable for packages.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;nodejs&#x2F;node&#x2F;blob&#x2F;main&#x2F;doc&#x2F;api&#x2F;typescript.md#type-stripping-in-dependencies" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nodejs&#x2F;node&#x2F;blob&#x2F;main&#x2F;doc&#x2F;api&#x2F;typescript....</a><p>[2]: <a href="https:&#x2F;&#x2F;www.assemblyscript.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.assemblyscript.org&#x2F;</a>

7/27/2026, 2:50:14 AM


by: hakcermani

&gt; macOS arm64 is the primary platform; Linux and Windows binaries build by cross-compilation<p>wish it was the other way around

7/27/2026, 4:14:15 AM


by: satvikpendem

A lot of people are trying this now with AI, a native TypeScript compiler, for example <a href="https:&#x2F;&#x2F;github.com&#x2F;PerryTS&#x2F;pry" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;PerryTS&#x2F;pry</a>. It&#x27;s a compelling value proposition, TypeScript is already well typed and barring a few cases it can be turned into machine code without a JS runtime.

7/27/2026, 2:28:13 AM


by: chilipepperhott

It&#x27;s difficult to ignore how the README is filled with Claudisms.

7/27/2026, 2:56:17 AM


by: aabhay

178kb?! What are you putting in there, a JVM?

7/27/2026, 2:22:00 AM


by: xiaodai

how can you compile it if javascript is a valid subset of typescript? confused.

7/27/2026, 3:11:35 AM


by:

7/27/2026, 3:16:45 AM


by: casper14

I like the idea.

7/27/2026, 2:40:01 AM