How is the Bun Rewrite in Rust going?

(lockwood.dev)

301 points | by tomlockwood 5 hours ago ago

214 comments

  • Jarred 2 hours ago ago

    Bun’s Rust rewrite shipped in Claude Code over a month ago and barely anyone noticed. Claude Code is widely used. The Rust rewrite is going well overall.

    In the Bun v1.4 video, I promised a certain number of newly passing Node.js tests were added to force us to improve compatibility, and that number is not true yet. The release is delayed until it is true. The PRs to make it true are up but not merged yet. Most likely next Tuesday we’ll do the release of 1.4.

    • inglor 2 hours ago ago

      Take as long as you need to ensure software quality. A month without a release isn't a big deal and whomever needs a specific feature can offer to contribute or build themselves.

      Node has 4-6 weeks without a meaningful release (other than security stuff) pretty much every December. I think the criticism in the article is unfounded and whomever needed/wanted a release should have asked first instead of writing an "angry" blog post.

      (I'm a Node.js maintainer)

      • tomlockwood an hour ago ago

        Author here: I don't need or want another Bun release or an NPM release or anything like that. Like I very clearly say in the article I just got chatting with a peer about the Bun rewrite and I decided to take a look.

        I'm consistently skeptical about new tech whether it is NoSQL or Blockchain or Serverless. Some of the things I'm skeptical about fail and some succeed.

    • wesselbindt 19 minutes ago ago

      In Dutch there's a saying, "wij van wc eend adviseren wc eend", and it fits perfectly.

      • achenet 11 minutes ago ago

        Frenchman here, I Google Translated that and it says

        "We at WC Duck recommend WC Duck"... I'm left scratching my head, if you'd care to spell out what the saying means for non-Dutch I'd appreciate it :)

        • wesselbindt 8 minutes ago ago

          It was a commercial slogan for a toilet cleaning agent. An English equivalent would be "mr clean recommends you use mr clean". Today, it is used to point out when someone tells you they themselves delivered good work. Anytime you'd use the meme of Obama giving himself a medal, you could use this phrase.

    • dzhar11 an hour ago ago

      Jarred, thank you for working on Bun. Many "vibe coded" :D projects start strong and are later abandoned (like potentially Anthropic C), so I understand why people worry about Bun's future. I hope Bun lasts for many years, like GCC. Bun is fast and great to use.

    • lantry 2 hours ago ago

      Any comment on the costs estimated in the article? especially the buildkite costs?

      • Jarred 2 hours ago ago

        CI has always been expensive for Bun including before the acquisition. We build for [macOS, Linux, FreeBSD, Android, Windows] x [ARM64, x64] and then run tests on multiple Linux distros with multiple shards, multiple macOS versions and Windows for each architecture.

        We recently started cross-compiling all the builds on Linux arm64 and that made it a little faster (I wrote a CLI tool to download the correct macOS headers for cross-compilation). We also have a daily cron job that asks claude to make the slowest tests faster while adding more assertions.

        • JustSkyfall 26 minutes ago ago

          How come Bun uses Buildkite instead of self-hosting the CI infra?

    • egorfine an hour ago ago

      Any chance for 1.3.15 with bugfixes for the rest of us?

      • sroussey 35 minutes ago ago

        Yeah, 1.3.14 has some bad regressions. 1.3.11 is ideal for tests CI. Or canary. For production, I don’t have any advice. There will be no 1.3.15.

    • tomlockwood 2 hours ago ago

      > The Rust rewrite is going well overall.

      I look forward to the postmortem!

      • TheRealPomax 2 hours ago ago

        Either you mean retrospective, or you're being unnecessarily mean for something that's been getting quite a lot update reports, just on a social medium you probably don't use =P

        • tomlockwood 2 hours ago ago

          I thought it was a fairly common turn of phrase! https://blog.codinghorror.com/the-project-postmortem/

          • TheRealPomax 2 hours ago ago

            A postmortem is for reflecting on something that went so wrong you had to kill it, and you want to objectively describe what led to that, and what lessons can be learnt from the failure.

            A retrospective is just the reflecting part, without implying you believe it is going to fail and you're looking for some schadenfreude ;)

            • interroboink an hour ago ago

              This might be terminology that's used differently in different places. For instance, in video games it is extremely common to use "postmortem" to mean "post-shipping."

              Example: https://blog.codinghorror.com/game-development-postmortems/ Note the dual emphasis on both "what went right" and "what went wrong," not just one or the other.

            • tomlockwood 2 hours ago ago

              From the article:

              > The goal of a postmortem is to draw meaningful conclusions to help you learn from your past successes and failures. Despite its grim-sounding name, a postmortem can be an extremely productive method of improving your development practices.

            • dogleash an hour ago ago

              I've been reading people use "postmortem" to describe software retrospectives for like... 15+ years.

              Mostly in the opensource, or marketing-blog spaces. The detailed investigation and fix report was a favorite genre of blogpost. And if someone's bragging about the design of an enhancement, or investigating a bug, then the overall product isn't dead. They're (usually) not talking shit to anyone. It's the bug that's dead. Or security indecent that's over. Or a schedule milestone that's "dead and burred".

              It's a 1 chili pepper level of spicy to use a slang term that relates to death. I'd never read it as hoping someone fails. I think people let the corpotalk center of the brain overreact to anything that's not couched in euphemism.

              • wrs 22 minutes ago ago

                In the specific case of ship retrospectives, I prefer to call them “postpartums”.

  • SquareWheel 4 hours ago ago

    I'm not sure how much insight we can glean from looking at the number of commits and release cadence here. In the aftermath of such a major refactor/rewrite, I would expect it to take some time to get back up to their usual development speed.

    Jared and the other developers are new to the Rust codebase, even if the structure is largely familiar. They're also likely focusing on other priorities right now such as tracking down instances of 'unsafe', rather than making user-facing changes (which might encourage a release).

    Bugfixes could encourage rapid new releases, but perhaps the rewrite simply hasn't been very buggy? As far as I know, those on the canary channel haven't reported any major issues, or even really noticed the change. So perhaps there's little reason for new releases right now, as the team slowly churns through the backlog.

    > P.S. Anthropic’s C compiler and Cursor’s FastRender web browser haven’t had any commits for months.

    I always assumed those were just experiments in capability, and weren't meant to be ongoing projects. I would hope that nobody is using them directly today.

    • usef- 4 hours ago ago

      They also have made a release, in a sense, since they moved all Claude code users to it a month ago. (And apparently no one noticed).

      I think they're taking things "gradually" as they are under a lot of scrutiny and no rush for full release.

      • Aurornis 3 hours ago ago

        Claude Code has a huge userbase. This is an impressive result so soon after the rewrite.

        This is an impressive milestone for their rewrite. There are a lot of comments trying to downplay this as being unimpressive for some reason, but I can’t see them as anything other than sour grapes because the rewrite hasn’t crashed and burned like they were hoping.

        • giancarlostoro 3 hours ago ago

          It's just blind AI hate for no rhyme or reason. I've ported projects from one language to the next using Claude Code long before Bun even did this, it's very trivial for an LLM. In the case of Bun though, they have a test suite to run the entire codebase against, and so long as all of those tests pass, there's and drastically more likely chance that its correct.

          • dogleash 2 hours ago ago

            The LLM translation of serenity brower's javascript engine to rust and bun's translation to rust actually provide an interesting set of open source projects to compare and contrast. While there will obviously be some blind hate, there is difference in commentary on the two projects. In technical details, Adreas'/Jared's approaches and communication. That all shows me there is substance to the criticism that isn't just AI naysaying.

      • qskousen 3 hours ago ago

        I've had several bun-related crashes in Claude code in the last week, which I don't remember ever seeing before then.

        • Jarred 2 hours ago ago

          Does it print a bun.report link and can you paste it? I will investigate.

      • flohofwoe 4 hours ago ago

        Claude Code most likely only uses a tiny fraction of Bun/Node features, so Claude Code switching to the Rust rewrite doesn't mean all that much.

        • klausa 3 hours ago ago

          Look, I understand being skeptical of the whole process; the discourse about this has been extremely tiring.

          But at some point if “moving one of the biggest actively maintained and used codebases to it without anyone noticing” is dismissed as “it doesn’t mean all that much”, then we’ve lost the plot a little bit somewhere.

          • flohofwoe 3 hours ago ago

            It's the equivalent of porting Unreal Engine 5 to another language and then using it exclusively to run a 2D Tetris clone. Let's wait for the next Bun release when more real-world code is hammering it before declaring victory.

            (also, fwiw, a manual rewrite would be under the same scrunity and suffer from the same skepticism, at least when obviously rushed).

            • klausa 3 hours ago ago

              If you ported UE5 to, idfk, Malbolge and ran Tetris on it and someone would dismiss it as “not impressive”, I would think they lost the plot too!

              • lunar_mycroft 26 minutes ago ago

                LLMs are very impressive. Five years ago, the idea that we'd have software that you could ask - in English, mind you! - to rewrite an entire server side JS runtime and you'd get something which even kind of worked was squarely in the realm of science fiction. But the question isn't "is this impressive?", but rather "should the results of such a rewrite be relied upon?" (and specific to this thread, "is the fact that a use case which only touches a small subset of the features of said result appears to no be completely broken good evidence it should be?".

              • chuckadams an hour ago ago

                If you could successfully write Tetris in Malbolge, I would call that impressive indeed. Just writing Hello World was a major effort IIRC. The nature of the malbolge interpreter makes it more of a cryptography exercise than a coding one.

                • wallstop 26 minutes ago ago

                  I'm gonna jump in here with some self promo - back in college I TA'd a class that, for a few weeks, taught Malbolge, and the only assignment was for students to write a program that printed their name.

                  After spending a lot of time thinking about the language, I came up with a relatively simple algorithm based on the language design - there are a few operators that mutate state, so basically just try combinations of those until your next memory cell contains the thing that you want, then lock those instructions in and advance.

                  Basically RNG yourself to victory.

                  The original code for that algorithm is here (python, + my own interpreter): https://github.com/wallstop/malbolge-toolkit/tree/dd942fb981...

                  I've since llmified it as an exercise.

                  BUT! The whole reason for this comment is to nerd say that printing stuff is relatively easy if you invest the time in learning the language's primitives and think of programming in it more as algorithms to operate on the op codes instead of literally writing code.

                  Now, to do more interesting things other than printing - I'd have to spend even more time thinking about the language, which I don't want to

              • miroljub 3 hours ago ago

                You just compared Rust to Malbolge :)

            • Klonoar 2 hours ago ago

              You have absolutely no way to know this though.

              Like, come on already.

            • someguyiguess 3 hours ago ago

              Is it though? What’s your source for that data?

          • windexh8er 3 hours ago ago

            This is akin to saying "we replaced the tires on the car and the average user didn't notice". If the entire car was replaced, then maybe we get a bit more excited.

            However if "replacing small sections of code" is heralded as "the most amazing achievement in software development" then we've all lost the plot a little bit somewhere.

            It makes sense both ways, no?

            The reality is, of course, most people aren't going to notice. If the functionality and performance is 1:1 why would they? Is it impressive? A bit, but not how you're positioning it. People seem to forget LLMs are good at what they've learned from training data. And the LLM is good at compressing time. The only notable thing about these types of marketing spins is that a rewrite was accomplished in a small time frame that was hard to pull off before LLMs. The actual act of the move is less so.

            Did the codebase improve? Is it more performant? I've seen nothing to really stake those claims with any objectiveness. Lastly: what was gained?

          • SoftTalker an hour ago ago

            Why is porting a program from one language to another seen as some great achievement? We had f2c in the 1990s.

            https://en.wikipedia.org/wiki/F2c

        • NiloCK 3 hours ago ago

          I'll bite.

          Claude code interacts with many system processes, files, etc, as well as external APIs. Processes audio via built in dictation. Manages a bunch of nasty auth. Etc etc.

          What are the categories of features that wouldn't be exercised by this class of software?

          • BearOso 3 hours ago ago

            Yeah, but a lot of hard work is done by those libraries. Interaction with external interfaces would go through the tools API, which I imagine would all use the same type of code that they could focus on fixing quickly.

        • Jarred 2 hours ago ago

          Claude Code is a large codebase and uses tons of Node’s features either directly or indirectly through dependencies. fetch(), node:http, node:tls, node:os, node:net, node:fs, AbortSignal, node:child_process, node:tty, node:process, node:http2, etc.

        • aureate 3 hours ago ago

          A bigger factor is that Claude Code is owned by Anthropic. They can view issues in the combined CC+Bun as issues in one overall thing that they own. They can reproduce and test them and "Claude Code works" can be used as a target for agentic iteration on Bun.

          To release this to the world and not have it be a catastrophe, they need to have confidence that Bun itself satisfies the promises that it has made, both explicitly and implicitly (bearing in mind Hyrum's law!) to all those projects out there using it, none of which are owned by Anthropic and many of which are not source visible to them. It's a much, much higher bar.

        • a2800276 3 hours ago ago

          You didn't seriously expect Anthropic to seriously maintain bun as a general purpose plattform? It's clearly the Claude Code Runtime that you're graciously allowed to continue to use for your toy projects.

    • tomlockwood 4 hours ago ago

      Author here: I'm also not sure how much we can glean from any of that!!! I look forward to Anthropic or Bun releasing a retrospective after their next release that fully outlines the cost.

      • jeltz 4 hours ago ago

        Given their history with previous other marketing stunts I do not expect any retrospective. The technology is real but I have little faith in open and honest communication from Anthropic.

        • jgalt212 3 hours ago ago

          truth. We'll just have to wait and see what the frequency and severity of bug reports is going forward. I have my biases, but I'm not going to make any forecasts here. I'm content to let the evidence dribble in. However, I don't rely on Bun for any critical systems. i.e. I realize it's easy for me to have a wait and see attitude with this one.

      • grim_io 3 hours ago ago

        There is no incentive for them to be honest about the downsides and problems.

  • benjiro29 4 hours ago ago

    I really do not understand how software developer think anymore. Using a LLM to translate a project in a short time, is by itself incredible. Just like one-shot whatever office clone.

    But what makes software is not the fast creation of a "product" but that actual development of its features. Figuring out how everything needs to work together, fixing the bugs, and the o so boring UI work.

    I have used LLMs to create stuff like word clones just for fun. It was a disaster. Sure, it had the basic functionality. But the moment you started with page structure (harder then one non-stop scrolling page), tables, images, rotating, and so many details that make up just the basics of word. Not even the extended functionality. You see every LLM just fall on its face.

    Sure, i can clone sqlite from c to rust. Hell, i may even get it to do all the tests 100%. But there is a 99% chance that the clone will be slower, as it lacks the years of optimizations from the original language. There will be new bugs because of the language changeover. There is a need for future support and fixes.

    People threat software like its something it is not. But unlike the past where your clients question your sanity for charging 100k for a piece of software. Not understanding its not just about writing the code. Now those expectation are even more pushed forwards, because of articles like this.

    I constantly see software being published on reddit that does X, Y, Z only for the authors to abandon it as fast as they vibe coded it. Because fixing bugs is NOT sexy. Even with a LLM at your fingertips. Dealing with nagging users, is not sexy. Dealing with security issues, is NOT sexy. Dealing with data structure / databases, especially as your system changes ... you get the point.

    Not understanding to the core the software you wrote, is going to exploded in your face.

    This is why these stupid "we rewrote X into Z with a LLM in Y days" mean nothing. Its one thing to get a head start using this trick, its another to actually learn the code of your rewrite. And dedicated the time into maintaining the port, growing it, fixing it. This is where a lot of software fails. But now this crap is out there, instead of the maintained version of Zig, now we have a unmaintained Rust version that clouded the airwaves because if people now search for it, those articles "X in Z days" will pop up.

    What have we become ...

    • whstl 3 hours ago ago

      I think this is perfectly fine.

      If you explore Github, you're gonna see thousands of abandoned game engines, compilers for made-up languages. And that has been happening since before the LLM era.

      I used to be part of an OS messaging board in the early 2000s and almost everyone had their own OS. A dozen people or so could even run Firefox! I remember (now legend) Terry bothering us to check out LoseThos or GodOS or whatever was its name, but quite a few people had OSs that could do more than that.

      Not all software needs to be commercial to be useful, even if it's just for a learning experience. I have learned a lot from those experiments, even if they're not polished.

      • lelanthran 2 hours ago ago

        > If you explore Github, you're gonna see thousands of abandoned game engines, compilers for made-up languages. And that has been happening since before the LLM era.

        Yeah, but the people authoring those learned something.

        > I used to be part of an OS messaging board in the early 2000s and almost everyone had their own OS.

        Great example! I, too, once had my own toy OS, and browsed OSDev wiki nonstop. The thing is no one in the OS dev community were writing things they intended to place in front of actual users!

        The difference now is that these incomplete projects:

        a) Don't leave their owners any wiser than when they started, and

        b) Are actually intended by their owners to be used by actual users.

        > I have learned a lot from those experiments, even if they're not polished.

        Would you have learned as much if you told a magic box "Make me an OS" and then slapped your name on it and uploaded it to GH?

        • nihsett 2 hours ago ago

          Probably not, but sometimes I wonder if the lowered activation bump lets more people try it, even if they just vibecode the whole thing, and maybe learn a thing or two in the process? They wouldn't learn as much as they would if they did it by hand, but they would've never done it by hand in the first place - so this is better maybe? I don't know. The whole field is in a weird place right now, all previous rules of thumb might be wrong.

      • SuddsMcDuff 3 hours ago ago

        > (now legend) Terry bothering us to check out LoseThos or GodOS or whatever was its name

        Temple OS :)

      • piker 3 hours ago ago

        > Not all software needs to be commercial to be useful, even if it's just for a learning experience. I have learned a lot from those experiments, even if they're not polished.

        This is fine so long as the author is learning something (questionable) and not polluting the commons with "I made this in a weekend" vibe slop.

        • Supermancho 2 hours ago ago

          > This is fine so long as the author is learning something (questionable) and not polluting the commons with "I made this in a weekend" vibe slop.

          Almost all of my prototypes are made this way. "I made this in a weekend", is more often, "I made this in a day". Like any trad-coded project, time to vibe code a backend vs frontend time is 1:N

      • boggo 2 hours ago ago

        LoseThOS didn't burn through hundreds of thousands of dollars of expensive and environmentally questionable compute.

    • sigbottle 3 hours ago ago

      The more technical you get, the more subsitutable you become - or at least, people think of it in that way, because the whole idea is "It's not me, or the people, it's the raw technical prowess that earns its keep in this place".

      But it seems like we're finally starting to accept that "accidentals" like network effects, ownership, accountability, etc. are important. Of course, that's why many of us fled to technical corners in the first place - because the "accidentals" become tied up with things like nepotism, unfair and arbitrary judges from random humans who don't understand your merit, the need for bullshitting more than real technical value. Supposedly, anyways.

      • lackoftactics 2 hours ago ago

        My thoughts too. The LLMs made me understand that the world had been working like that long before LLMs. Luck plays an enormous part in life. We gravitated toward a discipline that seemed free of all those problems, when in fact it had those downfalls better disguised.

      • germandiago 3 hours ago ago

        I think it is a very good point: "because the "accidentals" become tied up with things like nepotism, unfair and arbitrary"

        I never thought of this from this perspective but indeed it seems to be totally true.

    • bwfan123 32 minutes ago ago

      > Not understanding to the core the software you wrote, is going to exploded in your face.

      Short-termism at its peak. Code maintainers will learn the hard way how to set the boundaries between ai-generated code, and human maintainable code.

    • Aurornis 3 hours ago ago

      > Its one thing to get a head start using this trick, its another to actually learn the code of your rewrite.

      I worked for a startup that stopped feature development and did a complete rewrite of a huge codebase. I was assigned to a side project during this time and missed the entire rewrite process. I came back to a completely rewritten codebase.

      There was almost no learning curve, despite being in an entirely different language. The core architecture, data structures, and concepts were the same.

      If you read the Bun blog post on how they did it, their rewrite was similar: The first step was getting it into a new language, not rearchitecting it from scratch.

      I think they did it the right way based on my pre-LLM. Rewriting into a different language as fast and basically as possible is important for getting the team switched over quickly. Rewriting into a different language in X days is actually a good goal to minimize.

      • nicce 2 hours ago ago

        > There was almost no learning curve, despite being in an entirely different language. The core architecture, data structures, and concepts were the same.

        > If you read the Bun blog post on how they did it, their rewrite was similar: The first step was getting it into a new language, not rearchitecting it from scratch

        They eventually might regret this, when they are trying to get rid of the last lines of unsafe code. Rust needs to be written differently before you can write safe things to perform fast when compared to other languages or unsafe code. It takes a lot of experience before you can see it.

        • hombre_fatal an hour ago ago

          I doubt it.

          If this were a major issue then you'd have to always nail your Rust architecture correctly from day 1 to handle future unknowns, and this isn't the case.

          More importantly, LLMs are more than capable of figuring out how to rearchitect code and they have no problem making sweeping refactors for you.

    • ChoGGi 3 hours ago ago

      > I constantly see software being published on reddit that does X, Y, Z only for the authors to abandon it as fast as they vibe coded it.

      Also if you whip something up, you tend not to care for it as much as something you took the time to create in a "proper" manner.

    • nope1000 3 hours ago ago

      Also I think porting code to another language or rewriting is one of the easier tasks for an LLM, since it has an extremely detailed spec (the source code itself) and a ton of tests already (hopefully).

      • galangalalgol 3 hours ago ago

        In my experience, it will go to every length to convince you it has ported code that it hasn't. It will silently drop upstream unit tests it has no code for, if questioned it will insert some markdown giving some rational why that specific bit was deferred, after the fact, and then point you to it. This was Opus 4.6 for reference. I have had much better luck with small numbers of higher level tests that I can individually verify equivalency. I haven't tried having it do differential fuzzing on some high level interface, that seems like it might work in some cases. But to summarize, treat it like an adversary trying to deceive you.

    • furyofantares 4 hours ago ago

      > I have used LLMs to create stuff like word clones just for fun. It was a disaster. Sure, it had the basic functionality. But the moment you started with page structure (harder then one non-stop scrolling page), tables, images, rotating, and so many details that make up just the basics of word. Not even the extended functionality. You see every LLM just fall on its face.

      What do you think of https://scramblequest.app and https://wordpeek.app ?

      I have never looked at any of the code for them

      edit: Yeesh, misread your comment as "word games" not "word clones" and was very confused about the claim. Probably should have noted my confusion and re-read.

      • TaLiTr 4 hours ago ago

        I think they might mean Word as in Microsoft Word. Just based on the feature list they were describing.

      • oblio 4 hours ago ago

        Are you comparing 2 relatively simple games with... Word?

        Word is basically an operating system. Unix people like to make fun of Emacs for being one, but Word is basically one, too. And all the features in there are used, otherwise Microsoft wouldn't keep them around.

        • reddalo 3 hours ago ago

          >Word is basically an operating system.

          And .doc files are basically a memory dump.

          • galangalalgol 3 hours ago ago

            That was certainly true once, but now all that state is serialized to xml amd zipped up. You can unzip it and look at it if you don't value your sanity.

            • oblio 2 hours ago ago

              So what you're saying is that the files are basically a memory dump formatted as XML? :-p

              • galangalalgol 2 hours ago ago

                A selective menory dump that when deserialized can ignore fields not present its version, but yeah.

          • someguyiguess 3 hours ago ago

            Dump is a great word for it

        • furyofantares 4 hours ago ago

          Haha, I misread as "word games" and was very confused about the claim.

      • rurban 4 hours ago ago

        Nonsense. Provide/create proper tests for all features, and let the LLM test and fix everything.

        In case of ccc (claudes C compiler) they just did not use any tests, though they are many existing C testsuite. They just stopped, when it finished compiling the kernel, still failing hundreds of tests.

    • someguyiguess 3 hours ago ago

      It’s strange how you think AI is some static thing that only produces the type of output you experienced and isn’t constantly improving. My experience has proven the latter time and time again.

    • otabdeveloper4 3 hours ago ago

      > Using a LLM to translate a project in a short time, is by itself incredible.

      Not really. Transpilers have existed since forever.

      The hard part is all the edge cases. (And LLMs don't solve this problem; they probably akshually exacerbate it.)

  • Tehnix an hour ago ago

    The bun rewrite inspired me to be much more aggressive on porting code, rewriting code, or vendoring external dependencies to tailor them specifically to our needs in ways that doesn’t make sense to upstream.

    I feel like it made me generally more ambitious in what I’d throw at a coding model, but also made me focus a lot more on our testing harness and keeping a lot of it at the boundaries outside the language specific parts.

    Having been part of several huge rewrites before, some multi-year long, I definitely would consider bun’s rewrite an enormous success. To keep such a level of test and feature parity, and add improvements on top of it, is a massive engineering feat.

  • abalashov 5 hours ago ago

    I did suspect that the triumphalist pronouncements, and even the seemingly honest and forthright deep dive, were a little premature.

    This is a key problem with LLM exuberance: it's very tempting to trade on decades of experience in software using LLMs, because one is tired of typing and manual figuring-out, it seems to work if you're competent, and the payoff is essentially immediate. The real bill comes in the mail much later.

    • yuye 3 hours ago ago

      >because one is tired of typing

      I consider typing to be secondary to software engineering, but I do concede that for those cases that typing really is the bottleneck, LLMs can certainly be of value.

      Those cases are rare, though.

      • abalashov 3 hours ago ago

        Oh, I 100% agree. I'm imagining the case where someone asks an LLM to do trivial things just for the novelty, or because they are fatigued of thinking + typing, but conceptualise the thing they are putting off as primarily a problem of typign and not thinking (I often do that).

  • pu_pe 4 hours ago ago

    I am fascinated by the discourse around this Bun rewrite. I read a lot of drama and personal accusations, there are pieces like this one trying to extract clues, and it seems everyone has a deeper ideological concern behind whatever they are trying to say. For this article, it seems to be skepticism towards AI and how successful it can be at replacing programmers. Other takes, like the one from the Zig maintainer, were also along those lines but more about the open source ethics and the future of that in a LLM world.

    I am mostly bullish on AI capabilities, so from my perspective I don't see why we should be skeptical that frontier LLMs guided by experienced devs can translate whole libraries like that. Good follow-up questions would be how expensive it currently is to do so, and whether we will see people branching into all-in on AI versus no-AI camps as happened in this case.

    • vdfs an hour ago ago

      > experienced devs

      No one on their team had Rust experience

  • simonw 2 hours ago ago

    This article could increase its credibility by being updated to acknowledge that Bun-on-Rust has been live in Claude Code itself since June 17th, and available as a canary release since it landed on main.

    Rewrites of this scale certainly justify long canary release periods!

    • tomlockwood an hour ago ago

      I mention Anthropic dogfooding this in the article.

      • simonw an hour ago ago

        In this sentence, sure:

        > Anthropic is dogfooding this, the machine is still ticking along, and Anthropic employees are directly involved.

        The problem is that your article's central claim is that there hasn't been a Bun release since the Rust rewrite - which can be read as implying that the rewrite hasn't been used in production.

        But it's been used in production on millions of machines running Claude Code for over a month!

        I think failing to acknowledge that hurts the credibility of the article. It's been a heated discussion point in this thread already.

        • root_axis 38 minutes ago ago

          > which can be read as implying that the rewrite hasn't been used in production.

          Well it hasn't. "Production" for a language runtime means being generally available for arbitrary use. The engineers that built the runtime using it to release one closed source binary to the public is, at best, an extremely narrow beta test.

        • tomlockwood an hour ago ago

          I link to Jarred's writeup on bun.com, where you'll note he mentions that its being used on Prisma and Claude Code.

          I don't agree that using something in a very specific environment is the same as a wide release.

          I trust readers will either know the backstory or read the articles I link to. Such is life if they don't.

          • simonw an hour ago ago

            Why are you resistant to adding a sentence to the article that notes that Claude Code uses the rewrite?

            Do you think it would weaken the article?

            When I said it would improve the credibility I did mean it. My instinct on reading the article this morning was "this person doesn't know that Claude Code runs on Bun, which weakens their credibility in presenting the argument they are making here."

            • tomlockwood 42 minutes ago ago

              Please feel free to write an article that corrects my mistakes.

  • losvedir 4 hours ago ago

    I'm not sure Anthropic even cares about "releasing" the next version. The rust one has been in use in Claude Code for more than a month now, used by millions of people, and that's as far as they probably really worry about it. They bought Bun for Claude Code and I doubt the open source project matters to them otherwise.

    • mikeocool 3 hours ago ago

      If that is really what they are concerned with, they probably could have just had Claude Code rewrite Claude Code in rust? That likely would be far more efficient than changing the language of your typescript runtime that ships to run your react-based CLI app.

      I imagine the $800k or whatever this has cost is coming out of Anthropic's marketing budget, so they can make a big splash about it.

      • wrs 14 minutes ago ago

        If you look at the reasons for rewriting Bun [0], they weren’t about efficiency and they don’t apply to Claude Code. It’s already written in a memory-safe language, and doesn’t have to interface to a library with a tricky set of invariants.

        [0] https://bun.com/blog/bun-in-rust

      • neuronexmachina 3 hours ago ago

        > If that is really what they are concerned with, they probably could have just had Claude Code rewrite Claude Code in rust

        Rewriting a runtime with well-defined interfaces and behavior is quite different from rewriting a user-facing application under active development by a decent chunk of their organization.

        • SpicyLemonZest an hour ago ago

          I agree, but this difference is very frustratingly omitted from the hype-sphere surrounding the rewrite, even though most software developers don't work on a runtime with well-defined interfaces and behavior. I know a number of people who've developed severe FOMO that their projects take longer than 2 weeks and maybe it's because they're not AI native enough.

          (I don't mean to be critical of the Bun maintainers, who have always been open about the fact that they leveraged the specific context of their project to do this effectively.)

    • usef- 4 hours ago ago

      I very much doubt they would want to abandon the wider community. They do benefit from others using it.

      To the contrary, I think any problem with this release would be jumped on harshly so they're being more careful than usual. There's not a rush for the community to move to 1.4 and any issues could poison the community trust.

      • egorfine an hour ago ago

        Like this rewrite did not terminally poison trust?

    • pornel 3 hours ago ago

      It's just a marketing stunt. They've got the ad for Claude-powered code rewrites, and that worked beautifully. Everyone got the message: spend big bucks with Anthropic to get rid of whatever codebase bugs you - please, think of the IPO!

      If it was about Claude Code itself, they could have rewritten it. They keep saying they don't even write code any more, so it shouldn't even matter what language it's in.

    • epolanski 24 minutes ago ago

      Why wouldn't they?

      Bun is a major part of the web ecosystem, having it developed by them via AI, sounds like a gigantic pr win.

    • rienbdj 4 hours ago ago

      Anyone know why? Can’t CC run on any JS runtime?

      • Atotalnoob 3 hours ago ago

        Yes, but it’s slower on non-bun runtimes. Nowadays, I believe they bundle bun with CC

        They chose to use a react rendering to native TUI renderer, which was a source of a lot of performance issues.

        AFAIK, they have written a new renderer.

        • bigstrat2003 an hour ago ago

          > They chose to use a react rendering to native TUI renderer, which was a source of a lot of performance issues.

          That's such a stupid engineering choice that it really makes one question if the people working at Anthropic have any software engineering ability at all. There's no excuse for running React in a freaking TUI.

      • jFriedensreich 4 hours ago ago

        because their js code is so bad and slow that they need the bun performance hacks and optimisations.

        • jdiff 3 hours ago ago

          Do these hacks make bun less secure than other runtimes? I find it a little hard to believe you can get much more robust and performant than V8 or SpiderMonkey without cutting some corners that notably went uncut by either for all these years.

          • msdz 2 hours ago ago

            Bun uses JavaScriptCore, which is Safari’s JS engine, for the actual interpreter portion of its runtime.

            Which makes the parent comment’s “Bun performance hacks and optimizations” sound a little far-fetched, at least in this scenario I don’t think that’s gonna be the deciding factor. Their vendored JSC is also not touched by this port-rewrite at all whatsoever (still Cpp), so I’m not sure if it’s even possible to hack-improve all that much there.

          • jFriedensreich an hour ago ago

            yes, especially compared to deno bun does not have proper isolation or permissions at runtime layer which is why anthropic tries to fix the lack by a mixture of app layer (build into claude code) and os layer (srt) however using runtime permissions would allow much better security if done right.

  • xiphias2 4 hours ago ago

    Everybody who has rewritten software understands the current phase: it mostly works, but there are always things to fix to make sure that there are no regressions, and the pressure is huge for any release.

    I still believe it was the good decision, but I also know that I wouldn't be the first person to run the release in prod.

    I think Jarred should start making release candidates instead of releases to take some of the pressure off.

  • CrzyLngPwd 3 hours ago ago

    Just a couple more 100hr weeks of debugging, and the last 80% will be done :-)

    • germandiago 3 hours ago ago

      For me this is how all workflows with AI end up lookingif you really want robust products. Do whatever with AI, go fast (from the point of view of perception, initially) BUT it is not going to work without extra work.

      and ho, the bloat, do not forget the bloat, which is technical debt towards the future.

      I am not anti-ai per-se, but I consider the software I write as a prouct to add features to and maintain over time. So in this case I think it is not wise to say that bc you got something impressive fast you are done. Now you have bugs, architecture, bloat removal, and others...

      Letting an AI manage all the workflow is a recipe for disaster in anything that is not strictly short-term. For this reason, I hardly code one-off scripts myself anymore and I hardly use AI for big things besides discussions with the prompt, reviews and snippets. For adding tests it can also be useful.

      For full, long-term products, they try to sell agents, and tokens and the like. I think they do not work well enough what I tried. It always ends up as a bloated unmantainable mess.

      Unless something that is totally autonomous (by this I mean 100% autonomous) and automated ever exists, I see writing software that can be maintained by humans still critical. As long as this exists, the productivity upper bound will be that of humans reviewing and driving the workflow, even if with AI support.

  • reliabilityguy 4 hours ago ago

    Many repeat the point of “$165k is cheaper than team of multiple engineers working on the rewrite for a year”, which I think is flawed — the team of engineers would have produced idiomatic rust, and it would take probably 100k+ of tokens more to make the bun in rust idiomatic rust.

    • furyofantares 4 hours ago ago

      They also would have produced a team of engineers that knows the Rust codebase.

      • root_axis 33 minutes ago ago

        "Knowing the codebase" seems like an antithetical philosophy to LLM driven engineering orgs.

      • busterarm 3 hours ago ago

        This is assuming your engineers don't leave for higher-paying roles elsewhere. The market might be cold generally but for engineers working at these frontier AI companies it's red-hot.

        And most executives are figuring this into their calculus right now because they were burned badly during COVID. Meta, Google, etc were loose with hiring and engineers flocked from their lower-paying companies in droves. The brain drain was real.

        One public company I was at lost nearly 2/3rds of their engineers and mostly to Meta (granted, they had other problems but it was mostly about money -- the offers were excessive). Then market conditions forced them to freeze hiring and they've had a slow exodus of senior talent since as the firefighting has become constant.

        AI adoption has only accelerated problems for them.

        We've taken this "only two years and then leave" philosophy to an extreme and now companies are totally justified in not investing in their engineers anymore.

        • ambicapter 2 hours ago ago

          The job-hopping followed from companies not investing in their engineers, not the other way around. It was billed as the only way to get a promotion (which usually would come every 1-2 years).

          • busterarm 2 hours ago ago

            I've been in this industry for a few decades at this point and I was around when this meme was started.

            It was purely about maxing your compensation because changing jobs nets you more than promotions & raises.

            I've never met an engineer in my life who truly earned a promotion every year and very few every two. Very few companies have org charts that even support that or have that many levels. This logic/advice only really applies at a few companies and people have adopted it no matter where they work. There's not enough growth/hiring at 95% of companies to even come close. The Peter Principle is also a real thing. Everyone's competence has a ceiling.

            There's even an implicit understanding of this that people at smaller companies have inflated titles and you typically rank them down 1-2 levels when hiring/acquiring at larger companies.

            Now I do agree that companies haven't been investing in their engineers, but that doesn't also mean this isn't a vicious cycle. Employers and employees are in a mexican standoff and things are only going to get worse until one side comes to its senses. Employers have all the leverage for it to not be them.

            For the vast majority of companies the average tenure of an engineer sits between 18 and 30 months. They're also mostly hiring young engineers in their 20s. As an employer what is your upside to making such investments before they're at least mid-career? A lot of people seem to want the world and offer nothing in return for it.

            • swiftcoder an hour ago ago

              > It was purely about maxing your compensation because changing jobs nets you more than promotions & raises.

              You don't view it as a problem that companies consistently compensate new hires higher than they are their experienced employees?

              Hell, I would have been perfectly happy to never change employers in my entire career to date, if my salary had anywhere near kept pace with my peers who were job-hopping.

              • busterarm 8 minutes ago ago

                > You don't view it as a problem that companies consistently compensate new hires higher than they are their experienced employees?

                It depends on the current employee and the incoming employee. They are not interchangeable cogs. Also not everyone consistently provides good value over their tenure -- a lot tend to work hard early and then for various reasons taper off. It's not necessarily their fault, but companies definitely are aware of this.

                Personally I tend to value growth of my skillset over growth of income and that has largely informed my movement. I move when there's no longer interesting work if the compensation is at least fair. I've never been about comparing myself to others -- especially when most of my peers' left the industry after 5-10 years.

    • rcxdude 2 hours ago ago

      Would they have, in a year? The general plan of attack would likely still be the same: rewrite it in rust while keeping the structure as similar as possible, no matter how unidiomatic, then adjusting the design to make it more idiomatic to rust. Doing both at once is much harder.

    • Tinkeringz 4 hours ago ago

      I feel your estimate of tokens is a few orders of magnitude off, it’s on the low side.

      I use more (albeit cached) when centering a div.

      • Hasnep 4 hours ago ago

        I think they missed a $ sign, i.e. they meant $100k of tokens

      • rezonant 4 hours ago ago

        This is where we've come to where people proudly proclaim using an AI to do what is a single line of CSS.

        • d0mine 3 hours ago ago

          "centering div" is a classic problem (/trauma/meme) that sounds trivial but had no universal solution (until 2017?).

      • reactordev 4 hours ago ago

        100k tokens is your pre-prompt and your CLAUDE.md as well as a few files from your root.

      • moralestapia 4 hours ago ago

        What a great joke.

        I will have to steal it for an upcoming AI tools meeting I have at work.

        Also, pretty clever as centering a div w/ CSS has been notoriously difficult to achieve.

    • tcfhgj 4 hours ago ago

      I doubt file by file rewriting takes as much work as rewriting and refactoring the code - especially at this scale.

    • witx an hour ago ago

      Yes this is a typical case of showing results fast. I wonder what the cost for the remaining 10℅ of debugging and fixing all the bloat will be. Not so cheap I am guessing

    • irishcoffee 4 hours ago ago

      > produced idiomatic rust

      I keep seeing this. What is "un-idiomatic" rust?

      • TazeTSchnitzel 4 hours ago ago

        Rust contains the ability to do everything that C can, if you use `unsafe`. And a file-by-file rewrite in Rust from another language usually involves keeping the ABI and API between files very C-like (and unsafe). In practice this means that the result of a first pass this way has all the memory safety of C code, but with worse readability because Rust makes unsafe things less ergonomic.

        To actually get the safety benefits of Rust in a real way you have to rework those files to not treat eachother as C code. This is the interesting and the difficult part of a rewrite in Rust, and one that an unsupervised LLM rewrite is probably not even going to attempt.

        I don't think this latter stage has actually happened with Bun's codebase. The result of the Rust rewrite in Bun's case is actually less safe than the Zig it is replacing, especially because (I am told) a lot of the new Rust code is unsound (introducing UB).

        • insanitybit 18 minutes ago ago

          > To actually get the safety benefits of Rust in a real way you have to rework those files to not treat eachother as C code. This is the interesting and the difficult part of a rewrite in Rust, and one that an unsupervised LLM rewrite is probably not even going to attempt.

          You can use deterministic linting for `unsafe` usage, have agents target `unsafe`, etc. It's pretty easy. You can even run `miri` against the code and give that as a tool for LLM feedback. I've done this all before and it works fine.

          > The result of the Rust rewrite in Bun's case is actually less safe than the Zig it is replacing, especially because (I am told) a lot of the new Rust code is unsound (introducing UB).

          I'm unconvinced that this is true. How could you tell? You only know about the rust bugs because rust makes them grep'able/ trivial to verify, there's no way of knowing which bugs existed in zig that didn't translate. Regardless, the problem is now trivial to understand in Rust and start to target.

        • skeledrew 2 hours ago ago

          > one that an unsupervised LLM rewrite is probably not even going to attempt.

          Why not? A complete test suite exists, so it just boils down to "reimplement this code to reduce the number of 'unsafe' references, while keeping the tests passing" (the last part isn't even needed since Claude loves to run tests and linters anyway).

          • TazeTSchnitzel 23 minutes ago ago

            An LLM definitely can do that work, but LLMs have a tendency to follow the path of least resistance unless you force them to do things properly and carefully supervise them.

            • skeledrew 4 minutes ago ago

              > LLMs have a tendency to follow the path of least resistance

              That's a really strong motivation for the Rust port. It's literally impossible to take a path not leading to an unacceptable outcome because the Rust compiler fails the compile if code no longer marked "unsafe" is still actually unsafe, and the tests fail if the implementation is incorrect. The compiler actively helps to force the LLM to do things properly.

      • vessenes 4 hours ago ago

        Presumably lots of stuff wrapped in 'unsafe'. I'm not a rust guy or a rust fan, and the last time I wrote something with Rust was like 7 years ago, but to my memory, because of how Rust manages mutability there are many access patterns that are Rust-specific; idiomatic Rust is going to use this patterns but they would be unlikely to show up in a language with a different type system / borrow checker / etc. etc.

        • irishcoffee 4 hours ago ago

          So "unidiomatic" rust means, 'don't use these parts of the language even though they're first-class citizens?'

          How odd. Lot of mental gymnastics going on there.

          • flohofwoe 3 hours ago ago

            The Bun author himself writes that the port is not idiomatic Rust:

                Do the rewrite that looks like we transpiled our Zig code to Rust. We can gradually refactor it to reduce unsafe usage and look more like idiomatic Rust after Bun v1.4 ships.
            
            (from: https://bun.com/blog/bun-in-rust)

            The original version of Bun was already a line-by-line (manual) port of esbuild from Go to Zig (also mentioned in this post), so the Zig code already wasn't "Zig-idiomatic" and apparently riddled with problems. That doesn't inspire much confidence in the LLM-translated Rust version tbh.

            • skeledrew 2 hours ago ago

              > That doesn't inspire much confidence in the LLM-translated Rust version tbh.

              And yet Claude Code, which is the primary consumer, continues to chug away without any issue (that I, as a fairly heavy user, have encountered).

          • tribaal 4 hours ago ago

            It's mostly the same in any general purpose programming language though, parts of the language features are meant (or became seens as) tools to be used in very narrow cases, which people less familiar with the language tend to "overuse".

            Eg. goto/jump, bare "except" statements in python, etc... In Rust, unsafe has its uses and is a first class language feature, but it certainly isn't idiomatic to use it to mimic access patterns from other languages (unless absolutely necessary).

          • williamdclt 2 hours ago ago

            > "unidiomatic" rust means, 'don't use these parts of the language even though they're first-class citizens?'

            that is indeed a roughly accurate definition of what "unidiomatic" means

          • ModernMech 3 hours ago ago

            It means "don't misuse parts of the language in ways that circumvent best practices" one of which is "keep unsafe regions as small and few as possible" not "never use unsafe"

          • vessenes 3 hours ago ago

            Meh. The (a major?) goal of Rust is this sort of type safety flowing down to memory bugs. Not every possible access pattern was known at the beginning, and generally they developed a philosophy of keeping the "unsafe" memory access patterns extremely bounded and heavily inspected. I think that's a fair and admirable goal.

  • podgorniy 3 hours ago ago

    > I hadn’t seen the numbers for the CI/CD costs of Buildkite, and as you might have noticed from above, some PRs were written by Anthropic employees.

    The leaked code of the claude had switch flag where claude pretends to be employee. You can't trust/expect that those PR's were authored by people.

    • germandiago 3 hours ago ago

      > some PRs were written by Anthropic employees

      Oh, that company that I heard did not use humans aymore to write software and bragged about it? I heard, correct me if I am wrong.

      Something does not match here...

  • simonw 2 hours ago ago

    One metric I thought might be interesting with respect to the Rust rewrite is the number of "unsafe" occurrences in the code.

    I was optimistic those would be going down over time but it looks like they've stayed pretty constant: https://news.ycombinator.com/item?id=48966569#48967630

    • pohl 2 hours ago ago

      Does that data exclude FFI wrappers, which necessarily must be unsafe? If not, don’t put much stock in it.

      • simonw 2 hours ago ago

        No, it's a raw count.

        I get that there's a baseline of unsafe that's necessary, but I was under the impression that some of those unsafes were in places where they could be replaced by more idiomatic Rust at a later date.

        • tomlockwood an hour ago ago

          I don't think that's true. I think a fair chunk of them are places where Bun is handed a pointer by WebKit or something similar. I believe they write about this a little.

          • insanitybit 16 minutes ago ago

            I think there's a reasonable expectation that unsafe could still be reduced by having shared, safer abstractions - that would lead to fewer `unsafe` results because the `unsafe` would be contained. I'm surprised that this isn't a higher priority target for them.

  • nickcw 3 hours ago ago

    Maybe it would have made more sense for Anthropic to rewrite Claude Code in rust, and cut out the middle man (bun)?

    • leobuskin 3 hours ago ago

      Nope, they want shared artifact(s) between web and desktop (not sure what do they have in mobile apps) clients (Chat/Cowork/Code/CC-cli), so TS is the way to go. It’s a reasonable choice made by engineers.

      • JackSlateur 9 minutes ago ago

        Pretty sure rust can run on browsers;

  • amazingamazing 4 hours ago ago

    Why did they buy an open source project anyway? If is not “officially” supported why not fork and use? Claude code is probably the most used anyway

    • jeltz 4 hours ago ago

      They bought the maintainers, not the code.

      • amazingamazing 4 hours ago ago

        Why though? Isn't AI supposed to take care of such things?

        • atonse an hour ago ago

          Because even when the AI is really good at writing code, you still have to know what to ask it, how to direct it, have product taste, etc.

          Otherwise all of us would just be able to build bun via a prompt.

    • quikoa 4 hours ago ago

      To me it just looks like a marketing stunt.

  • muglug 4 hours ago ago

    This post doesn’t make sense. It was rewritten in Rust. The rewrite itself is complete (no more Zig).

    Various people have claimed that Bun in Zig had a lot of tech debt. If they’re to be believed, it seems natural to assume the rewrite does, too. Perhaps all this activity is paying down some of that debt.

    • pizza234 3 hours ago ago

      > This post doesn’t make sense

      The author's assumption is that a rewrite is not just a mechanical translation of code - it's also a state of stability. And no release, for the author (I agree) means no stability.

      It's like a developer who says that after a week of work, a feature is 90% ready, but the other 10% is still not ready (for release) after months.

    • virajk_31 4 hours ago ago

      Author kept "going" in title because there has been no minor/major release in last two months which unusual for this project if you review the older releases.

      • muglug 4 hours ago ago

        A major rewrite in another language is also unusual for this project.

        It took TypeScript a year to go from announcing tsgo to releasing TypeScript 7.0. That work was done in parallel; here the work is being done serially — and it’s likely to take much less than a year for a new release.

        • chmod775 3 hours ago ago

          > It took TypeScript a year to go from announcing tsgo to releasing TypeScript 7.0.

          These are not comparable at all. The bun "rewrite" really is more of a translation of a software that is mainly dogfooded, created with an at best loose regard for a wider ecosystem.

          TypeScript 7.0. by comparison is not just a translation from one language to another. It's a true rewrite that at the same time has to consider a massive existing ecosystem (which needs to catch up first or you risk fragmenting it). Plus you might as well consider 6.x part of the effort, since that was the stepping-stone.

          Also where bun really is just a runtime implemented with a bunch of glue code plus supporting tooling, TypeScript is much more complex. Change one part of TypeScript and you can get cascading issues somewhere else in the compiler easily. Change something in Bun and you'll likely just break some discrete part.

          • dminik 3 minutes ago ago

            It's funny, but a large reason for why Go was chosen was explicitly because it has semantics close to TypeScript and that made it automatable:

            https://github.com/microsoft/typescript-go/discussions/411#d...

            > But this wasn't a compiler redesign, and the TypeScript to Go move was far more automatable and more one-to-one in its mapping.

            So basically the opposite of what you're saying.

          • skeledrew 2 hours ago ago

            > The bun "rewrite" really is more of a translation of a software that is mainly dogfooded, created with an at best loose regard for a wider ecosystem.

            This seems self-contradictory. If it's just a translation, doesn't that mean it remains fully compatible with that wider ecosystem? All the existing APIs retain identical behavior given the preexisting comprehensive test suite that had to go 100% green after all.

            • chmod775 2 hours ago ago

              > This seems self-contradictory.

              It's not.

              Passing an existing test suite just moves the optimistic lower bound to incidental compatibility, it doesn't move it to intentional - "regard" implies you gave it thought.

              Plus, it's not just about code: it's also about giving the ecosystem a migration path. Dumping 500k LOC on people and discontinuing development of the zig version effective immediately (there hasn't been a release since and the zig tree is only a reference - the build script is removed afaik) is the opposite of what TypeScript did. If you broke someone's N-API module because of a regression not caught by your suite they're now between a rock and a hard place.

              The good news is that there's nobody there to notice. The bun userbase is miniscule* compared to TypeScript's.

              * negligible? irrelevant? laughably small? I'm struggling to find an adjective that does the difference justice.

          • TiredOfLife 38 minutes ago ago

            TypeScript 7.0 was literally a line by line translation. With essential features necessary for adoption still like a year off.

        • virajk_31 4 hours ago ago

          Yes, its because Anthropic took over and wanted to showcase their LLM capabilities by porting such a complex codebas.

          • taormina 3 hours ago ago

            Everyone’s point is “they have everything to gain by lying about being more done then they are” and “the claims seem at least a bit full of shit”.

    • rk06 4 hours ago ago

      bun in zig was used by many companies. some were using it in prod. how many of those are using it in prod? none, because bun in rust is not released yet.

      Hence, the author concludes that rust rewrite is not complete as bun in rust is not released yet.

      I agree with author's POV.

      • davidgtonge 4 hours ago ago

        The rust version is being used by Claude Code though - which is a fairly large product!

        I was hoping for more push back against https://bun.com/blog/bun-in-rust - which is pretty thorough and has some decent arguments and reasoning for why they did the rewrite.

        • reactordev 4 hours ago ago

          I think they meant “released and available for use” rather than just out in the wild.

          • thevinter 4 hours ago ago

            It is available for use: `bun upgrade --canary`

        • flohofwoe 4 hours ago ago

          How much of the Bun/Node API surface does Claude Code actually use though? Conceptually it's a relatively simple TUI application.

        • nullsanity 4 hours ago ago

          Yeah, but it's a TUI that has more bugs and worse performance than any other TUI in history. It's not like we'd notice a user after free.

    • Aurornis 3 hours ago ago

      > Various people have claimed that Bun in Zig had a lot of tech debt. If they’re to be believed,

      This is one of the funnier takes on the rewrite. Bun was held up as a flagship Zig project for years. Then they chose to rewrite in Rust and everyone up to the Zig author has suddenly switched to claiming that Bun was terrible code all along.

      • IsTom 3 hours ago ago

        If what they're claiming is true then what were they supposed to do? Go "Hey guys, it's the biggest project in Zig and it sucks, don't look at it"? Not exactly a good PR move.

    • abalashov 4 hours ago ago

      > Perhaps all this activity is paying down some of that debt.

      Perhaps. But were that the case, one would think they'd be quite eager to say so.

      • muglug 4 hours ago ago

        Maybe they will!

        Are you expecting them to live-tweet their work or something?

        • abalashov 3 hours ago ago

          Based on the way they live-tweeted (as it were) their rewrite and their other publicity stunts? Yes, actually.

        • tough 4 hours ago ago

          jared was OK making this rewrite as an experiment branch in the public

          why shouldnt upcoming work be as public as the rewrite itself was?

          • skeledrew 2 hours ago ago

            You may continue to hold your breath. You may die as a result. The maintainers continue to do what they want regardless.

    • cowl 4 hours ago ago

      tech dept is not a problem. to paraphrase captain Jack sparrow. "even if it were the most indepted working software project, IT WORKED". On the other side of the medal we have a rewritten software that although it's trumpeted for it's rewrite speed, it is not showing the same Release speed as the manualy written, "tech dept ridden" old one.

  • yearesadpeople 4 hours ago ago

    > _"...Canny..."_

    What a time to be alive

    • nchmy 3 hours ago ago

      Came to point this out as well. Very bizarre that it was capitalized. Italics or bold might even have been acceptable...

    • rob74 4 hours ago ago

      Yeah, I noticed that too and kept wondering who this Canny was that the author wants to be? Felt a bit un-Canny...

      • tomlockwood 4 hours ago ago

        More proof that it was written by a human!!!

    • whobre 3 hours ago ago

      Still have no idea what that means…

      • arcwhite 3 hours ago ago

        https://www.merriam-webster.com/dictionary/canny

        It means shrewd.

        E.g. we should keep our wits about us when someone is making big hyperbolic claims about LLM that they directly benefit from, because maybe they have a motive to mislead either themselves, or us

  • mawadev 3 hours ago ago

    I'm gonna say it bluntly: I don't care about bun, never cared about bun and think nodejs is sufficient. The drama surrounding zig and rust still leaves me with a bad taste because I also don't like how nonsensical topics like that influence what we do and what we (have to) care about on a day to day basis. That is just my opinion!

    • ifwinterco 3 hours ago ago

      Something about bun always rubbed me up the wrong way (I even hate the name), but I couldn't really explain why.

      Thankfully now I have some good material to post-rationalise my intuitive dislike

    • podgorniy 3 hours ago ago

      Mechanisms of beliefs, sense of identity and pride are behind of majority of projects including opensource. These are the same mechanisms which produce what you call "drama".

      We can't have commited and involved people working on opensource stuff and simultaneously avoid drama when their sence of identity/beliefs/pride is devalued.

  • internet2000 4 hours ago ago

    I don't get it. Because they haven't cut a new arbitrary version number, we're denying it got done (in their perspective) and being used in a massive product already?

    If you're being pedantic, no it's not "done," but nothing ever is.

    • joks 3 hours ago ago

      It's not "done" if it's not stable and released. It's being canary tested by Claude Code users essentially but it's still being heavily worked on with tons of $ being poured into it and there's still no sign of them considering it stable and ready to go. That's the point of the article.

    • skydhash 4 hours ago ago

      > and being used in a massive product already?

      One single product, AFAIK, and one ladden with bugs and issue too.

  • vortegne 4 hours ago ago

    I didn't follow the thing too closely when it happened. Sure, I was aware of the big picture. But wow, I didn't expect that after all this noise there still hasn't been a release? That's just crazy to me.

    I shouldn't be surprised though, of course. Giving any credit or slack to a high-valuation LLM company is a silly endeavor.

    • jeltz 4 hours ago ago

      It was expected. These LLM rewrites seem to work amazingly at first and then you realize there is a ton of work remaining.

  • tomlockwood 5 hours ago ago

    Author here: An apology on the graphs, they just count rust files touched in commits, not total commits. So if there were two commits and one touched 3 .rs files and another touched 2, it'd be counted as 5 for the purposes of the graphs. I may fix this later but, yeah.

    • hahahaa 4 hours ago ago

      Hope you find that job :) nice work experience, looks very ethical focused.

    • alienbaby 4 hours ago ago

      what kind of difference from the actual numbers does it result in?

      • tomlockwood 4 hours ago ago

        Not sure! I cludged together a counter using git log. I could go back and redo it but I think the number would serve my point either way.

  • luciana1u 3 hours ago ago

    the author wrote a whole blog post asking how the bun rewrite is going and the answer from the thread is: nobody knows, including the author

    • Iridescent_ 3 hours ago ago

      "Nobody knows" is not a neutral sign however, Anthropic should be able to provide that visibility

    • tomlockwood 3 hours ago ago

      That's absolutely correct!

  • qarl2 2 hours ago ago

    Coincidentally - I'm trying to get feedback on my own LLM rewrite project - MAME ROM machine code to Idiomatic JavaScript - the ability for an agent to understand blind code is remarkable.

    But sadly HN is hiding my post... :(

    https://news.ycombinator.com/item?id=49069383

    EDIT: I'd love to hear why I'm downvoted.

  • IshKebab 4 hours ago ago

    This doesn't answer the question posed in the title unfortunately. I am none the wiser about how it's going. The author just speculates that the rewrite isn't actually complete.

    • tomlockwood 4 hours ago ago

      > I am none the wiser about how it's going.

      You and me both friend!

  • brap 5 hours ago ago

    If you’ve ever worked at a tech company you already know the answer without reading any further

    • raincole 5 hours ago ago

      Yeah, the answer is that it's gonna working fine for most users.

  • Xenoamorphous 3 hours ago ago

    > we’re approaching $800k in money spent on this rewrite.

    That’s peanuts, if not the shells of the peanuts, for a project and company of this magnitude

    • _pdp_ 3 hours ago ago

      How does that help 99.9% of all other companies though?

      • Xenoamorphous 3 hours ago ago

        Some thoughts:

        - just because it doesn’t help 99.9% of the companies today it doesn’t mean it won’t help them tomorrow

        - 0.01% of the companies employ a much bigger percentage of people

        - 99.9% of companies won’t need to do a project of this magnitude

        • nevertoolate 2 hours ago ago

          So you think if a company can't spend 1 million USD on a rewrite which has almost zero impact on performance, possibly net negative on maintainability it also can't have 500k LOC codebase either? Oh come on...

    • tomlockwood 3 hours ago ago

      Ohhhhh for a world where that's peanuts for an open source project.