My Favorite New Features in Bun 1.0

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • Built-in TypeScript support, an included bundler, extremely fast package installations - that's what the new Bun 1.0 promises us. Is that true?
    -- my links
    Next.js SaaS: www.splitter.gg/
    Discord: / discord
    GitHub: github.com/jos...

Комментарии • 77

  • @4ndrs_dev
    @4ndrs_dev Год назад +47

    i love that you can just run typescript directly without transpiling manually, and the transition is seamless

    • @joshtriedcoding
      @joshtriedcoding  Год назад +5

      yeah, it feels so natural to just get up & running. I was really confused why the typescript setup is so tedious with nodejs by default

    • @everyhandletaken
      @everyhandletaken Год назад

      I’m looking forward to testing this again, my first try with a ts file gave me a segfault with 1.0 🫣

    • @youknowhu
      @youknowhu Год назад +2

      This might be the biggest change!
      Funny how one of the reasons svelte gave up ts was the need for transpiling.

    • @invinciblemode
      @invinciblemode Год назад

      @@joshtriedcodingthat’s because typescript came 4 years after nodejs was created. So obviously nodejs didn’t design it’s runtime around typescript. 🤦‍♂️

    • @TheTentacola
      @TheTentacola Год назад +1

      ​@@invinciblemodeJust so you know, internally bun still transpiles ts to js.
      Just like deno, it is just hidden.
      While it would be a big change for node, the actual js runtime would not need to change

  • @jon1867
    @jon1867 Год назад +21

    Speed aside, it's fkn mind boggling to me how many pain points in the JS ecosystem that bun is addressing at once.

  • @JerrenT
    @JerrenT Год назад +18

    Bun looks pretty good from what I can see. I'll probably wait a little before using it fully in new projects just to let bugs get resolved, but some of the features definitely look promising.

    • @joshtriedcoding
      @joshtriedcoding  Год назад +3

      same thing, there's probably going to be quite a few hiccups at the start

    • @cjpartridge
      @cjpartridge 11 месяцев назад +1

      The great thing is, you can just use bun a long side your existing environment, and if something goes awry, immediately swap back to node etc.I installed it last week thinking I'd just have a play with it, I haven't touched node/npm since.

  • @charliesta.abc123
    @charliesta.abc123 Год назад +10

    My favourite feature is that you can import and require in the same file!

    • @joshtriedcoding
      @joshtriedcoding  Год назад +1

      oh right!

    • @everyhandletaken
      @everyhandletaken Год назад +4

      This..
      Finally the end of cjs/esm hell 🤔
      I believe top-level await just works too?

  • @Blast-Forward
    @Blast-Forward Год назад +2

    It also contains a BUN-dler?
    Ok, genug Wotzwitze, bin vor Lachen fast ver-req-t.

  • @remongrabu
    @remongrabu Год назад +6

    What do you think are the potential benefits of Bun in regard to Next.js development?

    • @joshtriedcoding
      @joshtriedcoding  Год назад +4

      really hard to say so early on, but I hope it makes things easier and especially faster there too

  • @bezvoshchuk
    @bezvoshchuk Год назад +1

    For years I wasn't so excited about new tool release. I hope Express and whole Node.js server-side ecosystem will update their vision from 2015 year state of mind.

  • @Slink1
    @Slink1 Год назад +4

    I have been using Bun for almost a year and it's awesome!
    Also, I can't believe people who knew it existed didn't already switch pnpm for this...

    • @familyguycuts510
      @familyguycuts510 10 месяцев назад

      How can you run it on windows? and where you host app made with bun?

    • @Slink1
      @Slink1 10 месяцев назад

      You can use WSL for that.@@familyguycuts510

    • @Jeridi
      @Jeridi 2 месяца назад

      @@familyguycuts510 Use a VPS, make your work more smooth and comfortable

  • @Blast-Forward
    @Blast-Forward Год назад +6

    What are they using to track their work?
    Kan-Bun?

  • @NiklasZiermann
    @NiklasZiermann Год назад +2

    I dont believe that you're sorry for you bun-pun tbh 😂
    But anyway Bun looks really awesome, I agree!

  • @Chris-zt4ol
    @Chris-zt4ol Год назад

    Can't wait to use bun in production

  • @preyah2857
    @preyah2857 Год назад

    Man I can't believe that it's awesome

  • @WatashiwaWatashi-zw7hy
    @WatashiwaWatashi-zw7hy 4 месяца назад

    yeah bun is good, it's faster than node js. but ya we can't use it now, maybe we need to await around 7-10 years to use it on production. bcz we know, 4 years before, Deno was introduced but even in 2024, Deno still not a good choice for production grade app

  • @developer_hadi
    @developer_hadi Год назад +1

    Is it now ready for production?

  • @faizanahmed9304
    @faizanahmed9304 Год назад

    Just installed Bun on my wsl, its speed is amazing.

  • @creaky2436
    @creaky2436 Год назад

    If I used this, how would I deploy a full stack app with it? There’s no bun runtime environments, it’s too new. Maybe with a vps?

  • @miraj.
    @miraj. Год назад

    Thanks 🎉

  • @favouritejome
    @favouritejome Год назад

    Please how did you get bun working on windows?

  • @Muescha
    @Muescha Год назад

    I searched, but I couldn't find an answer: Does Bun also optimize the modules directory using symbolic links like pnpm?

  • @ShimizuIzumi
    @ShimizuIzumi Год назад +3

    i would use it, if the native Windows build would cover 100% of the features

  • @jepqmw
    @jepqmw Год назад

    "gazzlion" 💀💀

  • @enic-ma
    @enic-ma Год назад

    Info Ad / get some traffic! Then new video "Why I don't use Bun?"

  • @rustwithoutrust
    @rustwithoutrust Год назад

    I have already managed to make all of my projects use Bun instead of other package- and bundle-managers.

  • @gneiru
    @gneiru Год назад

    how do you use it on window? experimental or with wsl?

  • @binodsharma112
    @binodsharma112 Год назад

    I will use Bun with HTMX, jsx as template my engine to server

  • @kumarvishalben
    @kumarvishalben Год назад

    need support on cloud platforms

  • @Blast-Forward
    @Blast-Forward Год назад

    Was that a bun pun in the beginning?

  • @obiaboimmanuel8729
    @obiaboimmanuel8729 Год назад

    Yea its Bun O'Clock

  • @_codesan
    @_codesan Год назад

    Josh please create some video about web scraping again please 😢

  • @74Bagas
    @74Bagas Год назад

    now deno vs bun 1.0 please, from developer perspective.

  • @greeffer
    @greeffer Год назад

    🤔bun run fun 🤓

  • @ktappdev
    @ktappdev Год назад

    I clicked like because of the bun lol

  • @rtorcato
    @rtorcato Год назад +2

    Bun has a silly name, but it's aiming to replace a lot of tooling so you gotta take them seriously.

  • @thahashahrod
    @thahashahrod Год назад

    How did you download on windows?

    • @familyguycuts510
      @familyguycuts510 10 месяцев назад

      same question I guess we can use it with Windows Subsystem Linux but for me it's not working

  • @ahmedjaber8595
    @ahmedjaber8595 Год назад

    So, no more "npm install express" !!!

  • @jonny555333
    @jonny555333 Год назад

    I thought the runtime only works in widnows right now? All the other features arent supported on windows right now based on the docs.

    • @joshtriedcoding
      @joshtriedcoding  Год назад

      so you can currently only install bun on either mac, linux or wsl as far as I know - for me wsl worked just fine

  • @sonny5497
    @sonny5497 Год назад

    I tried bun yesterday and its very fast.

  • @quintencabo
    @quintencabo Год назад

    I literally uninstalled yarn yestday

  • @techh4ck936
    @techh4ck936 Год назад

    bro i can't install bun in my windows system. but how u running it?

  • @ivanlogiudice4464
    @ivanlogiudice4464 Год назад

    how did u install it in windows?

    • @harunalrd
      @harunalrd Год назад

      Wsl ofc

    • @joshtriedcoding
      @joshtriedcoding  Год назад +1

      it's called a windows subsystem for linux, basically allows you to run a linux terminal on windows

    • @franchocou
      @franchocou Год назад

      Windows version is avaible for experimental

  • @user-ir3yw8bs4i
    @user-ir3yw8bs4i Год назад

    Josh, mate, when are you not coding or reading docs? I bet you don’t even sleep :D

  • @rickdg
    @rickdg Год назад

    I mean, the number one thing everyone must be thinking is just drop bun into an existing project and get a performance boost. Is this real?

  • @blalmal10a
    @blalmal10a Год назад +2

    the real question is DOES IT MATTER? TYPESCRIPT DEAD