Piped

Great watch but to summarize:

  • Bun beats Node/Yarn for package installation

  • Somewhat better API/DX in some ways.

  • Loses poorly in testing performance

  • Tons of incompatibility issues/performance issues in other areas.

General summary: Just don’t use Bun yet, seems like it needs some more time in the oven.

  • BeanCounter@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    37
    arrow-down
    1
    ·
    1 year ago

    Am I wrong to think that if you are REALLY crippled by the "slow speed" of node, you just shouldn't be using JS from the beginning?

    • MonkCanatella@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      15
      ·
      1 year ago

      In my opinion, any advancement is worthwhile, even if current consensus is that it’s over-optimization. And if it starts tying up its loose ends, it’ll no doubt benefit node developers as well. Healthy competition and all that.

    • nnullzz@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      I’m with you on that. I’ve built dozens and dozens of node apps both professionally and for personal projects and yeah maybe the package installs could be faster, but the overall performance of the server has also been pretty good. If node is slow for you, maybe there’s some other optimizations to be made rather than switching the next new things as a solution.

    • Virkkunen@kbin.social
      link
      fedilink
      arrow-up
      12
      ·
      1 year ago

      Pretty much. Their benchmarks seem to be VERY cherry picked to skew things in their favour, specially the testing framework part, where bun compares its speed to one of the slowest testing frameworks out there (jest) and claim victory.

      I'm very glad that this guy actually made benchmarks instead of just reading what's on bun's site before posting a video about it.

  • tun@lemm.ee
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    1 year ago

    Recently change node+npm+esbuild to bun runtime+package management+bundling and happy with the result.

    The project is a static site built with middleman, tailwind, postcss and some frontend libraries.

    It was simpler to work with for me. Node is way faster than ruby and so node speed was never an issue for me. But bun install is noticeably faster even for a small project.