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

Sdílet
Vložit
  • čas přidán 1. 06. 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

Komentáře • 65

  • @s1nistr433
    @s1nistr433 Před 8 měsíci +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.

  • @jijieats
    @jijieats Před 8 měsíci +6

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

  • @Ma1ne2
    @Ma1ne2 Před měsícem

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

  • @HumanoAI
    @HumanoAI Před 8 měsíci +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 Před 8 měsíci +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 Před 8 měsíci +1

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

  • @brewzonekeeone5724
    @brewzonekeeone5724 Před 8 měsíci

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

  • @Ahmedorefay
    @Ahmedorefay Před 8 měsíci +24

    We need nextJs 13 course

    • @Codevolution
      @Codevolution  Před 8 měsíci +23

      Waiting for a little more stability with Server actions

    • @sjzz
      @sjzz Před 8 měsíci

      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_ Před 8 měsíci

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

    • @-WandreW-
      @-WandreW- Před 7 měsíci

      Nextjs doc is very easy to read

  • @asfnobambu
    @asfnobambu Před 8 měsíci

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

  • @ahsanmumtaz2918
    @ahsanmumtaz2918 Před 8 měsíci +3

    Very detailed comparison Vishwas💌

  • @hotaryuzaki
    @hotaryuzaki Před 8 měsíci

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

  • @yfzhangphonn
    @yfzhangphonn Před 8 měsíci

    This is so helpfu, thanks for sharing

  • @FredWang
    @FredWang Před 7 měsíci

    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 Před 3 dny

    Thanks man for the video

  • @narek7281
    @narek7281 Před 8 měsíci

    Thnak you for the amazing video

  • @iamspencerx
    @iamspencerx Před 2 měsíci

    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.

  • @dearfrankg
    @dearfrankg Před 8 měsíci

    nice video - thank you!

  • @_singledev
    @_singledev Před 8 měsíci

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

  • @irahazda
    @irahazda Před 8 měsíci +1

    Vishwash is really the godfather of explaining things.

  • @randomforest_dev
    @randomforest_dev Před 8 měsíci +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 Před 8 měsíci +1

      Bun still in development and not ready for prod

    • @d34d10ck
      @d34d10ck Před 6 měsíci +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.

  • @bassam.2023
    @bassam.2023 Před 8 měsíci +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 Před 8 měsíci

      yes, i believe bun supports all node api's

  • @sabuein
    @sabuein Před 7 měsíci

    Thank you.

  • @akshayrathore3612
    @akshayrathore3612 Před 8 měsíci

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

  • @prakashsingh-hs3hn
    @prakashsingh-hs3hn Před 8 měsíci

    Bro when are you going to release express course

  • @alvarobyrne
    @alvarobyrne Před 8 měsíci

    writing desktop apps with bun, how far?

  • @Tiberiumgod
    @Tiberiumgod Před 8 měsíci +1

    Waiting for the NodeJS response to Bun.

  • @user-rt8nh4xl8u
    @user-rt8nh4xl8u Před 2 měsíci

    Man you're great

  • @sumonbarai178
    @sumonbarai178 Před 8 měsíci

    nice video

  • @anthonybarnes
    @anthonybarnes Před 8 měsíci

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

  • @mushthakmohd8195
    @mushthakmohd8195 Před 8 měsíci +1

    How to use bun js in react native

  • @marlonm3108
    @marlonm3108 Před 8 měsíci

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

    • @Codevolution
      @Codevolution  Před 8 měsíci

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

  • @coolemur976
    @coolemur976 Před 8 měsíci +2

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

  • @popa4957
    @popa4957 Před 8 měsíci

    bun playlist more incoming??

  • @CaptainsOfPubgm
    @CaptainsOfPubgm Před 8 měsíci

    Hello, which vs code theme you are using?

    • @priyankishore
      @priyankishore Před 8 měsíci +1

      Most probably Nord Native or other versions of the nord theme

    • @CaptainsOfPubgm
      @CaptainsOfPubgm Před 8 měsíci

      @@priyankishore thank you bro!

  • @user-xx5oe4vk7l
    @user-xx5oe4vk7l Před 8 měsíci +1

    I want windows version!! 😮

  • @RahulJaiswal-fe1st
    @RahulJaiswal-fe1st Před 8 měsíci

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

    • @Codevolution
      @Codevolution  Před 8 měsíci +5

      No, I will continue in a while again :)

    • @popa4957
      @popa4957 Před 8 měsíci

      @@Codevolution please continue with bun

  • @gnom-om
    @gnom-om Před 8 měsíci

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

  • @hoboman342
    @hoboman342 Před 20 hodinami

    Blinking cursor is crazzyy, shit is cursed

  • @funnynews341
    @funnynews341 Před 8 měsíci

    zig not release v 1.0 but Bun has :))

  • @bhaskardixit1564
    @bhaskardixit1564 Před 8 měsíci

    😊😊

  • @prashantindurkar
    @prashantindurkar Před 8 měsíci +1

    Next.js 13 crash course

  • @vishalupadhayay6391
    @vishalupadhayay6391 Před 8 měsíci +1

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

    • @maximus1172
      @maximus1172 Před 6 měsíci

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

  • @manojmohapatra986
    @manojmohapatra986 Před 8 měsíci +2

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

  • @ichiroutakashima4503
    @ichiroutakashima4503 Před 8 měsíci

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

  • @HumanoAI
    @HumanoAI Před 8 měsíci

    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.

  • @valmanway
    @valmanway Před 8 měsíci

    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.

  • @morchedlafferty8614
    @morchedlafferty8614 Před 6 měsíci

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

  • @Vibezepam
    @Vibezepam Před 8 měsíci

    4th

  • @irfanansari1895
    @irfanansari1895 Před 8 měsíci +1

    2nd

  • @YouS4ckIt
    @YouS4ckIt Před 8 měsíci

    No real windows support.

  • @adarsh-chakraborty
    @adarsh-chakraborty Před 8 měsíci +1

    3rd

  • @devendrapandey4557
    @devendrapandey4557 Před 8 měsíci +1

    First