frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://github.com/vercel-labs/scriptc
39•maxloh•4h ago

Comments

aabhay•54m ago
178kb?! What are you putting in there, a JVM?
satvikpendem•48m ago
A lot of people are trying this now with AI, a native TypeScript compiler, for example https://github.com/PerryTS/pry. It'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.
acmnrs•42m ago
Porforr<https://porffor.dev> has been working towards the same goal for a while. The creator, CanadaHonk<https://honk.foo>, is extremely talented and the project still only passes ~68% of Test262. I'm more than a little suspicious of how Vercel has made so much progress so fast, unless I'm misunderstanding the scope of this project.
simonw•36m ago
> I'm more than a little suspicious of how Vercel has made so much progress so fast

Coding agents. They landed 918,000 lines of code in a single week: https://github.com/vercel-labs/scriptc/graphs/contributors?s...

acmnrs•33m ago
That makes sense. It also seems like this uses a lot more dependencies and tiers of compilation whereas Porforr is trying to do everything from scratch.
pizlonator•15m ago
That explains why:

- the architecture is idiotic.

- they have zero credible perf numbers.

I plan to benchmark it using generally accepted methods.

Porffor makes careful trade offs that make sense and is benchmarked in a way that I can believe.

(Source: I make dynamic languages fast for a living)

bbor•10m ago
Putting aside the whole “team of professionals putting out a product vs solo dev fine tuning their opus” of it all:

Can you clarify what about the architecture is ‘idiotic’? Not trying to catch you or demand a defense, just looking for a vague description. I don’t even know how to start examining the architecture of something like this.

casper14•36m ago
I like the idea.
sheept•26m ago
One of the strengths of TypeScript besides its expressiveness is that it's compatible with the massive npm ecosystem. Most packages only ship untyped JavaScript with type declarations defining the interface,[0] so realistically you'd still need a JavaScript engine if you use any packages.

But if you're starting from scratch and know you won't be using any npm packages, you might as well use AssemblyScript.[2]

[0]: Publishing packages in TypeScript is explicitly discouraged by Node[1]. TypeScript isn't backwards compatible even in minor releases, and its compiler settings aren't portable for packages.

[1]: https://github.com/nodejs/node/blob/main/doc/api/typescript....

[2]: https://www.assemblyscript.org/

simonw•22m ago
> so realistically you'd still need a JavaScript engine if you use any packages.

Looks like Scriptc's solution to that problem is that it can optionally bundle a 620KB quickjs-ng JavaScript engine if you have dependencies that need to be executed that way.

bbor•12m ago
Those are good reasons to publish untyped libraries as a rule, sure. But the contention that those reasons outweigh the value of types kinda boggles the mind, ngl!
chilipepperhott•20m ago
It's difficult to ignore how the README is filled with Claudisms.
simonw•17m ago
Looks like PRs are actively accepted. I just got rid of one of them! https://github.com/vercel-labs/scriptc/commit/c4b68dc6d9c259...
xiaodai•5m ago
how can you compile it if javascript is a valid subset of typescript? confused.

PGSimCity - How PostgreSQL Works

https://nikolays.github.io/PGSimCity/
186•jonbaer•2h ago•26 comments

Show HN: Physically accurate black hole you can put in your room

https://blackhole.plav.in
81•aplavin•3d ago•15 comments

Decker, a platform that builds on the legacy of Hypercard and classic macOS

https://beyondloom.com/decker/
246•tosh•8h ago•60 comments

French firefighters face 'pyrocumulonimbus' for first time

https://www.france24.com/en/live-news/20260726-french-firefighters-face-pyrocumulonimbus-for-firs...
204•saaaaaam•9h ago•119 comments

US citizen charged after GrapheneOS phone wipes during airport search

https://www.techspot.com/news/113236-us-prosecutors-charge-atlanta-man-after-grapheneos-phone.html
285•eecc•4h ago•177 comments

We have proof automation now

https://www.imperialviolet.org/2026/07/26/zstd-lean.html
98•zdw•6h ago•14 comments

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

https://github.com/vercel-labs/scriptc
38•maxloh•4h ago•15 comments

Fonts In Use – Find out where a font is used

https://fontsinuse.com/
28•open_•3h ago•1 comments

Teaching Kids Forth

https://gracefulliberty.com/articles/teaching-kids-forth/
64•rbanffy•5h ago•19 comments

Introduction to Data-Oriented Design [pdf]

https://www.gamedevs.org/uploads/introduction-to-data-oriented-design.pdf
127•tosh•9h ago•38 comments

Htmx 4.0, the first JavaScript library to release exclusively on the Game Boy

https://swag.htmx.org/en-cad/products/htmx-4-the-game
373•rcy•15h ago•117 comments

Simulate cassette tape audio profiles using FFmpeg

https://github.com/AARomanov1985/Audio-Cassette-Simulation
88•xterminal•7h ago•41 comments

Design is compromise

https://stephango.com/design-is-compromise
202•ankitg12•11h ago•76 comments

Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs

https://github.com/gmrandazzo/CheapSecurity
115•zeldone•11h ago•22 comments

How AST-grep Rewrote Tree-sitter in Rust and Made It 30% Faster

https://astgrep.com/blog/tree-sitter-rust-rewrite
84•herrington_d•9h ago•11 comments

Plasma Tunnels Reveal How Dying Satellites Fall to Earth

https://spectrum.ieee.org/space-debris-atmosphere-burn-up
50•marc__1•6h ago•26 comments

How to Write English Prose

https://thelampmagazine.com/blog/how-to-write-english-prose
86•geneticdrifts•9h ago•45 comments

The Usefulness of Useless Knowledge (1939) [pdf]

https://faculty.lsu.edu/kharms/files/flexner_1939.pdf
32•jxmorris12•3d ago•2 comments

Go Analysis Framework: modular static analysis by go team

https://pkg.go.dev/golang.org/x/tools/go/analysis
186•AbuAssar•14h ago•42 comments

History of John Backus's functional programming project [draft]

https://softwarepreservation.computerhistory.org/FP/
15•cwbuilds•2d ago•1 comments

How to Block Some of the Bots

https://nochan.net/b/Internet-Crap/20260606-How-To-Block-Some-Of-The-Bots/
88•Bender•8h ago•98 comments

The relay market powering token resellers and fraud

https://vectoral.com/blog/token-relay-market
164•mlenhard•11h ago•99 comments

I learned PCB design, 3D printing and C just to listen to music

https://pentaton.app/blog/2026-07-12-introducing-pentaton-lp/
186•interfeco•3d ago•35 comments

The New AI Superpowers: Focus and Followthrough

https://www.rickmanelius.com/p/the-new-ai-superpowers-focus-and
160•mooreds•14h ago•47 comments

Kill The Cookie Banner

https://killthecookiebanner.eu/
856•rapnie•15h ago•420 comments

Show HN: Reverse Minesweeper

https://sunflowersgame.com/
160•pompomsheep•14h ago•53 comments

Show HN: Port Zero – how I learned to stop worrying and love PORT=0

https://portzero.net/
12•octopoc•3h ago•4 comments

What's Under Your Feet in New York City?

https://practical.engineering/blog/2026/7/21/whats-under-your-feet-in-new-york-city
168•sohkamyung•4d ago•36 comments

Using sed to make indexes for books (1997)

https://www.pement.org/sed/make_indexes.txt
53•TMWNN•3d ago•9 comments

Some more things about Django I've been enjoying

https://jvns.ca/blog/2026/07/21/more-nice-django-things/
136•surprisetalk•5d ago•84 comments