logoalt Hacker News

msdz • today at 2:49 PM • 3 replies • view on HN

(Not sure if this could be a genuine remark or is more of a joke, but)

Why not vibecode a Go -> WASM cross-compiler, then?


Replies

AbuAssar • today at 2:53 PM

Go needs a garbage collector while rust doesn’t.

➕ show 2 replies
ZiiS • today at 3:07 PM

You already can run the Go tsc in WASM using mature tools; but it further amplifies the memory and performance difference between the Rust version (which maps more cleanly onto WASM's design).

Tadpole9181 • today at 3:12 PM

1. Porting typescript is made easier by the enormous test suite they can copy for verification.

2. They're doing this for workers, so with a systems-level language, there's a much higher potential for CPU and memory savings (an order of magnitude on this first pass, apparently). Driving their compute costs down is very revenue-efficient at this scale.

➕ show 1 reply