Bun vs Node.js - Everything You Need To Know!

Поделиться
HTML-код
  • Опубликовано: 31 май 2024
  • 📘 Courses - learn.codevolution.dev/
    💖 Support UPI - support.codevolution.dev/
    💖 Support Paypal - www.paypal.me/Codevolution
    💾 Github - github.com/gopinav
    📱 Follow Codevolution
    + Twitter - / codevolutionweb
    + Facebook - / codevolutionweb
    📫 Business - codevolution.business@gmail.com
    Bun vs Node.js - Everything you need to know!
    Explore the buzz around Bun, a new JavaScript runtime challenging Node.js in the ecosystem. Dive deep into benchmarks comparing Bun with Node.js, understand the nuances of V8 vs JavaScriptCore, and see how it streamlines the frontend and backend development process. From its efficient package manager that rivals npm, to its bundler compatible with React and Next.js, Bun offers a drop-in replacement with enhanced compatibility. Learn about its open-source nature, the role of Zig in its architecture, and how it integrates with Web APIs, all while ensuring faster startup times and efficient memory usage. Join me, as we navigate this evolution in the JavaScript world, touching upon its CLI, modules, transpiler, and more. Special mention to Jarred Sumner, the mind behind Bun. Let's decode the future of web applications!
    00:00 Intro
    00:23 What is Bun
    00:50 Why Bun
    01:22 Deno
    02:00 Project Setup
    03:15 1.JavaScript Runtime
    03:50 1.1 JavaScript Engine
    04:40 1.2 Transpiler
    07:01 1.3 CommonJS & ESM
    10:28 1.4 Web APIs
    12:04 1.5 Hot Reloading
    13:51 1.6 Nodejs Compatibility
    16:31 2. Package Manager
    18:08 3. Bundler
    20:35 4. Test Runner

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

  • @jijieats
    @jijieats 8 месяцев назад +6

    This was the most thorough and in-depth node/bun comparison I've see so far. Good job!

  • @Ma1ne2
    @Ma1ne2 Месяц назад

    This was exactly what I was looking for, thank you for making this video!

  • @HumanoAI
    @HumanoAI 8 месяцев назад +6

    Thanks for the work it’s good. I’m scanning a lot of bun videos it’s well done, regardless we need people building in depth projects not simple console tests. We need to see it in a full project.

  • @baderidrees
    @baderidrees 8 месяцев назад +1

    what an awesome teacher you are!🥳🥳🎉🎉
    I've seen some of the data structure course videos, and this depth video is also great!

  • @sakarsr
    @sakarsr 8 месяцев назад +1

    Wonderful video on comparing Bun and Node. Thank you for your time and have good health.

  • @s1nistr433
    @s1nistr433 8 месяцев назад +9

    Right now it's not in a usable state, I tried it and had all kinds of issues with Npm packages, like Fastify and Sequelize both gave major errors when using bun.
    That said, if anything will replace Node, this is it, and I'm sure it will eventually, it's just not there yet since not all of the Node APIs are implemented in Bun.

  • @Ahmedorefay
    @Ahmedorefay 8 месяцев назад +24

    We need nextJs 13 course

    • @Codevolution
      @Codevolution  8 месяцев назад +23

      Waiting for a little more stability with Server actions

    • @sjzz
      @sjzz 8 месяцев назад

      Just learn the older course and view any video about next 13.4. You not need a new course. That's how I did it.

    • @Imam.Mehdi_
      @Imam.Mehdi_ 8 месяцев назад

      ​@@Codevolutionmake backend courses... RUclips has few backend courses

    • @-WandreW-
      @-WandreW- 7 месяцев назад

      Nextjs doc is very easy to read

  • @brewzonekeeone5724
    @brewzonekeeone5724 8 месяцев назад

    This is incredible! The tech you covered was good too 😂

  • @ahsanmumtaz2918
    @ahsanmumtaz2918 8 месяцев назад +3

    Very detailed comparison Vishwas💌

  • @asfnobambu
    @asfnobambu 8 месяцев назад

    Very educative also about contents beyond the Node/Bun comparison... Please, let us know when Bum support NextJS then I'll migrate to it.

  • @hotaryuzaki
    @hotaryuzaki 8 месяцев назад

    Great informations, so we can understand it deeply about the features of Bun

  • @yfzhangphonn
    @yfzhangphonn 8 месяцев назад

    This is so helpfu, thanks for sharing

  • @FredWang
    @FredWang 7 месяцев назад

    Is there a specific vs code plugin you are using to make the cursor blink when you are editing the code?

  • @aymenbachiri-yh2hd
    @aymenbachiri-yh2hd 2 дня назад

    Thanks man for the video

  • @narek7281
    @narek7281 8 месяцев назад

    Thnak you for the amazing video

  • @dearfrankg
    @dearfrankg 8 месяцев назад

    nice video - thank you!

  • @sabuein
    @sabuein 7 месяцев назад

    Thank you.

  • @randomforest_dev
    @randomforest_dev 8 месяцев назад +6

    Bun looks like a big thing. Would be nice if you can upload a video on how to connect to databases such as MySQL, Postgres, MongoDB, etc. and make a blazing fast full stack website or rest Api.

    • @lordpain007
      @lordpain007 8 месяцев назад +1

      Bun still in development and not ready for prod

    • @d34d10ck
      @d34d10ck 6 месяцев назад +1

      But remember. Bun is practically developed by just one developer in a very exotic programming language, which hardly anyone knows.
      Node, on the other hand, has hundreds of contributors and the loss of one developer does not immediately lead to the collapse of the entire project.

  • @_singledev
    @_singledev 8 месяцев назад

    I wonder how its performance compares to other backend languages, such as Go and Rust?

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

    Since the performance advantages happen when starting the project and not when running it, it's not as compelling as I thought it would be. Basically it's nice if starting a new project, but if I already have a Node project then it's not worth migrating over to Bun.

  • @akshayrathore3612
    @akshayrathore3612 8 месяцев назад

    How to work with large code base with more resusabale components which should be responsive as well we need videos on this topic

  • @bassam.2023
    @bassam.2023 8 месяцев назад +1

    I was about to start the Node.js Tutorial on this channel. I wonder if I can use bun and use all the same code???
    Thanks for another great video! 😀

    • @Zylops
      @Zylops 8 месяцев назад

      yes, i believe bun supports all node api's

  • @user-rt8nh4xl8u
    @user-rt8nh4xl8u 2 месяца назад

    Man you're great

  • @alvarobyrne
    @alvarobyrne 8 месяцев назад

    writing desktop apps with bun, how far?

  • @prakashsingh-hs3hn
    @prakashsingh-hs3hn 8 месяцев назад

    Bro when are you going to release express course

  • @irahazda
    @irahazda 8 месяцев назад +1

    Vishwash is really the godfather of explaining things.

  • @sumonbarai178
    @sumonbarai178 8 месяцев назад

    nice video

  • @mushthakmohd8195
    @mushthakmohd8195 8 месяцев назад +1

    How to use bun js in react native

  • @Tiberiumgod
    @Tiberiumgod 8 месяцев назад +1

    Waiting for the NodeJS response to Bun.

  • @marlonm3108
    @marlonm3108 8 месяцев назад

    Hi, may I ask if bun is needed for nextjs?

    • @Codevolution
      @Codevolution  8 месяцев назад

      You can use Bun as a package manager with Node.js :)

  • @user-xx5oe4vk7l
    @user-xx5oe4vk7l 8 месяцев назад +1

    I want windows version!! 😮

  • @CaptainsOfPubgm
    @CaptainsOfPubgm 8 месяцев назад

    Hello, which vs code theme you are using?

    • @priyankishore
      @priyankishore 8 месяцев назад +1

      Most probably Nord Native or other versions of the nord theme

    • @CaptainsOfPubgm
      @CaptainsOfPubgm 8 месяцев назад

      @@priyankishore thank you bro!

  • @RahulJaiswal-fe1st
    @RahulJaiswal-fe1st 8 месяцев назад

    Hey vishwas , what happened to react native course
    Is it stopped now ??

    • @Codevolution
      @Codevolution  8 месяцев назад +5

      No, I will continue in a while again :)

    • @popa4957
      @popa4957 8 месяцев назад

      @@Codevolution please continue with bun

  • @anthonybarnes
    @anthonybarnes 8 месяцев назад

    The question is how long before Bun is widely known and adopted?

  • @popa4957
    @popa4957 8 месяцев назад

    bun playlist more incoming??

  • @coolemur976
    @coolemur976 8 месяцев назад +2

    Lets wait until bun covers all basic functionality, then lets talk about performance. 🎭

  • @gnom-om
    @gnom-om 8 месяцев назад

    Only when they replace JSC with V8 Bun will be ready for production

  • @funnynews341
    @funnynews341 8 месяцев назад

    zig not release v 1.0 but Bun has :))

  • @bhaskardixit1564
    @bhaskardixit1564 8 месяцев назад

    😊😊

  • @prashantindurkar
    @prashantindurkar 8 месяцев назад +1

    Next.js 13 crash course

  • @vishalupadhayay6391
    @vishalupadhayay6391 8 месяцев назад +1

    Bun will take another 10 years to reach at the levels of Node js.

    • @maximus1172
      @maximus1172 6 месяцев назад

      javascript and its ecosystem is so trash, no matter what bs framwork there is

  • @manojmohapatra986
    @manojmohapatra986 8 месяцев назад +2

    Bun is not something extraordinary. Even a major version upgrade to the node can do the things.

  • @ichiroutakashima4503
    @ichiroutakashima4503 8 месяцев назад

    Sucks, Bun is great, but it's still not production ready on all platforms.

  • @HumanoAI
    @HumanoAI 8 месяцев назад

    Most speed wins for bun are packages? Then some parts still require Node.js ? No one has a whole tutorial? Except speed test on packages? We’re watching…so where are the Tutorials outside of packages. Most bun video echo the speed tests on the bun website. When will someone make tutorials on a full project.

  • @irfanansari1895
    @irfanansari1895 8 месяцев назад +1

    2nd

  • @morchedlafferty8614
    @morchedlafferty8614 6 месяцев назад

    Feels like there is a catch to it, but there isn't.

  • @devendrapandey4557
    @devendrapandey4557 8 месяцев назад +1

    First

  • @adarsh-chakraborty
    @adarsh-chakraborty 8 месяцев назад +1

    3rd

  • @valmanway
    @valmanway 8 месяцев назад

    Using the traffic congestion analogy, this would mean Bun is extremely inefficient and slow which is completely inaccurate. Please be careful making analogies like these. You don't solve the problem of traffic congestion by demolishing buildings for more highways and parking lots. Los Angeles California and Austin Texas have one of the largest most advanced highway systems in the world and they are completely congested with cars every single day.

  • @Vibezepam
    @Vibezepam 8 месяцев назад

    4th

  • @YouS4ckIt
    @YouS4ckIt 8 месяцев назад

    No real windows support.