News for hackers. Stuff that matters.
Re:TypeScript 7 by hackerbrother on Wednesday July 08, 2026 @04:39PM (#48837136)
Do you think Bun's migration was irresponsible?
Re:TypeScript 7 by ricardobeat on Wednesday July 08, 2026 @04:58PM (#48837325)
Not the op, but this TS migration started long before AI was able to help. It was done slowly and carefully, as a project supporting millions of users should. And the benefits are very clear.

Bun’s port was a vibe coding fever dream that happened from one day to the next, with much looser motive, and yet to be proven reliable.

Re:TypeScript 7 by spartanatreyu on Wednesday July 08, 2026 @07:48PM (#48838983)
> this TS migration started long before AI was able to help

Yes, but that doesn't mean it wasn't also "helped" along by AI.

See:

1. https://github.com/microsoft/typescript-go/pull/1387

2. https://github.com/microsoft/typescript-go/pull/2978

3. https://github.com/microsoft/typescript-go/pull/1138

4. etc...

Copilot is the "user" with the 2nd most commits (and the 15th and 19th too), and that's just what's been tracked in git.

---

The initial port was automated, then devs got in there, then LLMs got in there.

Re:TypeScript 7 by docmars on Wednesday July 08, 2026 @05:39PM (#48837771)
Bun's migration to Rust was nothing more than a marketing stunt to sell more Claude subs under the impression it can perform this kind of work at scale, assuming that most who were convinced by it wouldn't look under the hood at what really took place.

It has its merits as a proof of concept that could eventually be cleaned up and released properly later, but I can't see it any other way.

Too many see it as this miraculous one-shot and are using it as a blueprint to justify more layoffs and buzzword salad in their boisterous LinkedIn announcements about how they're "completely overhauling their strategy" in engineering. Hogwash.

Re:TypeScript 7 by Tadpole9181 on Wednesday July 08, 2026 @06:58PM (#48838497)
Not sure I understand. Bun's changes are merged on the dev branch and available for use, no?

EDIT: Oh, look, blog post on the front page now.

https://bun.com/blog/bun-in-rust

> Bun v1.3.14 was the last version of Bun written in Zig. Bun v1.4.0 will be the first version of Bun written in Rust. It's available in canary now.

So, yes, it seems it was definitely more than a "marketing stunt" and it's broadly available and slated to be the production release soon.

Re:TypeScript 7 by NamlchakKhandro on Wednesday July 08, 2026 @10:03PM (#48840039)
To think it wasn't a marketing stunt is incredibly naive of you or you're intentionally trying to mislead people
Re:TypeScript 7 by jibal on Wednesday July 08, 2026 @10:07PM (#48840073)
Your correspondents are arguing in bad faith and out of ignorance.
Re:TypeScript 7 by pjmlp on Thursday July 09, 2026 @02:09AM (#48841623)
The irony is that the blog post actually points out as pain points the reasons many of us assert languages like Zig are out of place in the 21st century.

A nice collection of heap-use-after-free crash, use-after-free crash, crash and out-of-bounds read, memory leak, double-free crash, race condition crash.

Re:TypeScript 7 by moogly on Thursday July 09, 2026 @08:50AM (#48845063)
A minor version bump? Exciting times we live in.
Re:TypeScript 7 by Tadpole9181 on Thursday July 09, 2026 @10:53AM (#48846913)
What exactly is your complaint? It doesn't make any breaking changes. That's how semantic versioning works.
Re:TypeScript 7 by andai on Thursday July 09, 2026 @02:10PM (#48850143)
Bun is infrastructure. Why would I want my infrastructure to be unstable? (By the way, 10,000 unsafe blocks last I checked, though the number is going down somewhat.)
Re:TypeScript 7 by Tadpole9181 on Friday July 10, 2026 @02:23AM (#48856420)
I've never used bun on production for this very reason. But nevertheless, tens of thousands of people and businesses do.

And I'm not sure how you're responding to my comment. The parent said "this is a marketing stunt" derogatorily, as if it's slop that doesn't work. This is already the canary build, it's more stable than the current stable, and is actively in production products in wide use.

The parent is objectively wrong, whether or not I personally use Bun.

Re:TypeScript 7 by golergka on Wednesday July 08, 2026 @11:37PM (#48840696)
Marketing could of course be one of the main motivations, but it's not a "stunt". More like a marketing achievement, I guess? Stunt implies smoke and mirrors, and bun rewrite is quite real.
Re:TypeScript 7 by jorisw on Thursday July 09, 2026 @04:16AM (#48842561)
Also it cost $165K in tokens
Re:TypeScript 7 by Cthulhu_ on Thursday July 09, 2026 @07:24AM (#48844124)
Probably cheaper than doing it by hand, however, that's the short term "port x to y" cost, the longer term cost (or benefit) is a lot harder to calculate.
Re:TypeScript 7 by mindwok on Wednesday July 08, 2026 @05:38PM (#48837760)
I don't think irresponsible is the right word, but it has drastically reduced Bun's appeal. All the tools we use have a brand to them, and Bun basically changed their brand overnight to "reckless" in my eyes.
Re:TypeScript 7 by jitl on Wednesday July 08, 2026 @09:33PM (#48839824)
bun has never been fit for production, at least not for load bearing business apps. it’s been haunted by segfault bug reports since the early days, and i personally hit at least one a week when im doing lots of bun stuff. im excited for bun with less segfaults
Re:TypeScript 7 by brandensilva on Thursday July 09, 2026 @12:50AM (#48841129)
So reckless but needed.
Re:TypeScript 7 by bastawhiz on Wednesday July 08, 2026 @05:19PM (#48837581)
It's unknowable, because the PR is unreviewable. The Bun migration PR is larger than any model ever made can fit into context. You just have to pray that test coverage is sufficient to catch all of the possible errors, which it almost certainly isn't.
Re:TypeScript 7 by jitl on Wednesday July 08, 2026 @09:34PM (#48839828)
yeah but, the existing code was also full of bugs, so isn’t it all a wash in the end?
Re:TypeScript 7 by bastawhiz on Wednesday July 08, 2026 @09:42PM (#48839894)
The initial state has no bearing on whether the process was responsible or not. That's measuring along a different axis. If the bun rewrite lands and it breaks someone's app, that's bad no matter whether there's more or fewer bugs in the final state. The important metric in a rewrite of software that's used in production is stability.
Re:TypeScript 7 by vlovich123 on Thursday July 09, 2026 @01:15AM (#48841266)
Re:TypeScript 7 by bastawhiz on Thursday July 09, 2026 @09:56AM (#48845910)
It's really not even close to being the same. In the best case, a bug means your app crashes on the new version. In the worst case, something more insidious happens like opening a security vulnerability (say, TLS isn't handled correctly or HTTP headers are mishandled in a way that allows SSRF or request smuggling) or a previously linear time operation is accidentally quadratic (leading to DoS).
Re:TypeScript 7 by vlovich123 on Thursday July 09, 2026 @10:05AM (#48846085)
You can apply the same FUD to the old version. Your argument basically is “all change brings risk” which is true but doesn’t add any useful insight. It’s always easy to complain and warn about change causing problems while ignoring the problems of the status quo. The “everything is fine” meme in action.
Re:TypeScript 7 by bastawhiz on Thursday July 09, 2026 @12:48PM (#48848835)
Sure, all change brings risk. But this is change where:

1. The change isn't made by a human.

2. The change wasn't fully reviewed by humans or machines. It's not currently possible for a machine to review the whole thing as one.

3. It's a full rewrite. This isn't a ten thousand line change, it's multiple orders of magnitude more than that.

You're literally making the argument that all risk of any size from any change of any size is equivalent, so just don't worry about it. If you relied on this software before, good luck convincing yourself it's fine to rely on this software now: it's literally not the same software anymore.

Re:TypeScript 7 by vlovich123 on Thursday July 09, 2026 @04:36PM (#48852027)
No I’m not making that argument, you’re the one making that claim as if it’s the only alternative to your position.

My position is more nuanced. A) what does the test coverage look like B) how is the deployment managed.

I suspect B is going to be my biggest issue - normally you’d deploy this slowly over time to monitor problems and whatnot. But ultimately the real test is seeing how it actually performs in the wild and kinds of problems people report. But you can always keep using the zig version if you wanted. So ultimately it’s a lot of consternation over a nothing burger. You can laugh at them if they screw up the release, but it’s a bold attempt at trying something legit. It took Microsoft 2 years of many engineer hours migrating typescript to Go. If it takes significantly less calendar time and human time, you could reasonably even evaluate what a Rust based typescript looks like vs Go if you wanted to for an order of magnitude cheaper.

Re:TypeScript 7 by replygirl on Wednesday July 08, 2026 @11:40PM (#48840711)
it's impossible to say, as v1.4 is in development and there has been no migration
Re:TypeScript 7 by phplovesong on Thursday July 09, 2026 @02:45AM (#48841851)
Its was basically "hey claude, rewrite this"
Re:TypeScript 7 by sdevonoes on Thursday July 09, 2026 @06:39PM (#48853346)
I would say it was a joke. Cannot take it seriously