The End Of Node.js? My Honest Thoughts

  Рет қаралды 64,623

Mehul - Codedamn

Mehul - Codedamn

10 ай бұрын

Here's my experience of using Bun 1.0. Leave a comment below and tell me what do you think about it. Try out Bun 1.0 on codedamn playgrounds: codedamn.com/playgrounds?temp...
👉 Checkout codedamn on social:
✨ Instagram: cdm.sh/ig
✨ Twitter: cdm.sh/twt
If you found the video valuable, please leave a like and subscribe ❤️ It helps the channel grow and helps us push out more valuable content.
✨ Tags ✨
#bun #javascript #nodejs

Пікірлер: 120
@codedamn
@codedamn 10 ай бұрын
Play with Bun in your browser here: codedamn.com/playgrounds?template=bun
@DoraTheExplorer-lu2in
@DoraTheExplorer-lu2in 10 ай бұрын
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 10 ай бұрын
merlin ai is too good
@RAVIRAJLADHA
@RAVIRAJLADHA 10 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
bun + vite will be real very soon!
@pookiepats
@pookiepats 10 ай бұрын
@@marcossouzajr1711 already exist poser lol why pretend?
@gadgetboyplaysmc
@gadgetboyplaysmc 10 ай бұрын
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.
@dechobarca
@dechobarca 10 ай бұрын
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.
@sahilaggarwal2004
@sahilaggarwal2004 10 ай бұрын
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 10 ай бұрын
Heard this is not the case for macOS, though. They cited performance reasons for their decision
@gadgetboyplaysmc
@gadgetboyplaysmc 10 ай бұрын
Isn't this basically pnpm
@arcanernz
@arcanernz 10 ай бұрын
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.
@iampavangandhi
@iampavangandhi 10 ай бұрын
Great Explanation Thanks for Sharing. Really miss your videos please make more like this.
@codedamn
@codedamn 10 ай бұрын
Trying to get back. A bit of burnout + a lot of work on codedamn.com side.
@iampavangandhi
@iampavangandhi 10 ай бұрын
@@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).
@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 9 ай бұрын
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 9 ай бұрын
@@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.
@smartinsilicon
@smartinsilicon 10 ай бұрын
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?
@LarsRyeJeppesen
@LarsRyeJeppesen 9 ай бұрын
Does Bun support workspaces? We have a mono-repo with many clients
@shadevkumar575
@shadevkumar575 10 ай бұрын
Bun is a gamechanger💯
@shadevkumar575
@shadevkumar575 10 ай бұрын
Hi Mehul can you bring video on Fine-tuning with 3.5 turbo model?
@voidmind
@voidmind 10 ай бұрын
Nice thumbnail :D
@dalyryl
@dalyryl 10 ай бұрын
does bun available already for running in netlify/vercel?
@electribe7
@electribe7 8 ай бұрын
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?!
@CodeZakk
@CodeZakk 10 ай бұрын
You look very young without your beard. Thanks for your videos!!!
@GenZdev
@GenZdev 10 ай бұрын
😂 he is young
@aurangzebhusain8366
@aurangzebhusain8366 10 ай бұрын
Its time to test... 🔥
@twd2
@twd2 10 ай бұрын
I think that's a rational decision to wait till things get clear, Bun stuff relative to many components !!!
@TheBlackmanIsGod
@TheBlackmanIsGod 9 ай бұрын
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???
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 10 ай бұрын
good video :)
@f4ster
@f4ster 10 ай бұрын
Well Bun actually holds its claim true, the difference is really significant when on a Linux machine
@simonbaloyi6984
@simonbaloyi6984 10 ай бұрын
Thanks, so when should expect a tutorial from you on Bun 1.0?
@codedamn
@codedamn 10 ай бұрын
Very soon!
@chukwuemekaajima8373
@chukwuemekaajima8373 10 ай бұрын
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 10 ай бұрын
esm-only packages are jokes
@user-qr4jf4tv2x
@user-qr4jf4tv2x 10 ай бұрын
bun is very close to the current fastest rust framework axum
@sivtech
@sivtech 10 ай бұрын
waiting for bun 2.0
@elvispalace
@elvispalace 10 ай бұрын
why about ram usage?
@rashshawn779
@rashshawn779 10 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
@@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.
@VirajChandra
@VirajChandra 9 ай бұрын
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.
@akifkhan2402
@akifkhan2402 9 ай бұрын
What's your mean node js kill .. brother bun using like micro services api or making micro server not make product level application
@rakshith8151
@rakshith8151 9 ай бұрын
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 9 ай бұрын
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 :)
@Luxcium
@Luxcium 10 ай бұрын
I can not use bun because my _best friend_ said it was released *after september 2021*
@codermuyi
@codermuyi 10 ай бұрын
What really speaks to me is the global caching.
@ullaba_id
@ullaba_id 10 ай бұрын
I was remmber duno hype like this 😅😅
@abhishekmehandiratta4241
@abhishekmehandiratta4241 10 ай бұрын
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 10 ай бұрын
Nobody recommends you to use it right now. You shouldn't change from one technology to another so quickly
@abhishekmehandiratta4241
@abhishekmehandiratta4241 10 ай бұрын
@@elvispalace I was curious to check how it'll work with docker, I'm not switching over just yet
@pfdexter
@pfdexter 8 ай бұрын
@@elvispalace then why was it branded 1.0?
@FirstnameLastname-cw1my
@FirstnameLastname-cw1my 10 ай бұрын
So should I learn bun first or node js
@GughaGSrinivasan
@GughaGSrinivasan 10 ай бұрын
Bun could be just a fad…learn node first… nodes next increment will keep up with these metrics and make bun obsolete…
@eriikelnino6545
@eriikelnino6545 10 ай бұрын
i really wont jump from node and nest js to bun ..
@developer_hadi
@developer_hadi 9 ай бұрын
Bun is production ready but you can't deploy it yet, funny!
@hashcode01
@hashcode01 10 ай бұрын
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 10 ай бұрын
Try it out for side projects until it is. Better than learning it now than when there's more competition later.
@bilza2023
@bilza2023 10 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
JS and TS are 'full' languages.
@elvispalace
@elvispalace 10 ай бұрын
This question doesn't make any sense bro
@marcossouzajr1711
@marcossouzajr1711 10 ай бұрын
It´s about JS ecosystem! Nothing related to Golang
@GabrielGasp
@GabrielGasp 10 ай бұрын
Are you seriously asking this question? Are you seriously comparing a runtime change to an entire language change?
@driyagon
@driyagon 10 ай бұрын
Why are there no comparisons with vite?
@codedamn
@codedamn 10 ай бұрын
Vite uses esbuild internally, maybe that’s why?
@dextor_tv
@dextor_tv 10 ай бұрын
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.
@da40au40
@da40au40 9 ай бұрын
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.
@winston022
@winston022 10 ай бұрын
I feel bad for Deno
@mohabedr5030
@mohabedr5030 10 ай бұрын
Yeah it didn't even got a chance
@MoinKhan_10
@MoinKhan_10 10 ай бұрын
Many bun, pizza dough, taco shell will come but none can defeat the king node.js
@eriikelnino6545
@eriikelnino6545 10 ай бұрын
true
@dextor_tv
@dextor_tv 10 ай бұрын
It's like Java.
@HisokaXKuroro1
@HisokaXKuroro1 9 ай бұрын
In my opinion, the problem is server side javascript
@shawonbiswas1470
@shawonbiswas1470 10 ай бұрын
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.
@MrBond00Seven
@MrBond00Seven 9 ай бұрын
True, indeed!
@abhishekkhande8564
@abhishekkhande8564 10 ай бұрын
Its written in zig so its very fast
@MrXperx
@MrXperx 10 ай бұрын
Nodejs is written in c++ (both v8 and libuv) which can be just as fast as zig.
@nickxox2257
@nickxox2257 9 ай бұрын
bun appears great on their doc.. however after serious tests it is shit. they dropped quality for quantity. apps will break and drop connection..
@thinkofvicky
@thinkofvicky 10 ай бұрын
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 10 ай бұрын
Full stack learning path on codedamn is excellent. We used the technologies there to build codedamn itself codedamn.com/learning-path/fullstack
@aabbaayy
@aabbaayy 10 ай бұрын
go with mern stack watch akshay shain videos for understanding javascript deeply
@andreicalegari1837
@andreicalegari1837 10 ай бұрын
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 9 ай бұрын
Nodejs CEO:- hy team let's rewrite our codebase with rust
@developeroppa
@developeroppa 10 ай бұрын
unless it's fully supported in windows, nodejs ain't going anywhere
@yuridelossantos569
@yuridelossantos569 7 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
why not just write in Machine language
@ashwinrawat9622
@ashwinrawat9622 10 ай бұрын
why not just solder some transistor into doing what you want 🙃
@truongan354
@truongan354 10 ай бұрын
😁
@inaccessiblecardinal9352
@inaccessiblecardinal9352 10 ай бұрын
@harsh_g2543 Those alternatives are all high-level languages.
@inaccessiblecardinal9352
@inaccessiblecardinal9352 10 ай бұрын
@@ashwinrawat9622 Huh? Is the idea that the high-level languages I mentioned are "too close to the metal" for your taste?
@Grinwa
@Grinwa 10 ай бұрын
Js community just got a huge improvement
@Nobita3303
@Nobita3303 10 ай бұрын
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 10 ай бұрын
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
@night23412
@night23412 9 ай бұрын
​@@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?
@syedsadiq8591
@syedsadiq8591 10 ай бұрын
Bro Where is your beard?
@shaikh.quadeer
@shaikh.quadeer 10 ай бұрын
i like java ❤ dont like node express manually building everything from scratch
@kesor6
@kesor6 10 ай бұрын
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.
@sumanth3036
@sumanth3036 10 ай бұрын
Thumbnail is not cool
@akpewlfried2123
@akpewlfried2123 10 ай бұрын
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 10 ай бұрын
yes, we definitely don't need better things, should have kept writing Assembly manually! Development is absolutely horrendous
@LarsRyeJeppesen
@LarsRyeJeppesen 9 ай бұрын
Nobody told you to switch your node runtime. Why complain about something you won't use? I bet you are fun at parties
@user-dz6il2bx5p70
@user-dz6il2bx5p70 9 ай бұрын
Written in a lang which is going to be production ready in 2030? Cool story bro.
"What to know about Deno 2.0"
25:55
Deno
Рет қаралды 13 М.
Forced Optimization
35:50
Deno
Рет қаралды 54 М.
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 23 МЛН
SFNode Meetup: Bun with Jarred Sumner
22:41
SFNode
Рет қаралды 20 М.
Chrome Exposes Scary System Functions To All Google Domains
25:58
Theo - t3․gg
Рет қаралды 9 М.
The Hidden Cost Of GraphQL And NodeJS
28:35
ThePrimeTime
Рет қаралды 185 М.
DO NOT USE BUN (bun install is good dough)
17:54
strager
Рет қаралды 140 М.
10 Things I LIKE About BUN JS
9:33
Travis Media
Рет қаралды 8 М.
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 72 М.
No One Knows Anymore About This Code
11:55
Mehul - Codedamn
Рет қаралды 5 М.
Bun Crash Course 2023 with HTMX example
1:07:29
Kaizen Codes
Рет қаралды 36 М.
The purest coding style, where bugs are near impossible
10:25
Coderized
Рет қаралды 904 М.