Biggest WTF news I’ve read today. I’m not a web dev so this doesn’t affect me, but this is bizarre.

We get a closer first look at what’s around the corner for AI coding tools, and make Bun better for it

This incredibly popular tool is now going to merge with an AI company and shift gears to be turned into some forced AI hype machine. Yipee! Exactly what all the devs were hoping for! /s

  • spartanatreyu@programming.dev
    link
    fedilink
    arrow-up
    16
    ·
    8 小时前

    Serious question for anyone who actually uses Bun:

    Why are you using Bun instead of Deno or Node?

    If you would have asked me 10 years ago, what were the biggest problems with JS as a whole, I would have stated:

    1. Poor type safety

    2. No standard library which leads people into dependency hell

    3. Poor security (installing a project should not even allow the possibility of key stealing or ransomware)

    4. No runtime ergonomic immutable data structures with fast equality checks (looked like it was going to be resolved with the Records and Tuples proposal, but it was withdrawn and discussions are continuing in the composites proposal)


    Today I consider point 1 mostly resolved and point 4 a problem for TC39 and engine implementers, and not resolvable by runtimes themselves.

    That leaves us with problems 2 and 3.

    I see Node having poor solutions for 2 and 3.

    I see Bun having poor solutions for 2 and 3.

    I see Deno having great solutions for 2 and 3.


    As far as I can tell, people have chosen Bun for either hype or speed reasons.

    Hype doesn’t seem like an important reason to choose Bun since it’s always fleeting and there’s enough investment in the industry to keep each runtime going for a long time.

    I do see speed being a moderate issue with JS, but that’s mainly due to:

    • dependency install times which should be a one time cost, and which can be reduced anyway by using a standard library

    • slow framework slop, which isn’t really a runtime issue.

    So I’m not sure speed fits as a reason for choosing Bun.

    I’m not sure what the other reasons are, but I’m genuinely curious.

    If you’re using Bun in projects today, why have you chosen bun?

  • Taevas@beehaw.org
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    9 小时前

    Man, Bun’s great, I’ve been using it since 1.0.0 essentially so that REALLY sucks

    Like some of the other people commentating on this thread, I’ll look into using something else, but it’s really sad and frustrating that I need to switch things over and over again

  • Admiral Patrick@dubvee.org
    link
    fedilink
    English
    arrow-up
    103
    ·
    15 小时前

    Oh goddamn it. I just started doing projects in Bun and moving some of my older projects to it.

    Fuck fuck fuck fuckity fuck fuck.

  • paequ2@lemmy.today
    link
    fedilink
    English
    arrow-up
    39
    ·
    13 小时前

    I started using Claude Code myself. I got kind of obsessed with it.

    Over the last several months, the GitHub username with the most merged PRs in Bun’s repo is now a Claude Code bot. We have it set up in our internal Discord and we mostly use it to help fix bugs. It opens PRs with tests that fail in the earlier system-installed version of Bun before the fix and pass in the fixed debug build of Bun. It responds to review comments. It does the whole thing.

    Seems like they’ve bought into the hype.

    • sga@piefed.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 小时前

      i am not a web dev, so please correct me if i am wrong, but a runtime is essentially a specific version of browser in some capacity, more comparable to blink in some sense (minus the html+css parts). so there is a js engine (v8 or firefox’s spider if i am not wrong) and that essentially just executes the js, but it needs stuff around it (think for example io or cli interface). none of the run times implement independent js engines, as they are really hard, but surrounding stuff is relatively easier, and likes of deno/node/bun implement that.

      And as other commenter said - it has other stuff too, for example a package manager, transpiler (most common would be converting typescript to js i think), bundler (just makes a bundle kinda like java jar), etc.

    • chicken@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      16
      ·
      10 小时前

      A bundler, a transpiler, a runtime (designed to be a drop-in replacement for Node.js), test runner, and a package manager - all in one.

      Bun’s single-file executables turned out to be perfect for distributing CLI tools. You can compile any JavaScript project into a self-contained binary—runs anywhere, even if the user doesn’t have Bun or Node installed. Works with native addons. Fast startup. Easy to distribute.

  • justOnePersistentKbinPlease@fedia.io
    link
    fedilink
    arrow-up
    47
    ·
    14 小时前

    Not overly surprising.

    Google and Salesforce have been “developing” new features and products this way for at least the last 13 years?

    1. Find promising small business/startup
    2. Buy it with your war chest money
    3. Force them to integrate with your systems and live inside your walled garden.
      • atomicbocks@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        17
        ·
        9 小时前

        Amazon.com acquired parent Quidsi, Inc. for $545 million on November 8, 2010. Prior to Amazon’s purchase, Amazon sold diapers at steep losses in order to undercut Diapers.com and drive down the purchase price of the company.

        No. Not if they really want to buy you.

        Source

        • justOnePersistentKbinPlease@fedia.io
          link
          fedilink
          arrow-up
          7
          ·
          5 小时前

          The whole Amazon diapers is insane.
          The burgeoning monopoly was being noticed as early as 2011. I know this because it is why the CEO of one chain here planned out and started offering grocery deliveries.

      • mrgoosmoos@lemmy.ca
        link
        fedilink
        English
        arrow-up
        15
        ·
        12 小时前

        yes, so long as you don’t them putting pressure on your suppliers and helping your competitors, I guess

      • jonathan@piefed.social
        link
        fedilink
        English
        arrow-up
        5
        ·
        11 小时前

        It depends on how much of the company you gave away when you took on investment. If you no longer have the controlling share you can be overruled.

      • GissaMittJobb@lemmy.ml
        link
        fedilink
        arrow-up
        5
        ·
        12 小时前

        Getting bought is often the whole point for a founder, since that’s one of a few ways for you to get a big payday.

        Getting bought only really happens if a majority of the shareholders agree to it, so you can reject it as much as you want.

  • rozodru@pie.andmc.ca
    link
    fedilink
    English
    arrow-up
    16
    ·
    13 小时前

    yeah as a dev myself I saw this coming a few months back and stopped using Bun so this doesn’t surprise me. They got on the cursor hype train awhile back and that was enough for me.

  • fubarx@lemmy.world
    link
    fedilink
    arrow-up
    16
    arrow-down
    5
    ·
    13 小时前

    It’s not a bad outcome. Bun is cool but has $0 revenue and some hand-wavy thing about future paid cloud services. This way, larger companies will give them a more serious shot than they would a small startup.

    It still doesn’t have a revenue story, but it’s now strapped onto the side of one of the few AI companies with a decent chance of surviving the next AI Winter. And if Anthropic goes sideways, the Bun engineers can fork the code and keep going.