11 comments

  • robertlagrant 10 minutes ago
    > I’ve cut over 11,000 lines of completely dead code from Bun. I can’t think of another project whose codebase was so neglected as to reach 11K lines of dead code. I’ve also rewritten and modernized parts of the codebase, trying to rely more on Zig’s stdlib. In the process, countless bugs have also been fixed.

    This is astonishing. Is anyone else surprised at this dead code figure? Is it a feature of large projects I've just never noticed?

    • asibahi 2 minutes ago
      The Zig compiler compiles lazily and does not detect dead code.
  • 1a527dd5 0 minutes ago
    This is what I like to call performative performance programming. I _LOVE_ performance as much as the next guy. And build times should be as close to 0 seconds as possible.

    But this is approaching diminishing returns and I guarantee that your CURRENT bottleneck is not build times.

  • wsdn 52 minutes ago
    > To this end, LLMs will be used extensively to deslop...

    So we're using LLMs to clean up the code that LLMs ruined in the first place? We’ve reached peak tech in 2026.

    • axod 34 minutes ago
      LLMs are as good as the operator directing them.
      • lionkor 28 minutes ago
        The error bars on that one are too large to fit on screen, but yes.
      • epolanski 11 minutes ago
        I'd say as thorough rather than good.

        Skilled engineers may still vibe and not care. Beginners may be thorough and experiment and ask till they get the design right even if they don't spot it immediately, just caring does a lot.

        • left-struck 1 minute ago
          Incidentally I’ve always thought that about working on cars
    • maccard 36 minutes ago
      I’d say I fall in the “AI skeptic but willing to use it” category. If LLMs can actually clean up after themselves it would actually be a game changer.
      • onlyrealcuzzo 18 minutes ago
        I'm about to release some tooling that's been very effective for me.

        Essentially, there's a few ways LLMs write "bad" code that is different from how people write "bad" code.

        We've got pretty good tooling to catch the ways people write bad code - it just happens to be much easier to do with static analysis (and is less noise prone).

        The ways LLMs write bad code is typically 1) bad architecture - hard to detect in the ways that are really important, 2) unnecessary state and control flow (and decisions based on state), 3) bad / inadequate tests.

        Methods to detect these problems have existed for ages, but they've never caught on because it's typically too difficult to tune them to have high signal / noise for humans, and AFAIK - no one else tried putting them all together and seeing how LLMs work with it.

        LLMs are great at sorting through signal / noise -> so you can help surface potential issues with metrics that would be too noisy for humans, but seems to work pretty well for LLMs to find the source of architectural problems and design better solutions (from my experience - may be biased, I built the tooling to literally solve this problem for the main project I'm working on).

        • mirekrusin 8 minutes ago
          You forgot to include link to your tool.
      • figmert 34 minutes ago
        They can. You just have to steer them
    • epolanski 12 minutes ago
      This is the present and future, willingly or not.

      Engineering is about design and plan and architectural integrity and qa. Not writing code anymore.

      • onlyrealcuzzo 10 minutes ago
        > Not writing code anymore.

        If you were an L6+, it was already not really about that.

        It's kind of amazing to me that people think the only thing engineers do and the only value they bring is writing code.

  • christophilus 1 hour ago
    Bun, but managed by someone who values code quality? Sign me up. It’s a Herculean task, though.
    • koolba 40 minutes ago
      > It’s a Herculean task, though.

      I believe it’s spelled Sisyphean.

      • _bent 16 minutes ago
        the fifth labour of Hercules was cleaning the Augean stables, which this undertaking seems very much alike
  • arendtio 45 minutes ago
    Why is there so much buzz around bun? Can't we just go back to node + npm + vitest + vite?
    • virajk_31 8 minutes ago
      Breaking: JavaScript developers create three new frameworks/kits while you were reading this sentence.
    • andyfleming 42 minutes ago
      There’s a project Nub that is meant to bring the benefits of bun to node, which you might appreciate. It also may articulate that gap as to why people like using bun.

      https://nubjs.com

      • kachnuv_ocasek 40 minutes ago
        What are the benefits, though?
        • christophilus 26 minutes ago
          With Bun, I have a single dependency which gives me: bundling, runtime, package management, test runner, SQLite, Postgres connectivity, S3 utilities, sane APIs (compare Bun.serve to whatever the heck I had to do in Node), routing…

          Basically, Bun is giving us something between Rails and the .Net framework for Typescript. It’s become an (almost) standalone runtime for running low-dependency apps.

        • dhamidi 32 minutes ago
          This:

              node + npm + vitest + vite
          
          Turns into:

              bun
          
          That's the benefit
          • stevefan1999 5 minutes ago
            I rather replace bun with deno, given that now both bun and deno are written in Rust, and Deno have even more node compatibility than bun. Deno and Node both runs on V8, while Bun runs on JSC, and Deno has a killer feature that you don't have to even run npm install to use package, you can just top-level import or await import an URL (given that you allowed it with a command prompt or bypass it competely with -A but discouraged).

            I've used Deno, CucumberJS and Playwright to write E2E test suites. Zero npm install and not even deno.json or package.json

          • chuckadams 3 minutes ago
            To say nothing of `bun install` being about 50 times faster than npm, and disabling most post-install hooks by default.
          • Octoth0rpe 23 minutes ago
            Throwing out a couple more benefits: bun is faster than node, dramatically so in some specific cases (websockets). Bun also has been doing a great job at building out core libs that probably don't make sense for node, such as the native inbuilt sqlite module, thereby reducing your dependency graph.

            People shit on the node/npm ecosystem relentlessly for the typical inauditable deep dependency graph, and bun makes substantial improvements to that situation.

    • rapind 44 minutes ago
      At this point, I'm not sure anyone should still be using npm.
    • coldtea 39 minutes ago
      >Can't we just go back to node + npm + vitest + vite?

      The mere enumeration shows how bad it is.

      • mnahkies 33 minutes ago
        I think it's a pretty reasonable split of responsibilities, and not uncommon.

        Eg: JDK + maven + junit + tomcat

        Making these components pluggable is arguably how we get innovation (eg: yarn/pnpm, jest/vitest, etc)

    • epolanski 9 minutes ago
      Node is too slow, plain and simple.

      I've experimented a lot with all nodes up to 24 latest and bun has consistently led to sizeable speed ups.

  • fg137 1 hour ago
    Very interesting, but without an ecosystem I doubt this person can keep maintaining it long term. Bun users who don't care about slop will continue to use Bun, those who care will go back to Node.js, and there isn't much left for this project. It is a gigantic task to maintain a JS runtime and add features.
    • epolanski 8 minutes ago
      What if adding features wasn't the scope and just providing a fast and memory efficient runtime that doesn't pretend to be everything at once.
    • andsoitis 12 minutes ago
      > Bun users who don't care about slop will continue to use Bun

      What slop does Bun create or cause?

    • ForHackernews 42 minutes ago
      What's the situation with Deno these days? I care about having a fast/secure/modern JS environment and I've been burned by node.js in the past.

      I'm not that optimistic for Bun with all the recent churn/slopcoding but the pitch of "use this one good TS tool for everything" is appealing.

  • mintflow 16 minutes ago
    saw another project based on pre-rust bun and this is another one never use bun and sometimes this make me wonder, are we enter a phase the supply way > requirement or people just build stuffs and not care serious usage anymore?

    As a software engineer these days, I can't say i do not use Agent to help work done, but i am really a bit of tired to see so much solutions while not talk about what problem they are trying to really solve

  • Retr0id 1 hour ago
    > 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.

    Very funny to see a "no humans allowed" contribution policy, and the absurd part is that the rationale actually makes sense.

    I'm interested to see where this goes. Is it possible to "deslop" something of this magnitude?

    • childintime 1 hour ago
      As AI will only get better, accepting contributions can also be automated.

      The tendency is that open source will die as a collective effort, except for some hardcore stakeouts. AI will become the repository owner. The rest of us just doesn't care enough.

      This puts users in control.. just pay and you get your feature in a version generated just for you.

      • titularcomment 1 hour ago
        This does anything but put the user in control. I also think that arbitrary new features on established platforms are not in any close future as it already burns many tokens for you to instruct your agent to fork something and add x, y, z.
        • childintime 2 minutes ago
          AI will improve more rapidly than you imagine it will. Open source has been built around rituals that will go the way of the LP: for the nostalgic enthusiast only. This project already shows nobody cares enough now, let alone a year from now.

          AI is already better than 90% of my colleagues, and none of them can write an exploit, or instantly draw on the breadth of information it can. So all they do is chaperone. Well, that will be gone too in a few years. What will remain are example repositories that serve as the starting point to add your own special feature. The curated set may well become private again, as a competitive advantage.

      • hiccuphippo 56 minutes ago
        >AI will become the repository owner

        So Open Source transitions to Public Domain.

  • rishav_sharan 1 hour ago
    [flagged]
    • fg137 58 minutes ago
      This is a personal pursuit from what I can tell. I wouldn't use any opinion or judgment from this person to reach any conclusion about "the Zig community". This is just unnecessary.

      If this person can stick to these goals and keep maintaining the project (which I do highly doubt), I don't see how this can possibly be a bad thing.

    • fp64 59 minutes ago
      I don't see the irony? LLMs are much better at cleaning up a mess. Using LLMs not properly created that mess in the first place.
  • kristoff_it 41 minutes ago
    To me the most interesting fact about this fork is that it has proven that Bun could have had fast builds all along.

    To be fair, there are caveats still in place today: Zig incremental compilation does not yet support aarch64 and only the linux linker supports binary patching, but it's just a matter of time before all major platforms are conquered.