The End Of Node.js? My Honest Thoughts

Поділитися
Вставка
  • Опубліковано 28 гру 2024

КОМЕНТАРІ • 118

  • @codedamn
    @codedamn  Рік тому +13

    Play with Bun in your browser here: codedamn.com/playgrounds?template=bun

  • @DoraTheExplorer-lu2in
    @DoraTheExplorer-lu2in Рік тому +74

    02:27 Bun version 1 is stable and production ready.
    04:54 BUN provides significant speed improvements and solves the ESM and common.js problem.
    07:21 Bun is a bundler that solves the common.js and ESM compatibility issue
    09:48 Bun is not a drop-in replacement for Node.js in all use cases
    12:15 Bun package manager is faster than Yarn by around half a minute for small to medium size packages
    14:42 BUN is a versatile tool that combines runtime, package manager, transpiler, test utility, bundler, and provides BUN-specific APIs.
    17:09 BUN 1.0 is a great innovation in JavaScript but should be cautiously adopted for heavy production workloads.
    19:33 TypeScript type checking is essential for building safe code
    Crafted by Merlin AI.

    • @atharvarane6165
      @atharvarane6165 Рік тому +5

      merlin ai is too good

    • @RAVIRAJLADHA
      @RAVIRAJLADHA Рік тому

      But, bun only improves the run time while installing npm.And server dont runs npm everytime. How does it improve the time when uploaded on the server?

  • @UliTroyo
    @UliTroyo Рік тому +63

    I've been using Bun since 0.1.2, and I've been gradually replacing Node as Bun adopted more of its functionality. It has been months since I've ran 'pnpm' anything, and haven't had any compatibility issues with any packages (though at first it was pure luck). Once Bun got Vite compatibility, it was over. I'm probably never using Node again, and not out of disdain, but because I don't see the point-Bun is much faster and more ergonomic.

    • @marcossouzajr1711
      @marcossouzajr1711 Рік тому

      bun + vite will be real very soon!

    • @pookiepats
      @pookiepats Рік тому

      @@marcossouzajr1711 already exist poser lol why pretend?

    • @gadgetboyplaysmc
      @gadgetboyplaysmc Рік тому

      What have you been building with Bun if I may ask? Asking because I also wanna build things with it. Heard Elysia's good, wonder how good that is compared to the Native Bun HTTP.

  • @sahilaggarwal2004
    @sahilaggarwal2004 Рік тому +33

    Actually the claim of bun having significantly faster than yarn is true, as bun takes a very good advantage of global cache, unlike yarn. So, if you are having multiple projects on same machine, you will definitely see signifincant improvments compared to first time installs.

    • @HussainFazaal
      @HussainFazaal Рік тому +5

      Heard this is not the case for macOS, though. They cited performance reasons for their decision

    • @gadgetboyplaysmc
      @gadgetboyplaysmc Рік тому +2

      Isn't this basically pnpm

  • @srikarksv1317
    @srikarksv1317 Рік тому +10

    I like your take on the speed & compatibility aspect! Everyone is focused on the numbers so I'm glad that you are covering the implication of adopting too. Hopefully this hype is not shortlived unlike most technologies in JavaScript world and people start actually using it for practical stuff.

    • @raunakmukhia2893
      @raunakmukhia2893 Рік тому

      Exactly! But I am glad people are finally considering speed and performance in javascript ecospace as important. I think bun manages to outperform nodejs because it's built on zig, which uses optimization techniques that are not available in vanilla C++. But optimization like freelists, userspace heap allocator, compiler instrinscis, etc. will bring nodejs upto bun level of performance. Game engines, high performance system and network applications almost exclusively written in C/C++ already have been using these optimizations for decades. It's just a matter of time before nodejs catches up to bun level of performance or even more.

    • @srikarksv1317
      @srikarksv1317 Рік тому

      @@raunakmukhia2893 I agree and looking at the more recent impressions of people after trying to use it for their heavy applications, it seems the performance boost is not that impressive. Which makes sense as they must have tested the performance on simple scripts but the production projects are not just that simple.

  • @iampavangandhi
    @iampavangandhi Рік тому +3

    Great Explanation Thanks for Sharing. Really miss your videos please make more like this.

    • @codedamn
      @codedamn  Рік тому +2

      Trying to get back. A bit of burnout + a lot of work on codedamn.com side.

    • @iampavangandhi
      @iampavangandhi Рік тому

      @@codedamn Thats great keep up the good work. Would really want a detailed video (whenever you have time) of you explaining the tech you use at codedamn, why you use that (deciding factors), and how you use that (architecture).

  • @CodeZakk
    @CodeZakk Рік тому +11

    You look very young without your beard. Thanks for your videos!!!

    • @GenZdev
      @GenZdev Рік тому +1

      😂 he is young

  • @smartinsilicon
    @smartinsilicon Рік тому +3

    The biggest change, IMO, is the use of JavaScriptCore in place of V8. If you're running apps for months or doing tons of allocations and GC, will it work as reliably?

  • @arcanernz
    @arcanernz Рік тому +4

    I’ve seen bugs as well with AWS lambda. So it’s definitely not fully tested on those platforms yet but give it a year and we’ll see where it’s at. Hopefully they’ll get a rust or zig type checker; that i will really give a lot of ppl reasons to switch their deployment pipeline to bun.

  • @dechobarca
    @dechobarca Рік тому +1

    Very nice video, thanks for sharing your honest thoughts about this. At the moment it's super easy to get excited about these new features, but you're putting a lot of trust into a private company as you mention in the video. And sure, they might have a great reputation at the moment, not trying to discredit anyone here, but realistically you can't predict what is going to happen 5 years into the future.

  • @LarsRyeJeppesen
    @LarsRyeJeppesen Рік тому +1

    Does Bun support workspaces? We have a mono-repo with many clients

  • @TheBlackmanIsGod
    @TheBlackmanIsGod Рік тому

    Why are my bun files hidden, when I go to the folder/directory on my computer there’s no files, when I navigate there on command line I can see the files???
    Why is this happening???

  • @electribe7
    @electribe7 Рік тому

    I think it will take some time until this will be production ready. Open question: is bun only faster, because it supports less than node.js at the moment? more compatibilty means automatically slower execution right?!

  • @shadevkumar575
    @shadevkumar575 Рік тому +2

    Bun is a gamechanger💯

  • @chukwuemekaajima8373
    @chukwuemekaajima8373 Рік тому +6

    I remember battling with CJS and ESM compatibility in a project specifically with the v3 of node-fetch (which is ESM only version), I must say the experience was not funny.

    • @a-yon_n
      @a-yon_n Рік тому +1

      esm-only packages are jokes

  • @rakshith8151
    @rakshith8151 Рік тому

    Ended not just nodejs but the whole js, switched to laravel, it blew my mind by how fast a development can be done🤯

    • @oceceli2
      @oceceli2 Рік тому

      As a Laravel developer, I feel like I'm cheating :D
      It's an all-in-one solution for any kind of website or web app. Welcome to this exciting world :)

  • @VirajChandra
    @VirajChandra Рік тому

    I don't feel the difference in the installation timestamps of node modules when it comes to npm vs bun. Bun actually ran slower on a macbook m1 256 GB model.

  • @voidmind
    @voidmind Рік тому

    Nice thumbnail :D

  • @FirstnameLastname-cw1my
    @FirstnameLastname-cw1my Рік тому +1

    So should I learn bun first or node js

    • @GughaGSrinivasan
      @GughaGSrinivasan Рік тому

      Bun could be just a fad…learn node first… nodes next increment will keep up with these metrics and make bun obsolete…

  • @dalyryl
    @dalyryl Рік тому

    does bun available already for running in netlify/vercel?

  • @f4ster
    @f4ster Рік тому

    Well Bun actually holds its claim true, the difference is really significant when on a Linux machine

  • @shadevkumar575
    @shadevkumar575 Рік тому

    Hi Mehul can you bring video on Fine-tuning with 3.5 turbo model?

  • @abhishekmehandiratta4241
    @abhishekmehandiratta4241 Рік тому +2

    Bun's compatibility with docker is questionable right now. A fresh next js app initiated with bun create doesn't work inside of docker, so I won't be using it anytime soon.

    • @elvispalace
      @elvispalace Рік тому +3

      Nobody recommends you to use it right now. You shouldn't change from one technology to another so quickly

    • @abhishekmehandiratta4241
      @abhishekmehandiratta4241 Рік тому

      @@elvispalace I was curious to check how it'll work with docker, I'm not switching over just yet

    • @pfdexter
      @pfdexter Рік тому

      @@elvispalace then why was it branded 1.0?

  • @Luxcium
    @Luxcium Рік тому

    I can not use bun because my _best friend_ said it was released *after september 2021*

  • @elvispalace
    @elvispalace Рік тому

    why about ram usage?

  • @twd2
    @twd2 Рік тому

    I think that's a rational decision to wait till things get clear, Bun stuff relative to many components !!!

  • @rashshawn779
    @rashshawn779 Рік тому +1

    Seem to me that bun can even replace hot reloading packages like vite. It has all the major component needed.

    • @a-yon_n
      @a-yon_n Рік тому

      Vite is doing better on hot-reloading, vite only reloads the files that have changed and the ones rely on them, but bun reloads all. Bun should learn from Vite on this topic.

    • @rashshawn779
      @rashshawn779 Рік тому

      @@a-yon_n Yes true. Bun does transpiles and reload those that did not change also. But I saw in the bun docs, they acknowledge this implementation is good enough for a starting point, but not the most optimal. Probably it will be optimised for a later stage.

  • @user-qr4jf4tv2x
    @user-qr4jf4tv2x Рік тому +1

    bun is very close to the current fastest rust framework axum

  • @bilza2023
    @bilza2023 Рік тому +1

    My Question is if some one has to move from node to Bun then why not Go-Lang ? Since Bun or Deno or even Node.js are no comparison to a full language like Go-Lang

    • @bolt7
      @bolt7 Рік тому +1

      For JavaScript/TypeScript. Moving to an alternative tool that's compatible with almost everything you have is in no way comparable to rewriting your program from scratch in another language.

    • @MrXperx
      @MrXperx Рік тому +1

      JS and TS are 'full' languages.

    • @elvispalace
      @elvispalace Рік тому +1

      This question doesn't make any sense bro

    • @marcossouzajr1711
      @marcossouzajr1711 Рік тому +1

      It´s about JS ecosystem! Nothing related to Golang

    • @GabrielGasp
      @GabrielGasp Рік тому +1

      Are you seriously asking this question? Are you seriously comparing a runtime change to an entire language change?

  • @aurangzebhusain8366
    @aurangzebhusain8366 Рік тому +2

    Its time to test... 🔥

  • @driyagon
    @driyagon Рік тому

    Why are there no comparisons with vite?

    • @codedamn
      @codedamn  Рік тому +1

      Vite uses esbuild internally, maybe that’s why?

  • @akifkhan2402
    @akifkhan2402 Рік тому

    What's your mean node js kill .. brother bun using like micro services api or making micro server not make product level application

  • @da40au40
    @da40au40 Рік тому +1

    yall should not be deceived. he prefers bun does not mean you prefer it, it's not all about a faster runtime, it's about the developers abilities. after bun this bun that, your app would break down on 100k users. scalability is always considered the biggest factor. be wise your program won't still be as fast as PayPal built with node and go.

  • @a_maxed_out_handle_of_30_chars

    good video :)

  • @ullaba_id
    @ullaba_id Рік тому +2

    I was remmber duno hype like this 😅😅

  • @eriikelnino6545
    @eriikelnino6545 Рік тому

    i really wont jump from node and nest js to bun ..

  • @abhishekkhande8564
    @abhishekkhande8564 Рік тому +3

    Its written in zig so its very fast

    • @MrXperx
      @MrXperx Рік тому +6

      Nodejs is written in c++ (both v8 and libuv) which can be just as fast as zig.

  • @yuridelossantos569
    @yuridelossantos569 Рік тому

    Bun won't able to end node js. It maybe faster but it is not everything. There are other factors other than speed considered.

  • @inaccessiblecardinal9352
    @inaccessiblecardinal9352 Рік тому +1

    If you want faster backends, why not just write go, Java or c#? If your backend needs are outpacing node, Javascript is probably the problem, not the runtime.

    • @harsh_g2543
      @harsh_g2543 Рік тому +7

      why not just write in Machine language

    • @ashwinrawat9622
      @ashwinrawat9622 Рік тому +6

      why not just solder some transistor into doing what you want 🙃

    • @truongan354
      @truongan354 Рік тому

      😁

    • @inaccessiblecardinal9352
      @inaccessiblecardinal9352 Рік тому

      @harsh_g2543 Those alternatives are all high-level languages.

    • @inaccessiblecardinal9352
      @inaccessiblecardinal9352 Рік тому

      @@ashwinrawat9622 Huh? Is the idea that the high-level languages I mentioned are "too close to the metal" for your taste?

  • @dextor_tv
    @dextor_tv Рік тому

    Bun claims to be very fast in their benchmarks. But, for me that's not big of a selling point. On the other hand, I'll use bun for rest of the features it provides.

  • @shawonbiswas1470
    @shawonbiswas1470 Рік тому +1

    The thing is bun is great all but don't hate on node cause it's open source and battle proven it's has to support previous version of things also and one thing to remember if node fails bun will also fail. Node can also do this extreme performance oriented things too but it will then break a lot of things too. And bun is vc backed so eventually they have to make money and who knows what will happen then. But it's good that bun is very fast and performance is good but that doesn't means node is bad and needs to be replaced. Thats why still java8 is the most used version of java in the industry.

  • @nickxox2257
    @nickxox2257 Рік тому

    bun appears great on their doc.. however after serious tests it is shit. they dropped quality for quantity. apps will break and drop connection..

  • @sivtech
    @sivtech Рік тому +1

    waiting for bun 2.0

  • @Nobita3303
    @Nobita3303 Рік тому +3

    I have some questions.
    1. How much DSA is needed for software dev and how did you learn it?
    2. Is competitive coding required and are you doing competitive coding?
    3. Are you a CSE student and what college?

    • @codedamn
      @codedamn  Рік тому +6

      1. No much. I learned it while learning programming/development generally.
      2. No. No.
      3. I am CSE'21 graduate from BITS Pilani Goa Campus, India

    • @SAsquirtle
      @SAsquirtle Рік тому

      ​@@codedamnwait so 2 years ago you made a vid where you mentioned you've worked as a software developer for 7 years. So if you graduated in 2021 then you got a software dev job when you were 15?

  • @MoinKhan_10
    @MoinKhan_10 Рік тому +4

    Many bun, pizza dough, taco shell will come but none can defeat the king node.js

  • @codermuyi
    @codermuyi Рік тому

    What really speaks to me is the global caching.

  • @developer_hadi
    @developer_hadi Рік тому

    Bun is production ready but you can't deploy it yet, funny!

  • @HisokaXKuroro1
    @HisokaXKuroro1 Рік тому

    In my opinion, the problem is server side javascript

  • @hashcode01
    @hashcode01 Рік тому

    Great review
    For me it's still not ready 🙂
    The Worker API is still experimental, and I'm using it in my projects

    • @gadgetboyplaysmc
      @gadgetboyplaysmc Рік тому

      Try it out for side projects until it is. Better than learning it now than when there's more competition later.

  • @winston022
    @winston022 Рік тому +2

    I feel bad for Deno

  • @developeroppa
    @developeroppa Рік тому

    unless it's fully supported in windows, nodejs ain't going anywhere

  • @Grinwa
    @Grinwa Рік тому +1

    Js community just got a huge improvement

  • @thinkofvicky
    @thinkofvicky Рік тому

    I want to ask some questions?
    I am CSE 1st year student I want to do good coding for carrier!
    So I am confused I want to give 6mnths to learn skill and after that I want to work as freelancer?
    What is the practical roadmap to learn MERN stack web and mobile apps ? Help me out I am totally beginniner!

    • @codedamn
      @codedamn  Рік тому

      Full stack learning path on codedamn is excellent. We used the technologies there to build codedamn itself codedamn.com/learning-path/fullstack

    • @aabbaayy
      @aabbaayy Рік тому

      go with mern stack watch akshay shain videos for understanding javascript deeply

    • @andreicalegari1837
      @andreicalegari1837 Рік тому

      First tip i'll give, MERN stack sucks for real world, it's all cool and nice for quick to-do apps, but when you're going to handle relation data, just use a relational database.

  • @sarowarhosen003
    @sarowarhosen003 Рік тому

    Nodejs CEO:- hy team let's rewrite our codebase with rust

  • @shaikh.quadeer
    @shaikh.quadeer Рік тому

    i like java ❤ dont like node express manually building everything from scratch

  • @DissectTheDocs
    @DissectTheDocs Рік тому

    Bro Where is your beard?

  • @kesor6
    @kesor6 Рік тому

    Solving the wrong problem faster, doesn't really do all that much in the grand scheme of things. Node.js doesn't need bundling. You can argue that bundling is useful for browser based applications, but for server-side applications bundling is useless.

  • @akpewlfried2123
    @akpewlfried2123 Рік тому +2

    Another solution that we absolutely do not need ! In a few years another person will come up with another solution ! Web development is absolutely horrendous

    • @andreicalegari1837
      @andreicalegari1837 Рік тому +5

      yes, we definitely don't need better things, should have kept writing Assembly manually! Development is absolutely horrendous

    • @LarsRyeJeppesen
      @LarsRyeJeppesen Рік тому

      Nobody told you to switch your node runtime. Why complain about something you won't use? I bet you are fun at parties

  • @sumanth3036
    @sumanth3036 Рік тому +1

    Thumbnail is not cool

  • @user-dz6il2bx5p70
    @user-dz6il2bx5p70 Рік тому +1

    Written in a lang which is going to be production ready in 2030? Cool story bro.