41 comments

  • Jarred6 hours 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.<p>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.
    • inglor5 hours ago
      Take as long as you need to ensure software quality. A month without a release isn&#x27;t a big deal and whomever needs a specific feature can offer to contribute or build themselves.<p>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&#x2F;wanted a release should have asked first instead of writing an &quot;angry&quot; blog post.<p>(I&#x27;m a Node.js maintainer)
      • inigyou3 hours ago
        What is Node getting every 4-6 weeks that makes it noteworthy when it doesn&#x27;t?
      • tomlockwood5 hours ago
        Author here: I don&#x27;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.<p>I&#x27;m consistently skeptical about new tech whether it is NoSQL or Blockchain or Serverless. Some of the things I&#x27;m skeptical about fail and some succeed.
        • throw12345678917 minutes ago
          That’s a great approach. No matter what you will always find a reason to be positively surprised!
        • da023 hours ago
          What are some of your favorite tools or services that you adopted in the past few years?
    • thayne27 minutes ago
      That&#x27;s not surprising. Claude code is buggy enough, and releases break things often enough, that I wouldn&#x27;t expect users to distinguish bugs introduced by switching to rust-based-bun from the normal garden variety bugs.
      • denverllc10 minutes ago
        I’ve come to just expect that my CC instance will randomly “blank” and that I have to resize my terminal &#x2F; use page up&#x2F;page down to get it to show again.<p>Supposedly they used a game engine to render their TUI but I’ve never had an FPS game do that.
      • whyhnwhy4 minutes ago
        [dead]
    • lantry5 hours ago
      Any comment on the costs estimated in the article? especially the buildkite costs?
      • Jarred5 hours 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.<p>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.
        • sandeepkd2 hours ago
          I think the question for CI costs is still out there. While I do not think it should be in tunes of thousands a day but thats the skepticism presented in the article. True costs are really important to make a good decision in situations like this. One has to consider the fact that lots of people are going to use these numbers to justify the rewrite in future.
        • JustSkyfall4 hours ago
          How come Bun uses Buildkite instead of self-hosting the CI infra?
          • simonw2 hours ago
            Presumably because they &quot;build for [macOS, Linux, FreeBSD, Android, Windows] x [ARM64, x64]&quot; and self hosting all of that would be time-consuming and expensive.
          • CamouflagedKiwi1 hour ago
            Probably because they don&#x27;t want to self-host Windows or MacOS servers when they can pay someone else to do that for them (or Linux ones, I assume that is within their wheelhouse for production but CI is a bit of a different beast to model inference).
    • dzhar114 hours ago
      Jarred, thank you for working on Bun. Many &quot;vibe coded&quot; :D projects start strong and are later abandoned (like potentially Anthropic C), so I understand why people worry about Bun&#x27;s future. I hope Bun lasts for many years, like GCC. Bun is fast and great to use.
      • maleldil3 hours ago
        Anthropic&#x27;s C compiler was a proof of concept[1], so it makes sense that it was abandoned.<p>[1] What it <i>actually</i> proved is up for debate.
        • sfink1 hour ago
          &gt; What it actually proved is up for debate.<p>I guess I&#x27;m debating, but it seemed clear enough to me? It proved that AI models and their harnesses are to the point where you can give them some work to do and leave them unattended for a long time, and they&#x27;ll keep doing productive work for quite a while. This was a novel thing, and quite unclear, at the time the experiment was performed.<p>Obviously, the word &quot;productive&quot; is doing a lot of work there, but in my understanding the intention was nowhere near &quot;commercially viable&quot; or &quot;practically useful&quot;, it was more like &quot;not doing stupid shit like writing comments of the form &#x27;This file contains the implementation implementation implementation implementation implementation implementation implementation implementation implementation implementation implementation implementation implementation ...&#x27;&quot;.<p>Maybe somewhere in the vicinity of &quot;either passing more tests or generating more valid tests&quot;?
    • tomlockwood6 hours ago
      &gt; The Rust rewrite is going well overall.<p>I look forward to the postmortem!
      • aleksandrm2 hours ago
        <a href="https:&#x2F;&#x2F;bun.com&#x2F;blog&#x2F;bun-in-rust" rel="nofollow">https:&#x2F;&#x2F;bun.com&#x2F;blog&#x2F;bun-in-rust</a><p>This is from July 8, 2026. And while you did link it in your article, what else are you expecting?
      • TheRealPomax5 hours ago
        Either you mean retrospective, or you&#x27;re being unnecessarily mean for something that&#x27;s been getting quite a lot update reports, just on a social medium you probably don&#x27;t use =P
        • tomlockwood5 hours ago
          I thought it was a fairly common turn of phrase! <a href="https:&#x2F;&#x2F;blog.codinghorror.com&#x2F;the-project-postmortem&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.codinghorror.com&#x2F;the-project-postmortem&#x2F;</a>
          • TheRealPomax5 hours 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.<p>A retrospective is just the reflecting part, without implying you believe it is going to fail and you&#x27;re looking for some schadenfreude ;)
            • interroboink5 hours ago
              This might be terminology that&#x27;s used differently in different places. For instance, in video games it is <i>extremely</i> common to use &quot;postmortem&quot; to mean &quot;post-shipping.&quot;<p>Example: <a href="https:&#x2F;&#x2F;blog.codinghorror.com&#x2F;game-development-postmortems&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.codinghorror.com&#x2F;game-development-postmortems&#x2F;</a> Note the dual emphasis on both &quot;what went right&quot; and &quot;what went wrong,&quot; not just one or the other.
              • brabel3 hours ago
                But postmortem is literally “post death” in Latin. It’s synonymous with autopsy! I know people misuse borrowed words all the time, but come on?!
                • interroboink3 hours ago
                  &gt; is literally “post death” in Latin<p>Yes; I think what I described matches that meaning?<p>Post-death, as in: &quot;it&#x27;s over,&quot; &quot;activity has halted,&quot; &quot;no more work being done.&quot;<p>Death does not necessarily have a bad&#x2F;negative connotation. It&#x27;s just the end of something.<p>This is in contrast to the original comment: &quot;something that went so wrong you had to kill it.&quot; Death does not imply something went wrong or that it happened forcefully.<p>I guess &quot;autopsy&quot; generally is talking about &quot;finding the cause of death&quot; so maybe that has a more negative connotation (&quot;something (bad) happened, causing death, let&#x27;s find it&quot;).<p>Ah, words with their fuzzy meanings (:
                  • WD-422 hours ago
                    &gt; Post-death, as in: &quot;it&#x27;s over,&quot; &quot;activity has halted,&quot; &quot;no more work being done”<p>Which makes even less sense as we all know software is never done, unless it truly is dead.
                    • vitorfblima1 hour ago
                      In the context of a game it applies. A game can be &quot;done&quot;, as in shipped, no more updates, patches, etc.
                • thaumasiotes56 minutes ago
                  &gt; But postmortem is literally “post death” in Latin.<p>Sure, that&#x27;s true. It&#x27;s not really relevant to people who don&#x27;t speak Latin.<p>&gt; It’s synonymous with autopsy!<p>This isn&#x27;t true. I have no idea how you got here. In English an autopsy is a surgical procedure performed on a corpse for the purpose of identifying the cause of death. In particular, it&#x27;s a noun. &quot;Post-mortem&quot; in the etymologically literal &quot;after death&quot; sense is an adverb or adjective identifying whatever it is as taking place chronologically after some contextually-specified death.<p>But, you seem to put some weight on the etymology of a word independently of its current meaning. In that case <i>autopsy</i> &quot;literally means&quot; to witness something personally, as opposed to hearing about it from someone else. (It&#x27;s &quot;self-eye&quot; in Greek just as <i>post mortem</i> is &quot;after death&quot; in Latin.) Somehow I doubt that&#x27;s what you had in mind...?
                  • brabel4 minutes ago
                    An autopsy is an exam that is performed postmortem. And that’s really how people are using postmortem as a noun for the analysis that they perform after the “death” of a company, so it is a synonym at least approximately, if you don’t see that I guess you don’t have a very good imagination.
            • dagmx3 hours ago
              A post mortem is a very common term in many industries on how something went after you shipped it.<p>You’re taking it very literally here, it does not involve anything being dead or killed.<p>We’ve used this in the software, games, film and construction industries for decades at this point.<p>Substitute Mortem for Ship and that’s how people use it.
            • tomlockwood5 hours ago
              From the article:<p>&gt; 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.
            • dogleash5 hours ago
              I&#x27;ve been reading people use &quot;postmortem&quot; to describe software retrospectives for like... 15+ years.<p>Mostly in the opensource, or marketing-blog spaces. The detailed investigation and fix report was a favorite genre of blogpost. And if someone&#x27;s bragging about the design of an enhancement, or investigating a bug, then the overall product isn&#x27;t dead. They&#x27;re (usually) not talking shit to anyone. It&#x27;s the bug that&#x27;s dead. Or security indecent that&#x27;s over. Or a schedule milestone that&#x27;s &quot;dead and burred&quot;.<p>It&#x27;s a 1 chili pepper level of spicy to use a slang term that relates to death. I&#x27;d never read it as hoping someone fails. I think people let the corpotalk center of the brain overreact to anything that&#x27;s not couched in euphemism.
              • wrs4 hours ago
                In the specific case of ship retrospectives, I prefer to call them “postpartums”.
                • ModernMech3 hours ago
                  I guess they’re saying their shipped code is DOA?
    • egorfine5 hours ago
      Any chance for 1.3.15 with bugfixes for the rest of us?
      • sroussey4 hours 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.
    • alkr-g2343 hours ago
      We would need to know at least:<p>- How many people have updated Claude&#x2F;Bun to the latest version.<p>- How many subscribers care about reporting issues. Most of them are forced to use the tool against their will and have mentally checked out already. Why report issues if your employer values slop code anyway. Just log the hours and keep your head down. Maybe it is not expedient for the AI narrative to report issues!<p>- How many subscriptions are real vs. bulk distiller accounts.<p>- If subscriber numbers are inflated.<p>Judging by the weird Claude Code Github issues page, there are suspiciously few new issues: about 2 to 3 a day only vs. alleged subscriber numbers of 4 million.
      • maleldil3 hours ago
        &gt; How many people have updated Claude&#x2F;Bun to the latest version<p>By default, Claude Code updates itself all the time without asking for permission, so I&#x27;d say most users are on the latest versions.
    • wesselbindt4 hours ago
      In Dutch there&#x27;s a saying, &quot;wij van wc eend adviseren wc eend&quot;, and it fits perfectly.
      • tptacek3 hours ago
        I don&#x27;t see how it does. Claude Code is an extremely widely used product; the preceding comment offered an objective evaluation target, not a &quot;trust me it&#x27;s good&quot; argument.
      • achenet4 hours ago
        Frenchman here, I Google Translated that and it says<p>&quot;We at WC Duck recommend WC Duck&quot;... I&#x27;m left scratching my head, if you&#x27;d care to spell out what the saying means for non-Dutch I&#x27;d appreciate it :)
        • wesselbindt4 hours ago
          It was a commercial slogan for a toilet cleaning agent. An English equivalent would be &quot;mr clean recommends you use mr clean&quot;. Today, it is used to point out when someone tells you they themselves delivered good work. Anytime you&#x27;d use the meme of Obama giving himself a medal, you could use this phrase.
          • card_zero3 hours ago
            The Toilet Duck brand exists in English. Canard-WC in French, even.
  • SquareWheel8 hours ago
    I&#x27;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&#x2F;rewrite, I would expect it to take some time to get back up to their usual development speed.<p>Jared and the other developers are new to the Rust codebase, even if the structure is largely familiar. They&#x27;re also likely focusing on other priorities right now such as tracking down instances of &#x27;unsafe&#x27;, rather than making user-facing changes (which might encourage a release).<p>Bugfixes could encourage rapid new releases, but perhaps the rewrite simply hasn&#x27;t been very buggy? As far as I know, those on the canary channel haven&#x27;t reported any major issues, or even really noticed the change. So perhaps there&#x27;s little reason for new releases right now, as the team slowly churns through the backlog.<p>&gt; P.S. Anthropic’s C compiler and Cursor’s FastRender web browser haven’t had any commits for months.<p>I always assumed those were just experiments in capability, and weren&#x27;t meant to be ongoing projects. I would hope that nobody is using them directly today.
    • usef-8 hours 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).<p>I think they&#x27;re taking things &quot;gradually&quot; as they are under a lot of scrutiny and no rush for full release.
      • Aurornis7 hours ago
        Claude Code has a huge userbase. This is an impressive result so soon after the rewrite.<p>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.
        • giancarlostoro6 hours ago
          It&#x27;s just blind AI hate for no rhyme or reason. I&#x27;ve ported projects from one language to the next using Claude Code long before Bun even did this, it&#x27;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&#x27;s and drastically more likely chance that its correct.
          • Banditoz3 hours ago
            Seems to be more level skepticism to me. Not &quot;blind hate&quot;.
          • dogleash5 hours ago
            The LLM translation of serenity brower&#x27;s javascript engine to rust and bun&#x27;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&#x27;&#x2F;Jared&#x27;s approaches and communication. That all shows me there is substance to the criticism that isn&#x27;t just AI naysaying.
      • qskousen7 hours ago
        I&#x27;ve had several bun-related crashes in Claude code in the last week, which I don&#x27;t remember ever seeing before then.
        • Jarred6 hours ago
          Does it print a bun.report link and can you paste it? I will investigate.
      • flohofwoe7 hours ago
        Claude Code most likely only uses a tiny fraction of Bun&#x2F;Node features, so Claude Code switching to the Rust rewrite doesn&#x27;t mean all that much.
        • klausa7 hours ago
          Look, I understand being skeptical of the whole process; the discourse about this has been extremely tiring.<p>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.
          • flohofwoe7 hours ago
            It&#x27;s the equivalent of porting Unreal Engine 5 to another language and then using it exclusively to run a 2D Tetris clone. Let&#x27;s wait for the next Bun release when more real-world code is hammering it before declaring victory.<p>(also, fwiw, a manual rewrite would be under the same scrunity and suffer from the same skepticism, at least when obviously rushed).
            • klausa7 hours 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_mycroft4 hours ago
                LLMs are very impressive. Five years ago, the idea that we&#x27;d have software that you could ask - in English, mind you! - to rewrite an entire server side JS runtime and you&#x27;d get something which even kind of worked was squarely in the realm of science fiction. But the question isn&#x27;t &quot;is this impressive?&quot;, but rather &quot;should the results of such a rewrite be relied upon?&quot; (and specific to this thread, &quot;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?&quot;)
              • chuckadams5 hours 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.
                • wallstop4 hours ago
                  I&#x27;m gonna jump in here with some self promo - back in college I TA&#x27;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.<p>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.<p>Basically RNG yourself to victory.<p>The original code for that algorithm is here (python, + my own interpreter): <a href="https:&#x2F;&#x2F;github.com&#x2F;wallstop&#x2F;malbolge-toolkit&#x2F;tree&#x2F;dd942fb9812941bb6fb301986543c55199d89ec4" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;wallstop&#x2F;malbolge-toolkit&#x2F;tree&#x2F;dd942fb981...</a><p>I&#x27;ve since llmified it as an exercise.<p>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&#x27;s primitives and think of programming in it more as algorithms to operate on the op codes instead of literally writing code.<p>Now, to do more interesting things other than printing - I&#x27;d have to spend even more time thinking about the language, which I don&#x27;t want to
                  • klausa3 hours ago
                    Pretty funny that I off-handedly used Malbolge as a random pull from my brain for “an extremely weird and not-really-but-kinda programming language” without even really remembering any details about it; and then I got to learn about your project!<p>Thanks for sharing!
              • miroljub6 hours ago
                You just compared Rust to Malbolge :)
              • inigyou3 hours ago
                &quot;I ported .NET framework to x86 bare metal. Here&#x27;s hello world as proof.&quot;
              • inigyou3 hours ago
                &quot;I ported .NET Framework to x86 bare metal. Here&#x27;s proof using Hello World.&quot;
              • seanclayton3 hours ago
                A human doing it is impressive. A human performing many computations a computer could do would be impressive. I don&#x27;t get impressed when a computer computes a number. A language machine translating is just... doing what a language machine does? When a language machine starts doing something other than translation, I <i>will</i> be impressed. If computers starting singing without any human intervention, for example, would be incredible! C3PO knows many languages—he may know Rust and Zig. C3PO translating from Zig to Rust isn&#x27;t surprising to me. Sounds par the course for a robot who knows languages.
                • famouswaffles1 hour ago
                  &gt;A language machine translating is just... doing what a language machine does?<p>Really? We had language machines for decades that couldn&#x27;t do it. One that could was only built in the last 2 years max but that&#x27;s something you expect from language machines? Lol Okay
                  • seanclayton1 hour ago
                    If a machine made to do language things in this day and age having trillions of dollars invested in doing language, I am not shocked at all that a trillion dollar language machine translates programming languages. It really is not surprising to me. I&#x27;d be surprised if a trillion dollar language machine <i>doesn&#x27;t</i> do as fundamental a linguistic capability as translation. It&#x27;s like being shocked that a language machine spews out language? What <i>else</i> does a language machine do?<p>A calculator that can find all primes will be cool. A language machine that translates english into JavaScript is cool. A language machine that translates Zig into Rust is cool. Language machines are cool, not awe-inspiring or surprising to me.
            • Klonoar6 hours ago
              You have <i>absolutely no way to know this</i> though.<p>Like, come on already.
            • someguyiguess7 hours ago
              Is it though? What’s your source for that data?
          • inigyou3 hours ago
            Claude Code client isn&#x27;t one of the biggest actively maintained and used codebases. If it is one of the biggest, that&#x27;s showing AI&#x27;s tendency to waste its own tokens and your money.
          • SoftTalker5 hours ago
            Why is porting a program from one language to another seen as some great achievement? We had f2c in the 1990s.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;F2c" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;F2c</a>
            • throw161803393 hours ago
              This isn&#x27;t a valid comparison. <i>f2c</i> is a compiler and the output isn&#x27;t intended to be human readable.
          • well_ackshually2 hours ago
            Claude Code is 150k lines of Javascript that doesn&#x27;t work particularly well. 150k isn&#x27;t nearly &quot;one of the biggest&quot;, even when filtering for actively maintained.
          • windexh8er6 hours ago
            This is akin to saying &quot;we replaced the tires on the car and the average user didn&#x27;t notice&quot;. If the entire car was replaced, then maybe we get a bit more excited.<p>However if &quot;replacing small sections of code&quot; is heralded as &quot;the most amazing achievement in software development&quot; then we&#x27;ve all lost the plot a little bit somewhere.<p>It makes sense both ways, no?<p>The reality is, of course, most people aren&#x27;t going to notice. If the functionality and performance is 1:1 why would they? Is it impressive? A bit, but not how you&#x27;re positioning it. People seem to forget LLMs are good at what they&#x27;ve learned from training data. And the LLM is good at <i>compressing time</i>. 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.<p>Did the codebase improve? Is it more performant? I&#x27;ve seen nothing to really stake those claims with any objectiveness. Lastly: <i>what was gained?</i>
        • NiloCK7 hours ago
          I&#x27;ll bite.<p>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.<p>What are the categories of features that wouldn&#x27;t be exercised by this class of software?
          • BearOso6 hours 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.
          • bikelang2 hours ago
            This is probably a stupid question - as I’m totally unfamiliar with how interpreters call into system APIs - but would those calls use the bun runtime or the JavaScript Core engine the bun runtime wraps?
        • Jarred6 hours 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.
        • aureate6 hours 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 &quot;Claude Code works&quot; can be used as a target for agentic iteration on Bun.<p>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&#x27;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&#x27;s a much, much higher bar.
        • a28002766 hours ago
          You didn&#x27;t seriously expect Anthropic to seriously maintain bun as a general purpose plattform? It&#x27;s clearly the Claude Code Runtime that you&#x27;re graciously allowed to continue to use for your toy projects.
      • eproxus3 hours ago
        If that is true, isn&#x27;t it a bit unconventional? What version are they using, some random Git SHA? Why couldn&#x27;t that have been made to a release or a release candidate at least?
    • wonnage3 hours ago
      The CI&#x2F;CD costs are an interesting take, most of the rebuttals to AI ROI are something like “more code doesn’t mean more value!” but if you are charging per CI run then it actually does! Particularly with CI and extra testing being the main way to prevent the loops the AI companies are shilling from going off the rails
    • tomlockwood8 hours ago
      Author here: I&#x27;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.
      • jeltz8 hours 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.
        • jgalt2126 hours ago
          truth. We&#x27;ll just have to wait and see what the frequency and severity of bug reports is going forward. I have my biases, but I&#x27;m not going to make any forecasts here. I&#x27;m content to let the evidence dribble in. However, I don&#x27;t rely on Bun for any critical systems. i.e. I realize it&#x27;s easy for me to have a wait and see attitude with this one.
      • grim_io7 hours ago
        There is no incentive for them to be honest about the downsides and problems.
  • benjiro298 hours 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.<p>But what makes software is not the fast creation of a &quot;product&quot; 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.<p>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.<p>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.<p>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.<p>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 &#x2F; databases, especially as your system changes ... you get the point.<p>Not understanding to the core the software you wrote, is going to exploded in your face.<p>This is why these stupid &quot;we rewrote X into Z with a LLM in Y days&quot; 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 &quot;X in Z days&quot; will pop up.<p>What have we become ...
    • sfink1 hour ago
      I&#x27;d like more people to be writing about this, because I find it fascinating. I have my own private project that is heavily LLM-coded, just to learn about what it&#x27;s like. It&#x27;s amazing how everything is different yet everything is the same. Big complicated features can start working quickly and give a massive endorphin boost, but then fixing them up and integrating them in properly and polishing the UI? It all feels even more painful having experienced the heady thrill of the initial implementation. And things get to a point where you can <i>feel</i> the inertia set in, the point where things have gotten so hacked up that the LLM can&#x27;t make any progress without creating an even bigger mess. It&#x27;s the point where you have to go back and fix up the architecture, or scrap the whole thing and restart with a better plan, or a bit of both (rewind to the &quot;last sane point&quot;). It&#x27;s like developing with a jetpack -- you can go way faster towards your goal, and you can slam into walls way faster and more painfully too.<p>I think there are tons of learnings to be shared about how to do this stuff, but it seems like it&#x27;s all blocked behind arguments over whether AI is the best or worst thing ever, and penis-measuring contents about how to hold the tool. The net benefit <i>is</i> a very open question, and both the doom and gloom perspective and the AI booster perspective are valuable and have a lot of things right. But there&#x27;s a dearth of information about what things work, what things don&#x27;t, what happens in the process of using AI, how to adjust one&#x27;s behavior and which of those adjustments is harmful even if effective.<p>But then, I&#x27;m part of the problem. I keep meaning to write up a series of experience reports, but it&#x27;s a lot of work. More fun to vibe a new feature into existence, or to finally fix a UI wart...
      • TimTheTinker48 minutes ago
        To build a robust piece of deep-functionality software (like an MS Word clone) with an LLM, you <i>have</i> to start from the underlying architectural decisions, particularly <i>how data is structured</i> and <i>how it flows</i> through the system.<p>If you have an LLM or human just start coding up something without nailing down those decisions first, then he&#x2F;she&#x2F;it <i>will</i> implicitly make those decisions arbitrarily in the moment (usually based more on pattern-matching than real weighing of alternatives) and the result will be a massive mess.<p>Ideally for an LLM, you&#x27;d hand-write a highly detailed DESIGN.md file to encode those decisions and a suite of test fixtures to enforce them.
    • whstl7 hours ago
      I think this is perfectly fine.<p>If you explore Github, you&#x27;re gonna see thousands of abandoned game engines, compilers for made-up languages. And that has been happening since before the LLM era.<p>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.<p>Not all software needs to be commercial to be useful, even if it&#x27;s just for a learning experience. I have learned a lot from those experiments, even if they&#x27;re not polished.
      • lelanthran6 hours ago
        &gt; If you explore Github, you&#x27;re gonna see thousands of abandoned game engines, compilers for made-up languages. And that has been happening since before the LLM era.<p>Yeah, but the people authoring those <i>learned</i> something.<p>&gt; I used to be part of an OS messaging board in the early 2000s and almost everyone had their own OS.<p>Great example! I, too, once had my own toy OS, and browsed OSDev wiki nonstop. The thing is <i>no one</i> in the OS dev community were writing things they intended to place in front of actual users!<p>The difference now is that these incomplete projects:<p>a) Don&#x27;t leave their owners any wiser than when they started, and<p>b) Are actually intended by their owners to be used by actual users.<p>&gt; I have learned a lot from those experiments, even if they&#x27;re not polished.<p>Would you have learned as much if you told a magic box &quot;Make me an OS&quot; and then slapped your name on it and uploaded it to GH?
        • nihsett5 hours 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&#x27;t learn as much as they would if they did it by hand, but they would&#x27;ve never done it by hand in the first place - so this is better maybe? I don&#x27;t know. The whole field is in a weird place right now, all previous rules of thumb might be wrong.
          • jdiff46 minutes ago
            My gut says there are fewer people in that group than there are people who would&#x27;ve learned something who now decided learning something isn&#x27;t worth the effort. A net loss.
      • SuddsMcDuff6 hours ago
        &gt; (now legend) Terry bothering us to check out LoseThos or GodOS or whatever was its name<p>Temple OS :)
        • whstl2 hours ago
          That was half memory-loss, half joke, since Terry was always changing the OSs name. Wish he was still with us, renaming it every year!
        • dandelioness6 hours ago
          [flagged]
      • piker7 hours ago
        &gt; Not all software needs to be commercial to be useful, even if it&#x27;s just for a learning experience. I have learned a lot from those experiments, even if they&#x27;re not polished.<p>This is fine so long as the author is learning something (questionable) and not polluting the commons with &quot;I made this in a weekend&quot; vibe slop.
        • Supermancho6 hours ago
          &gt; This is fine so long as the author is learning something (questionable) and not polluting the commons with &quot;I made this in a weekend&quot; vibe slop.<p>Almost all of my prototypes are made this way. &quot;I made this in a weekend&quot;, is more often, &quot;I made this in a day&quot;. Like any trad-coded project, time to vibe code a backend vs frontend time is 1:N
        • neonstatic3 hours ago
          &gt; This is fine so long as the author is learning something (questionable) and not polluting the commons with &quot;I made this in a weekend&quot; vibe slop<p>This is exactly the same as demanding, that people who post their thoughts always post original, useful thoughts. It&#x27;s just not going to happen. Making something easy will increase the total volume and the majority of that volume will be junk. It&#x27;s inevitable. What is needed is a search engine for quality software. Perhaps LLMs can do that, since they are better at understanding concepts than generating them.
      • boggo6 hours ago
        LoseThOS didn&#x27;t burn through hundreds of thousands of dollars of expensive and environmentally questionable compute.
        • whstl2 hours ago
          True! It just burned though other forum contributors patience! I miss the Terry from back in the day (early 2000s?) though.
    • sigbottle7 hours 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 &quot;It&#x27;s not me, or the people, it&#x27;s the raw technical prowess that earns its keep in this place&quot;.<p>But it seems like we&#x27;re finally starting to accept that &quot;accidentals&quot; like network effects, ownership, accountability, etc. are important. Of course, that&#x27;s why many of us fled to technical corners in the first place - because the &quot;accidentals&quot; become tied up with things like nepotism, unfair and arbitrary judges from random humans who don&#x27;t understand your merit, the need for bullshitting more than real technical value. Supposedly, anyways.
      • lackoftactics6 hours 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.
      • germandiago7 hours ago
        I think it is a very good point: &quot;because the &quot;accidentals&quot; become tied up with things like nepotism, unfair and arbitrary&quot;<p>I never thought of this from this perspective but indeed it seems to be totally true.
    • Aurornis6 hours ago
      &gt; Its one thing to get a head start using this trick, its another to actually learn the code of your rewrite.<p>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.<p>There was almost no learning curve, despite being in an entirely different language. The core architecture, data structures, and concepts were the same.<p>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.<p>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.
      • nicce5 hours ago
        &gt; There was almost no learning curve, despite being in an entirely different language. The core architecture, data structures, and concepts were the same.<p>&gt; 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<p>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_fatal4 hours ago
          I doubt it.<p>If this were a major issue then you&#x27;d have to always nail your Rust architecture correctly from day 1 to handle future unknowns, and this isn&#x27;t the case.<p>More importantly, LLMs are more than capable of figuring out how to rearchitect code and they have no problem making sweeping refactors for you, especially throwaway experimental ones that were way too expensive to do not long ago.
    • bwfan1234 hours ago
      &gt; Not understanding to the core the software you wrote, is going to exploded in your face.<p>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.
    • ChoGGi7 hours ago
      &gt; 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.<p>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 &quot;proper&quot; manner.
    • furyofantares7 hours ago
      &gt; 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.<p>What do you think of <a href="https:&#x2F;&#x2F;scramblequest.app" rel="nofollow">https:&#x2F;&#x2F;scramblequest.app</a> and <a href="https:&#x2F;&#x2F;wordpeek.app" rel="nofollow">https:&#x2F;&#x2F;wordpeek.app</a> ?<p>I have never looked at any of the code for them<p>edit: Yeesh, misread your comment as &quot;word games&quot; not &quot;word clones&quot; and was very confused about the claim. Probably should have noted my confusion and re-read.
      • TaLiTr7 hours ago
        I <i>think</i> they might mean Word as in <i>Microsoft Word</i>. Just based on the feature list they were describing.
      • oblio7 hours ago
        Are you comparing 2 relatively simple games with... Word?<p>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&#x27;t keep them around.
        • reddalo7 hours ago
          &gt;Word is basically an operating system.<p>And .doc files are basically a memory dump.
          • galangalalgol7 hours 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&#x27;t value your sanity.
            • oblio6 hours ago
              So what you&#x27;re saying is that the files are basically a memory dump formatted as XML? :-p
              • galangalalgol6 hours ago
                A selective menory dump that when deserialized can ignore fields not present its version, but yeah.
          • someguyiguess7 hours ago
            Dump is a great word for it
        • furyofantares7 hours ago
          Haha, I misread as &quot;word games&quot; and was very confused about the claim.
      • rurban7 hours ago
        Nonsense. Provide&#x2F;create proper tests for all features, and let the LLM test and fix everything.<p>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.
    • nope10007 hours 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).
      • galangalalgol6 hours ago
        In my experience, it will go to every length to convince you it has ported code that it hasn&#x27;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&#x27;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.
    • someguyiguess7 hours 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.
    • otabdeveloper47 hours ago
      &gt; Using a LLM to translate a project in a short time, is by itself incredible.<p>Not really. Transpilers have existed since forever.<p>The hard part is all the edge cases. (And LLMs don&#x27;t solve this problem; they probably akshually exacerbate it.)
  • bendmorris3 hours ago
    As a comparison point, someone decided to try to fix the issues in the Zig original and is now claiming sub-second build times, plus fixed bugs, by modernizing the codebase and sticking with best practices - indicating that all of the issues that justified the rewrite were self-inflicted and addressable.<p><a href="https:&#x2F;&#x2F;ziggit.dev&#x2F;t&#x2F;buz-a-drop-in-replacement-for-bun-using-modern-zig-with-sub-1s-incremental-builds&#x2F;16891" rel="nofollow">https:&#x2F;&#x2F;ziggit.dev&#x2F;t&#x2F;buz-a-drop-in-replacement-for-bun-using...</a><p>I have no skin in this game, and the Zig version is <i>also</i> using LLMs if that helps take the culture war out of it. But, it has always been true in my experience that someone who really understands a problem space can outcompete someone who just throws resources (in hundreds of thousands of dollars of token spend) at it.
    • jeremyjh3 hours ago
      &gt; indicating that all of the issues that justified the rewrite were self-inflicted and addressable<p>The main issue that justified the rewrite were memory bugs, especially related to interaction with GC managed Javascript objects. There is no fully general way to prevent those bugs in Zig, and I don&#x27;t see any claims that they did so in Buz.
      • bendmorris3 hours ago
        They also complained about build times, and in fact the Rust rewrite started <i>immediately</i> after some other drama about Bun being unable to contribute back LLM-written changes to the Zig compiler to improve build times, and the Zig team rejecting them in principle. So while memory issues did become the focus later, I don&#x27;t think it was the entire story.<p>Migrating to Rust in a one-to-one translation with unsafe blocks does not make the code any more safe initially. It might provide tools to do a significant refactor that solves lifetime issues with Rust&#x27;s help, but I haven&#x27;t seen evidence that they&#x27;ve done that either. They&#x27;re also embedding a large C++ codebase, JavaScriptCore, so there are always going to be unsafe areas and touchpoints where memory issues could live, and Rust won&#x27;t magically solve them.
        • qudat3 hours ago
          It wasn’t just on principle that those changes were rejected, they also stated the bun changes were not actually that great or general enough to upstream.
    • Aurornis39 minutes ago
      This looks like a meme or attempt at a joke.<p>&gt; Bun is the quintessential AI slop project at this point. Inheriting that is no easy task. I don’t think any human should sacrifice their sanity untangling this mess of 600K lines of slop code. For that reason, I will not be accepting any human-coded contributions until I deem the project to be in a sane enough shape. It will likely require most subsystems to be rewritten.<p>They&#x27;re refusing to accept human-authored contributions. They&#x27;re using LLMs to do the work. The author says they&#x27;ll use LLMs to de-slop what they think is slop, and humans are banned from contributing.<p>I don&#x27;t think you should take this seriously.
  • Tehnix5 hours 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.<p>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.<p>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.
  • abalashov8 hours ago
    I did suspect that the triumphalist pronouncements, and even the seemingly honest and forthright deep dive, were a little premature.<p>This is a key problem with LLM exuberance: it&#x27;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&#x27;re competent, and the payoff is essentially immediate. The real bill comes in the mail much later.
    • yuye7 hours ago
      &gt;because one is tired of typing<p>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.<p>Those cases are rare, though.
      • abalashov7 hours ago
        Oh, I 100% agree. I&#x27;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_pe7 hours 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.<p>I am mostly bullish on AI capabilities, so from my perspective I don&#x27;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.
    • vdfs5 hours ago
      &gt; experienced devs<p>No one on their team had Rust experience
    • GhastBartender46 minutes ago
      &gt; so from my perspective I don&#x27;t see why we should be skeptical that frontier LLMs guided by experienced devs can translate whole libraries like that<p>There&#x27;s a laundry list of reasons to be skeptical about LLM results in general. The biggest one is that LLMs are excellent at creating output that <i>looks</i> right but is nevertheless still wrong.<p>In this particular case, there&#x27;s also a specific reason: This is obviously a marketing stunt regardless of whether the claimed results hold up. Anthropic has a long history of just lying and making shit up, so any results are subject to extra scrutiny.
    • dogleash3 hours ago
      You see this response because the port of Bun from Zig to Rust does not have anything to teach us about Zig, Rust or porting between languages with LLMs.<p>There are so many non-quantifiable properties to evaluate of the &#x27;before&#x27; and &#x27;after&#x27; codebases. Choices and preferences to be had about languages, language porting in general, and LLM coding.<p>After all that, pretend we could have a clear convincing distillation of the port and want to go apply the lessons learned. If someone doesn&#x27;t get LLM porting results as good as Bun did, or it cost them substantially more in tokens, then they&#x27;re &quot;holding it wrong.&quot; If someone is underwhelmed by Bun&#x27;s results, then it was just a proof of concept and the models have gotten so much better in the last 6 months anyway you can&#x27;t compare.
  • losvedir8 hours ago
    I&#x27;m not sure Anthropic even cares about &quot;releasing&quot; 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&#x27;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.
    • mikeocool7 hours 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.<p>I imagine the $800k or whatever this has cost is coming out of Anthropic&#x27;s marketing budget, so they can make a big splash about it.
      • neuronexmachina6 hours ago
        &gt; If that is really what they are concerned with, they probably could have just had Claude Code rewrite Claude Code in rust<p>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.
        • SpicyLemonZest5 hours ago
          I agree, but this difference is very frustratingly omitted from the hype-sphere surrounding the rewrite, even though most software developers don&#x27;t work on a runtime with well-defined interfaces and behavior. I know a number of people who&#x27;ve developed severe FOMO that their projects take longer than 2 weeks and maybe it&#x27;s because they&#x27;re not AI native enough.<p>(I don&#x27;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.)
      • wrs4 hours 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.<p>[0] <a href="https:&#x2F;&#x2F;bun.com&#x2F;blog&#x2F;bun-in-rust" rel="nofollow">https:&#x2F;&#x2F;bun.com&#x2F;blog&#x2F;bun-in-rust</a>
    • usef-8 hours ago
      I very much doubt they would want to abandon the wider community. They do benefit from others using it.<p>To the contrary, I think any problem with this release would be jumped on harshly so they&#x27;re being more careful than usual. There&#x27;s not a rush for the community to move to 1.4 and any issues could poison the community trust.
      • egorfine5 hours ago
        Like this rewrite did not terminally poison trust?
    • epolanski4 hours ago
      Why wouldn&#x27;t they?<p>Bun is a major part of the web ecosystem, having it developed by them via AI, sounds like a gigantic pr win.
      • qudat2 hours ago
        It’s not. Node is part of the web ecosystem. Bun was a way to upsell paas
    • rienbdj8 hours ago
      Anyone know why? Can’t CC run on any JS runtime?
      • Atotalnoob7 hours ago
        Yes, but it’s slower on non-bun runtimes. Nowadays, I believe they bundle bun with CC<p>They chose to use a react rendering to native TUI renderer, which was a source of a lot of performance issues.<p>AFAIK, they have written a new renderer.
        • bigstrat20034 hours ago
          &gt; They chose to use a react rendering to native TUI renderer, which was a source of a lot of performance issues.<p>That&#x27;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&#x27;s <i>no</i> excuse for running React in a freaking TUI.
        • well_ackshually2 hours ago
          &gt;AFAIK, they have written a new renderer.<p>Which is equally terrible and has earned them every single rendering engineer in the world taking the piss out of them when they proudly announced it was as complicated as rendering a video game.
      • jFriedensreich7 hours ago
        because their js code is so bad and slow that they need the bun performance hacks and optimisations.
        • jdiff6 hours 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.
          • msdz6 hours ago
            Bun uses JavaScriptCore, which is Safari’s JS engine, for the actual interpreter portion of its runtime.<p>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.
          • jFriedensreich5 hours 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.
    • pornel7 hours ago
      It&#x27;s just a marketing stunt. They&#x27;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!<p>If it was about Claude Code itself, they could have rewritten it. They keep saying they don&#x27;t even write code any more, so it shouldn&#x27;t even matter what language it&#x27;s in.
  • xiphias27 hours 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.<p>I still believe it was the good decision, but I also know that I wouldn&#x27;t be the first person to run the release in prod.<p>I think Jarred should start making release candidates instead of releases to take some of the pressure off.
  • simonw6 hours 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.<p>Rewrites of this scale certainly justify long canary release periods!
    • tomlockwood5 hours ago
      I mention Anthropic dogfooding this in the article.
      • simonw5 hours ago
        In this sentence, sure:<p>&gt; Anthropic is dogfooding this, the machine is still ticking along, and Anthropic employees are directly involved.<p>The problem is that your article&#x27;s central claim is that there hasn&#x27;t been a Bun release since the Rust rewrite - which can be read as implying that the rewrite hasn&#x27;t been used in production.<p>But it&#x27;s been used in production on millions of machines running Claude Code for over a month!<p>I think failing to acknowledge that hurts the credibility of the article. It&#x27;s been a heated discussion point in this thread already.
        • root_axis4 hours ago
          &gt; <i>which can be read as implying that the rewrite hasn&#x27;t been used in production.</i><p>Well it hasn&#x27;t. &quot;Production&quot; 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.
          • simonw4 hours ago
            It&#x27;s available for arbitrary use if you run the canary release.
            • philipwhiuk3 hours ago
              In no world does &quot;New iOS released&quot; mean &quot;there&#x27;s a developer preview&quot; which is what you&#x27;re proposing.
        • tomlockwood5 hours ago
          I link to Jarred&#x27;s writeup on bun.com, where you&#x27;ll note he mentions that its being used on Prisma and Claude Code.<p>I don&#x27;t agree that using something in a very specific environment is the same as a wide release.<p>I trust readers will either know the backstory or read the articles I link to. Such is life if they don&#x27;t.
          • simonw4 hours ago
            Why are you resistant to adding a sentence to the article that notes that Claude Code uses the rewrite?<p>Do you think it would weaken the article?<p>When I said it would improve the credibility I did mean it. My instinct on reading the article this morning was &quot;this person doesn&#x27;t know that Claude Code runs on Bun, which weakens their credibility in presenting the argument they are making here.&quot;
            • tomlockwood4 hours ago
              Please feel free to write an article that corrects my mistakes.
              • simonw4 hours ago
                I try not to publish articles that call out mistakes by other people just for the sake of it. I&#x27;ve written a fair amount about the Bun rewrite already - <a href="https:&#x2F;&#x2F;simonwillison.net&#x2F;search&#x2F;?q=bun%20rust" rel="nofollow">https:&#x2F;&#x2F;simonwillison.net&#x2F;search&#x2F;?q=bun%20rust</a>
  • CrzyLngPwd7 hours ago
    Just a couple more 100hr weeks of debugging, and the last 80% will be done :-)
    • germandiago7 hours 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.<p>and ho, the bloat, do not forget the bloat, which is technical debt towards the future.<p>I am not anti-ai per-se, but I consider the software I write as a <i>prouct</i> to add features to and <i>maintain</i> 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...<p>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.<p>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.<p>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.
  • orsenthil1 hour ago
    I think, we all are phrasing this wrong. Bun was &lt;strike&gt;rewritten&lt;&#x2F;strike&gt; retooled in Rust by AI with only ensuring integration tests and usage tests succeed. That&#x27;s similar how to a C program was compiled to binary or Typescript was transpiled to Javascript and run. We didn&#x27;t make a very big deal of it then, and I think, we should see this operation as a similar higher level source to source translation, which machines have been doing.<p>Writing code is a different thing.
    • rootnod31 hour ago
      Transpiling and a LLM hallucinating some code that _somehow_ passes the tests is not really the same thing though.
  • reliabilityguy8 hours 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.
    • furyofantares7 hours ago
      They also would have produced a team of engineers that knows the Rust codebase.
      • root_axis4 hours ago
        &quot;Knowing the codebase&quot; seems like an antithetical philosophy to LLM driven engineering orgs.
        • shimman1 hour ago
          Well the purpose of the tool is to automate more specialized labor so any knowledge that could benefit the worker has to be downplayed or stigmatized.
      • busterarm6 hours ago
        This is assuming your engineers don&#x27;t leave for higher-paying roles elsewhere. The market might be cold generally but for engineers working at these frontier AI companies it&#x27;s red-hot.<p>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.<p>One public company I was at lost nearly 2&#x2F;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&#x27;ve had a slow exodus of senior talent since as the firefighting has become constant.<p>AI adoption has only accelerated problems for them.<p>We&#x27;ve taken this &quot;only two years and then leave&quot; philosophy to an extreme and now companies are totally justified in not investing in their engineers anymore.
        • ambicapter6 hours 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).
          • busterarm5 hours ago
            I&#x27;ve been in this industry for a few decades at this point and I was around when this meme was started.<p>It was purely about maxing your compensation because changing jobs nets you more than promotions &amp; raises.<p>I&#x27;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&#x2F;advice only really applies at a few companies and people have adopted it no matter where they work. There&#x27;s not enough growth&#x2F;hiring at 95% of companies to even come close. The Peter Principle is also a real thing. Everyone&#x27;s competence has a ceiling.<p>There&#x27;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&#x2F;acquiring at larger companies.<p>Now I do agree that companies haven&#x27;t been investing in their engineers, but that doesn&#x27;t also mean this isn&#x27;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.<p>For the vast majority of companies the average tenure of an engineer sits between 18 and 30 months. They&#x27;re also mostly hiring young engineers in their 20s. As an employer what is your upside to making such investments before they&#x27;re at least mid-career? A lot of people seem to want the world and offer nothing in return for it.
            • swiftcoder5 hours ago
              &gt; It was purely about maxing your compensation because changing jobs nets you more than promotions &amp; raises.<p>You don&#x27;t view it as a problem that companies consistently compensate new hires higher than they are their experienced employees?<p>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.
              • busterarm4 hours ago
                &gt; You don&#x27;t view it as a problem that companies consistently compensate new hires higher than they are their experienced employees?<p>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&#x27;s not necessarily their fault, but companies definitely are aware of this.<p>Personally I tend to value growth of my skillset over growth of income and that has largely informed my movement. I move when there&#x27;s no longer interesting work if the compensation is at least fair. I&#x27;ve never been about comparing myself to others -- especially when most of my peers&#x27; left the industry after 5-10 years.
                • swiftcoder37 minutes ago
                  &gt; a lot tend to work hard early and then for various reasons taper off<p>And you don’t think that has anything to do with incentives (or lack thereof)?<p>&gt; I&#x27;ve never been about comparing myself to others<p>Doesn’t have to be about comparing oneself to others. More about the cost of living increasing because software engineering salaries are rising around you…
    • Tinkeringz8 hours ago
      I feel your estimate of tokens is a few orders of magnitude off, it’s on the low side.<p>I use more (albeit cached) when centering a div.
      • Hasnep8 hours ago
        I think they missed a $ sign, i.e. they meant $100k of tokens
      • rezonant8 hours ago
        This is where we&#x27;ve come to where people proudly proclaim using an AI to do what is a single line of CSS.
        • d0mine6 hours ago
          &quot;centering div&quot; is a classic problem (&#x2F;trauma&#x2F;meme) that sounds trivial but had no universal solution (until 2017?).
          • rezonant2 hours ago
            And has a dead simple one today.<p>Also worth noting simple horizontal centering of divs was never a problem, margin: auto was defined in CSS Level 1 in 1996 [1].<p>It was vertical centering that took a very long time to crack, which really became trivial with Flexbox which was first drafted in 2009[2] but became available unprefixed in browsers between 2012 and 2014 [3] about 13 years ago.<p>[1] <a href="https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;REC-CSS1-961217" rel="nofollow">https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;REC-CSS1-961217</a><p>[2] <a href="https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;2009&#x2F;WD-css3-flexbox-20090723&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;2009&#x2F;WD-css3-flexbox-20090723&#x2F;</a><p>[3] <a href="https:&#x2F;&#x2F;caniuse.com&#x2F;flexbox" rel="nofollow">https:&#x2F;&#x2F;caniuse.com&#x2F;flexbox</a><p>Subnote: I&#x27;m not counting the display: table hacks.
      • reactordev8 hours ago
        100k tokens is your pre-prompt and your CLAUDE.md as well as a few files from your root.
      • moralestapia7 hours ago
        What a great joke.<p>I will have to steal it for an upcoming AI tools meeting I have at work.<p>Also, pretty clever as centering a div w&#x2F; CSS has been notoriously difficult to achieve.
    • rcxdude6 hours 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.
      • reliabilityguy2 hours ago
        &gt; Doing both at once is much harder.<p>I think with sequential approach (translate -&gt; make idiomatic) it is easier. However, I am not sure that monetary difference is going to be as stark as $165k vs 3 engineers&#x2F;year. Especially, if you consider that no one knows that is what in the code at the end.<p>Sure, you can argue that now it doesn’t matter — agents and all that, but I am not so sure.
    • nozzlegear3 hours ago
      IMO a team of engineers (presuming this is pre-AI) would have improved the existing Zig codebase, rather than spent time and money on a Rust port in the first place. In fact, I still think most teams of engineers would choose to improve what they have even now, circa AI.
    • tcfhgj7 hours ago
      I doubt file by file rewriting takes as much work as rewriting and refactoring the code - especially at this scale.
    • witx5 hours 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
    • irishcoffee8 hours ago
      &gt; produced idiomatic rust<p>I keep seeing this. What is &quot;un-idiomatic&quot; rust?
      • TazeTSchnitzel7 hours 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.<p>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.<p>I don&#x27;t think this latter stage has actually happened with Bun&#x27;s codebase. The result of the Rust rewrite in Bun&#x27;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).
        • insanitybit4 hours ago
          &gt; 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.<p>You can use deterministic linting for `unsafe` usage, have agents target `unsafe`, etc. It&#x27;s pretty easy. You can even run `miri` against the code and give that as a tool for LLM feedback. I&#x27;ve done this all before and it works fine.<p>&gt; The result of the Rust rewrite in Bun&#x27;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).<p>I&#x27;m unconvinced that this is true. How could you tell? You only know about the rust bugs because rust makes them grep&#x27;able&#x2F; trivial to verify, there&#x27;s no way of knowing which bugs existed in zig that didn&#x27;t translate. Regardless, the problem is now trivial to understand in Rust and start to target.
        • skeledrew6 hours ago
          &gt; one that an unsupervised LLM rewrite is probably not even going to attempt.<p>Why not? A complete test suite exists, so it just boils down to &quot;reimplement this code to reduce the number of &#x27;unsafe&#x27; references, while keeping the tests passing&quot; (the last part isn&#x27;t even needed since Claude loves to run tests and linters anyway).
          • TazeTSchnitzel4 hours ago
            An LLM definitely <i>can</i> 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.
            • skeledrew4 hours ago
              &gt; LLMs have a tendency to follow the path of least resistance<p>That&#x27;s a really strong motivation for the Rust port. It&#x27;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 &quot;unsafe&quot; 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.
              • TazeTSchnitzel40 minutes ago
                …only if you actually force the LLM not to use `unsafe` somehow! And one must remember that `unsafe` can have all sorts of non-local effects. One way to be maliciously compliant (or in the LLM&#x27;s case, I guess it&#x27;s more incompetence than malice) is to make a “safe” function that does an `unsafe` operation for you, and then replace every usage of that unsafe operation with your “safe” function. You can remove hundreds of unsafe blocks that way <i>without any improvement in safety</i>.
      • vessenes8 hours ago
        Presumably lots of stuff wrapped in &#x27;unsafe&#x27;. I&#x27;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 &#x2F; borrow checker &#x2F; etc. etc.
        • irishcoffee7 hours ago
          So &quot;unidiomatic&quot; rust means, &#x27;don&#x27;t use these parts of the language even though they&#x27;re first-class citizens?&#x27;<p>How odd. Lot of mental gymnastics going on there.
          • flohofwoe7 hours ago
            The Bun author himself writes that the port is not idiomatic Rust:<p><pre><code> 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. </code></pre> (from: <a href="https:&#x2F;&#x2F;bun.com&#x2F;blog&#x2F;bun-in-rust" rel="nofollow">https:&#x2F;&#x2F;bun.com&#x2F;blog&#x2F;bun-in-rust</a>)<p>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&#x27;t &quot;Zig-idiomatic&quot; and apparently riddled with problems. That doesn&#x27;t inspire much confidence in the LLM-translated Rust version tbh.
            • skeledrew6 hours ago
              &gt; That doesn&#x27;t inspire much confidence in the LLM-translated Rust version tbh.<p>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).
          • williamdclt6 hours ago
            &gt; &quot;unidiomatic&quot; rust means, &#x27;don&#x27;t use these parts of the language even though they&#x27;re first-class citizens?&#x27;<p>that is indeed a roughly accurate definition of what &quot;unidiomatic&quot; means
          • tribaal7 hours ago
            It&#x27;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 &quot;overuse&quot;.<p>Eg. goto&#x2F;jump, bare &quot;except&quot; statements in python, etc... In Rust, unsafe has its uses and is a first class language feature, but it certainly isn&#x27;t idiomatic to use it to mimic access patterns from other languages (unless absolutely necessary).
          • ModernMech7 hours ago
            It means &quot;don&#x27;t misuse parts of the language in ways that circumvent best practices&quot; one of which is &quot;keep unsafe regions as small and few as possible&quot; not &quot;never use unsafe&quot;
          • vessenes7 hours 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 &quot;unsafe&quot; memory access patterns extremely bounded and heavily inspected. I think that&#x27;s a fair and admirable goal.
      • throwaway6137463 hours ago
        [dead]
  • rao-v1 hour ago
    I don&#x27;t quite understand the focus on the token cost of this rewrite. Obviously, we should examine if this rewrite is good, effective, good for the product etc., but the token cost seems ... not important?<p>The marketing value of this to Anthropic (if Anthropic even cares, this might just be the Bun team selling past the close) is to show that such a rewrite is possible and delivers engineering value. If exactly this project is $800K today, it&#x27;ll be $200K and then $80K soon, so it&#x27;s not so important to the story that it&#x27;s cheap, just that a big &quot;cool&quot; rewrite is possible, and delivers velocity to the buisness.
    • lawn1 hour ago
      I&#x27;d say it&#x27;s an important data point if you&#x27;d want to do something similar yourself.
  • smb061 hour ago
    I do believe they were trying to use CodeRabbit to review their re-written code. <a href="https:&#x2F;&#x2F;www.coderabbit.ai&#x2F;blog&#x2F;ai-can-migrate-your-entire-codebase-reviewing-it-is-another-story" rel="nofollow">https:&#x2F;&#x2F;www.coderabbit.ai&#x2F;blog&#x2F;ai-can-migrate-your-entire-co...</a>
  • coderdatapoint1 hour ago
    I just got a github notification on an old Bun bug report when it was still coded in zig. The bun-bot had completely solved the bug in the new rust codebase, added comprehensive tests, did the write up, pushed the commit all without human interaction. The fix looked sound and changed minimal lines of code. This AI is the real deal. Programmers should be concerned.
  • podgorniy7 hours ago
    &gt; I hadn’t seen the numbers for the CI&#x2F;CD costs of Buildkite, and as you might have noticed from above, some PRs were written by Anthropic employees.<p>The leaked code of the claude had switch flag where claude pretends to be employee. You can&#x27;t trust&#x2F;expect that those PR&#x27;s were authored by people.
    • germandiago7 hours ago
      &gt; some PRs were written by Anthropic employees<p>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.<p>Something does not match here...
  • muglug8 hours ago
    This post doesn’t make sense. It <i>was</i> rewritten in Rust. The rewrite itself is complete (no more Zig).<p>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.
    • pizza2347 hours ago
      &gt; This post doesn’t make sense<p>The author&#x27;s assumption is that a rewrite is not just a mechanical translation of code - it&#x27;s also a state of stability. And no release, for the author (I agree) means no stability.<p>It&#x27;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_318 hours ago
      Author kept &quot;going&quot; in title because there has been no minor&#x2F;major release in last two months which unusual for this project if you review the older releases.
      • muglug8 hours ago
        A major rewrite in another language is also unusual for this project.<p>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.
        • chmod7757 hours ago
          &gt; It took TypeScript a year to go from announcing tsgo to releasing TypeScript 7.0.<p>These are not comparable at all. The bun &quot;rewrite&quot; really is more of a translation of a software that is mainly dogfooded, created with an at best loose regard for a wider ecosystem.<p>TypeScript 7.0. by comparison is not just a translation from one language to another. It&#x27;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.<p>Also where bun really is just a runtime implemented with a bunch of glue code plus supporting tooling, TypeScript is <i>much</i> 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&#x27;ll likely just break some discrete part.
          • dminik4 hours ago
            It&#x27;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:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;typescript-go&#x2F;discussions&#x2F;411#discussioncomment-12476218" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;typescript-go&#x2F;discussions&#x2F;411#d...</a><p>&gt; But this wasn&#x27;t a compiler redesign, and the TypeScript to Go move was far more automatable and more one-to-one in its mapping.<p>So basically the opposite of what you&#x27;re saying.
          • skeledrew6 hours ago
            &gt; The bun &quot;rewrite&quot; really is more of a translation of a software that is mainly dogfooded, created with an at best loose regard for a wider ecosystem.<p>This seems self-contradictory. If it&#x27;s just a translation, doesn&#x27;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.
            • chmod7755 hours ago
              &gt; This seems self-contradictory.<p>It&#x27;s not.<p>Passing an existing test suite just moves the optimistic lower bound to incidental compatibility, it doesn&#x27;t move it to intentional - &quot;regard&quot; implies you gave it thought.<p>Plus, it&#x27;s not just about code: it&#x27;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&#x27;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&#x27;s N-API module because of a regression not caught by your suite they&#x27;re now between a rock and a hard place.<p>The good news is that there&#x27;s nobody there to notice. The bun userbase is miniscule* compared to TypeScript&#x27;s.<p>* negligible? irrelevant? laughably small? I&#x27;m struggling to find an adjective that does the difference justice.
              • skeledrew2 hours ago
                That &quot;incidental compatibility&quot; point is a good place to start. Unless there are serious gaps in the test suite, one can have high confidence that there&#x27;s no regression from the pre-fork version in documented behavior.<p>What kind of migration path beyond 0 regression do you think is needed? And if the latest Zig version is no longer available, how were at least 2 forks based on it submitted to HN? And what kind of release are you expecting when the team is working to fully migrate to the port (so far it&#x27;s still marked canary)? If someone&#x27;s using an untested (ie. very likely unpublished) API, well it sucks to be them but they should know the risks.<p>And again the self-contradictory argumentation. If the userbase is as miniscule as you imagine then your criticisms are essentially meaningless. No ecosystem worth giving a migration path and nobody&#x27;s N-API module breaking because of a regression, right?
          • TiredOfLife4 hours ago
            TypeScript 7.0 was literally a line by line translation. With essential features necessary for adoption still like a year off.
        • virajk_317 hours ago
          Yes, its because Anthropic took over and wanted to showcase their LLM capabilities by porting such a complex codebas.
          • taormina7 hours 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”.
    • rk068 hours 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.<p>Hence, the author concludes that rust rewrite is not complete as bun in rust is not released yet.<p>I agree with author&#x27;s POV.
      • davidgtonge8 hours ago
        The rust version is being used by Claude Code though - which is a fairly large product!<p>I was hoping for more push back against <a href="https:&#x2F;&#x2F;bun.com&#x2F;blog&#x2F;bun-in-rust" rel="nofollow">https:&#x2F;&#x2F;bun.com&#x2F;blog&#x2F;bun-in-rust</a> - which is pretty thorough and has some decent arguments and reasoning for why they did the rewrite.
        • reactordev8 hours ago
          I think they meant “released and available for use” rather than just out in the wild.
          • thevinter7 hours ago
            It is available for use: `bun upgrade --canary`
            • strobe2 hours ago
              it doesn&#x27;t imply that lot legacy apps won&#x27;t crash in prod when it will be actually released. Cool that some complex app is working but is nothing proving that everything will be fine when everyone will try to upgrade.
        • flohofwoe7 hours ago
          How much of the Bun&#x2F;Node API surface does Claude Code actually use though? Conceptually it&#x27;s a relatively simple TUI application.
        • nullsanity8 hours ago
          Yeah, but it&#x27;s a TUI that has more bugs and worse performance than any other TUI in history. It&#x27;s not like we&#x27;d notice a user after free.
    • Aurornis6 hours ago
      &gt; Various people have claimed that Bun in Zig had a lot of tech debt. If they’re to be believed,<p>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.
      • IsTom6 hours ago
        If what they&#x27;re claiming is true then what were they supposed to do? Go &quot;Hey guys, it&#x27;s the biggest project in Zig and it sucks, don&#x27;t look at it&quot;? Not exactly a good PR move.
    • abalashov8 hours ago
      &gt; Perhaps all this activity is paying down some of that debt.<p>Perhaps. But were that the case, one would think they&#x27;d be quite eager to say so.
      • muglug8 hours ago
        Maybe they will!<p>Are you expecting them to live-tweet their work or something?
        • abalashov7 hours ago
          Based on the way they live-tweeted (as it were) their rewrite and their other publicity stunts? Yes, actually.
        • tough8 hours ago
          jared was OK making this rewrite as an experiment branch in the public<p>why shouldnt upcoming work be as public as the rewrite itself was?
          • skeledrew6 hours ago
            You may continue to hold your breath. You may die as a result. The maintainers continue to do what they want regardless.
    • cowl8 hours ago
      tech dept is not a problem. to paraphrase captain Jack sparrow. &quot;even if it were the most indepted working software project, IT WORKED&quot;. On the other side of the medal we have a rewritten software that although it&#x27;s trumpeted for it&#x27;s rewrite speed, it is not showing the same Release speed as the manualy written, &quot;tech dept ridden&quot; old one.
  • pianopatrick2 hours ago
    At what point should I trust projects like this?<p>I&#x27;ve heard stories of LLMs changing tests to get all the tests to pass instead of actually fixing code. So I&#x27;m not sure I trust it just because tests pass. I also think that tests do not and cannot check everything.<p>I also don&#x27;t trust it just because it compiles in Rust. The Rust compiler does not check everything.<p>So at what point do projects like this cross from &quot;untrusted&quot; to &quot;trusted&quot;?
    • simonw2 hours ago
      &gt; I&#x27;ve heard stories of LLMs changing tests to get all the tests to pass instead of actually fixing code.<p>That&#x27;s very easy to prevent. Don&#x27;t let them edit the tests! Run the test suite against a reserved copy.
      • pianopatrick2 hours ago
        That makes sense to me as a tactic to prevent that problem.<p>But the article talks about how so much code was written so fast. Seems to me that to create that much code that fast you have to have AI produce both the code and the tests.<p>So I am not sure in this project if the AI can edit the tests or not. I assume that because this is Anthropic the AI is doing as much as possible, which would include editing tests.
  • amazingamazing8 hours 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
    • jeltz8 hours ago
      They bought the maintainers, not the code.
      • amazingamazing7 hours ago
        Why though? Isn&#x27;t AI supposed to take care of such things?
        • atonse4 hours 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.<p>Otherwise all of us would just be able to build bun via a prompt.
    • quikoa8 hours ago
      To me it just looks like a marketing stunt.
  • nickcw7 hours ago
    Maybe it would have made more sense for Anthropic to rewrite Claude Code in rust, and cut out the middle man (bun)?
    • leobuskin7 hours ago
      Nope, they want shared artifact(s) between web and desktop (not sure what do they have in mobile apps) clients (Chat&#x2F;Cowork&#x2F;Code&#x2F;CC-cli), so TS is the way to go. It’s a reasonable choice made by engineers.
  • internet20007 hours ago
    I don&#x27;t get it. Because they haven&#x27;t cut a new arbitrary version number, we&#x27;re denying it got done (in their perspective) and being used in a massive product already?<p>If you&#x27;re being pedantic, no it&#x27;s not &quot;done,&quot; but nothing ever is.
    • joks7 hours ago
      It&#x27;s not &quot;done&quot; if it&#x27;s not stable and released. It&#x27;s being canary tested by Claude Code users essentially but it&#x27;s still being heavily worked on with tons of $ being poured into it and there&#x27;s still no sign of them considering it stable and ready to go. That&#x27;s the point of the article.
    • skydhash7 hours ago
      &gt; and being used in a massive product already?<p>One single product, AFAIK, and one ladden with bugs and issue too.
  • simonw5 hours ago
    One metric I thought might be interesting with respect to the Rust rewrite is the number of &quot;unsafe&quot; occurrences in the code.<p>I was optimistic those would be going down over time but it looks like they&#x27;ve stayed pretty constant: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48966569#48967630">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48966569#48967630</a>
    • pohl5 hours ago
      Does that data exclude FFI wrappers, which necessarily must be unsafe? If not, don’t put much stock in it.
      • simonw5 hours ago
        No, it&#x27;s a raw count.<p>I get that there&#x27;s a baseline of unsafe that&#x27;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.
        • tomlockwood5 hours ago
          I don&#x27;t think that&#x27;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.
          • insanitybit4 hours ago
            I think there&#x27;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&#x27;m surprised that this isn&#x27;t a higher priority target for them.
  • knighthacker2 hours ago
    There&#x27;s probably a ton of intangible factors to this, but how do you measure the ROI on this?
  • jadar1 hour ago
    This doesn&#x27;t answer the question it asks.
  • yearesadpeople8 hours ago
    &gt; _&quot;...Canny...&quot;_<p>What a time to be alive
    • nchmy7 hours ago
      Came to point this out as well. Very bizarre that it was capitalized. Italics or bold might even have been acceptable...
    • rob748 hours ago
      Yeah, I noticed that too and kept wondering who this Canny was that the author wants to be? Felt a bit un-Canny...
      • tomlockwood8 hours ago
        More proof that it was written by a human!!!
    • whobre7 hours ago
      Still have no idea what that means…
      • arcwhite7 hours ago
        <a href="https:&#x2F;&#x2F;www.merriam-webster.com&#x2F;dictionary&#x2F;canny" rel="nofollow">https:&#x2F;&#x2F;www.merriam-webster.com&#x2F;dictionary&#x2F;canny</a><p>It means shrewd.<p>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
  • mawadev7 hours ago
    I&#x27;m gonna say it bluntly: I don&#x27;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&#x27;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!
    • ifwinterco7 hours ago
      Something about bun always rubbed me up the wrong way (I even hate the name), but I couldn&#x27;t really explain why.<p>Thankfully now I have some good material to post-rationalise my intuitive dislike
    • podgorniy7 hours 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 &quot;drama&quot;.<p>We can&#x27;t have commited and involved people working on opensource stuff and simultaneously avoid drama when their sence of identity&#x2F;beliefs&#x2F;pride is devalued.
  • vortegne8 hours ago
    I didn&#x27;t follow the thing too closely when it happened. Sure, I was aware of the big picture. But wow, I didn&#x27;t expect that after all this noise there still hasn&#x27;t been a release? That&#x27;s just crazy to me.<p>I shouldn&#x27;t be surprised though, of course. Giving any credit or slack to a high-valuation LLM company is a silly endeavor.
    • jeltz8 hours ago
      It was expected. These LLM rewrites seem to work amazingly at first and then you realize there is a ton of work remaining.
  • 7e2 hours ago
    The Rust compiler suffers from a number of crash bugs and nondeterminism, and they won&#x27;t accept AI diagnoses or fixes, so Rust has become an unreliable partner for software development.<p>If you&#x27;re going to do serious development with Rust, I suggest forking the compiler. Upstream your fixes to a fork which takes AI contributions, or fork your own. Or keep all of your improvements private, that works just fine.
  • tomlockwood8 hours 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&#x27;d be counted as 5 for the purposes of the graphs. I may fix this later but, yeah.
    • hahahaa8 hours ago
      Hope you find that job :) nice work experience, looks very ethical focused.
    • alienbaby8 hours ago
      what kind of difference from the actual numbers does it result in?
      • tomlockwood8 hours 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.
  • luciana1u7 hours 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_7 hours ago
      &quot;Nobody knows&quot; is not a neutral sign however, Anthropic should be able to provide that visibility
    • tomlockwood7 hours ago
      That&#x27;s absolutely correct!
  • IshKebab7 hours ago
    This doesn&#x27;t answer the question posed in the title unfortunately. I am none the wiser about how it&#x27;s going. The author just <i>speculates</i> that the rewrite isn&#x27;t actually complete.
    • tomlockwood7 hours ago
      &gt; I am none the wiser about how it&#x27;s going.<p>You and me both friend!
  • qarl26 hours ago
    Coincidentally - I&#x27;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.<p>But sadly HN is hiding my post... :(<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49069383">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49069383</a><p>EDIT: I&#x27;d love to hear why I&#x27;m downvoted.
    • insanitybit4 hours ago
      It&#x27;s pretty off topic&#x2F; irrelevant and it&#x27;s self promotion.
      • qarl23 hours ago
        An example of an LLM porting code is off topic to a project where the issue is entirely about an LLM porting code?<p>Can you explain that more?
        • insanitybit2 hours ago
          No, I don&#x27;t think it warrants explanation. If you think it&#x27;s on topic, I&#x27;d suggest adding more context and relating it to the parent post rather than just linking to your own project.
          • qarl22 hours ago
            Ah - my bad. I thought it was obvious that a toy project facing the same issues would be a good playground for experimentation on the topics being argued.<p>Going forward, I will strive to not make leaps that my audience can&#x27;t follow.
  • khanhnguyen83866 hours ago
    [dead]
  • z0ltan7 hours ago
    [dead]
  • greenlimetea3 hours ago
    Rust devs are so obsessed with writing things in Rust that Rust was re-written in Rust.
    • jadar1 hour ago
      Self-hosting a language used to be standard practice. These days that&#x27;s become a bit more controversial, but I definitely wouldn&#x27;t lump that in as a sign of obsession.
  • brap8 hours ago
    If you’ve ever worked at a tech company you already know the answer without reading any further
    • raincole8 hours ago
      Yeah, the answer is that it&#x27;s gonna working fine for most users.
      • zzf7 hours ago
        [dead]
  • Xenoamorphous7 hours ago
    &gt; we’re approaching $800k in money spent on this rewrite.<p>That’s peanuts, if not the shells of the peanuts, for a project and company of this magnitude
    • _pdp_7 hours ago
      How does that help 99.9% of all other companies though?
      • Xenoamorphous7 hours ago
        Some thoughts:<p>- just because it doesn’t help 99.9% of the companies today it doesn’t mean it won’t help them tomorrow<p>- 0.01% of the companies employ a much bigger percentage of people<p>- 99.9% of companies won’t need to do a project of this magnitude
        • jraph3 hours ago
          This rewrite is showcased by Anthropic to sell AI rewrites to other companies.<p>If it turns out the rewrite cost stupid amounts of money and leads to a bad outcome, it&#x27;s just a misleading ad.<p>We developers now need to explain that to illuminated management and colleagues.
        • nevertoolate6 hours ago
          So you think if a company can&#x27;t spend 1 million USD on a rewrite which has almost zero impact on performance, possibly net negative on maintainability it also can&#x27;t have 500k LOC codebase either? Oh come on...
    • tomlockwood7 hours ago
      Ohhhhh for a world where that&#x27;s peanuts for an open source project.