Live data from Hacker News

Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc

twitter.com

311–320 of 754 posts

Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc

#311
post #36

Just a cautionary case of porting to Rust using AI https://blog.katanaquant.com/p/your-llm-doesnt-write-correct...

Also passing tests doesn't mean something works.

Claude code C compiler passed 100% of gcc tests and couldn't even run a hello world...

Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc

#312
post #275

What a time to be alive. So much of the fundamental dynamics of the industry and the job have changed in so little time. Basically over night. Some days I am so excited at how much I can do now. You can build anything you want, in basically no time! 100% of my software dreams can be a reality. Some days I am terrified at what's going to happen to the job market. Suddenly you can get so much with so little. The world…

> The world only needs so much software. Around the time of the dot com crash, there was a decent amount of rhetoric advising students and job seekers against getting into the software industry, because it was getting "too saturated." The thinking was there's just not that much work to go around, especially for the number of people flocking to the field. And the crash just reinforced that narrative. But even as a stu…

> Pretty much any cognitive thing we do manually could be done in software.

Yes, although I suggest being careful with that kind of thinking.

https://www.orwell.ru/library/novels/The_Road_to_Wigan_Pier/...

Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc

#314
Completely unbased, but I don’t want to have to do anything with bun anymore. It’s just a gut feeling, but I don’t trust them and support them.

They fork Zig to utilize LLM rewrites and build something the Zig team clearly disregarded (non-deterministic compiling)

And now like a whiny baby they LLM rewrite to Rust. There is a very real chance that Zig design philosophy got them to the point where they are now by enforcing to make the tough but precise decisions and the Rust rewrite is the start of the downfall.

It’s purely politics-based not technical, but it seems like bun is full on pampered by Claude. So much that I wouldn’t wonder that the next marketing piece of Anthropic is. Claude Mythos rewrote leading 950k LOC JS Runtime to Rust.

Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc

#316
post #111
post #91

Earlier quoted context omitted.

When Microsoft rewrote it in go, there was a comment from one of the leads that they chose it over rust because of the similarity in paradigms (garbage collection, etc), and that using rust would've been more difficult, requiring a lot of "hoop jumping". Now that you've done it... Thoughts?

Is GC useful for a static type checker? Or did they make a new runtime?

The point is that having a GC will affect your data structure and algorithm design, so it’s easier to automatically transform JS or TS to Go than to rust because you’re mostly reducing things down to one problem (translation) rather than multiple intertwined problems.

Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc

#317
post #275

Earlier quoted context omitted.

> The world only needs so much software. Around the time of the dot com crash, there was a decent amount of rhetoric advising students and job seekers against getting into the software industry, because it was getting "too saturated." The thinking was there's just not that much work to go around, especially for the number of people flocking to the field. And the crash just reinforced that narrative. But even as a stu…

> Pretty much any cognitive thing we do manually could be done in software. Yes, although I suggest being careful with that kind of thinking. https://www.orwell.ru/library/novels/The_Road_to_Wigan_Pier/...

Ooh, I hadn't read that one, have put on my list. I couldn't read the page properly because ads keep popping up and making the page jump around... but it seems the linked section was be about displacement of workers? If so, that's always been true of all technology, but that's less a problem with technology and more with the social system it is applied in. I just posted this comment elsewhere that may be relevant: https://news.ycombinator.com/item?id=48078930

Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc

#318
post #267

Earlier quoted context omitted.

This is such a bad faith argument. How long would it take a dev or a team of devs to do this with the same architecture and test suite? A hell of a lot longer than 6 days..

But what is the purpose? When you rewrite a project in another language, it's for engineers to be able to maintain and further develop the project better on some metrics due to advantages of the language. It doesn't hold when LLM does the rewrite, since there is no one who understands the code after that. It's a good demonstration of capabilities, sure, but the result itself makes no sense. We'll have to figure out w…

This is such an insightful comment. It also underscores why these AI companies' marketing efforts are promoting rewrites.

Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc

#319

Earlier quoted context omitted.

It’s disrespectful to immediately jump to adversarial conclusions from a simple desire to refactor and poor netiquette.

The right to be suspicious of the motives of powerful people is infinitely more important than protecting their feelings from being hurt by suspicion.

Powerful people figured out how to make suspicion work for them long ago. You have every right to be unconditionally suspicious, but it’s not a good way of accomplishing any change. Also their feelings are not hurt by what you or I think, they don’t care.

Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc

#320
post #105

Earlier quoted context omitted.

cargo check reported over 16,000 compiler errors when I wrote that message. It could not print a version number or run JavaScript. I didn’t expect it to work this quickly and I also didn’t expect the performance to be as competitive. There’ll be a blog post with more details.

If this experiment ends up resulting in a real migration path, I think that would be completely awesome. Maybe it means we have a chance to revive older projects such as ngspice [0], but with modern affordances and better safety properties. From your post, though, it sounds like Bun may have been a pretty direct rewrite, without too many hard choices along the way. Is that fair? [0] https://ngspice.sourceforge.io/

[deleted]
Post reply on HN