Bun is disrupting JavaScript land
HTML-код
- Опубликовано: 7 сен 2023
- Let's take a first look at Bun 1.0 - the worlds fastest JavaScript runtime. Find out how Bun compares to Node.js and Deno.
#webdevelopment #javascript #thecodereport
🔥 Level up AI code generation with DevGPT
Try it for free: devgpt.com/?
💬 Chat with Me on Discord
/ discord
🔗 Resources
Bun 1.0 details bun.sh/blog/bun-v1.0
Bun.js Launch Video • Bun 1.0 is here
Deno NPM modules • You don't need Node to...
🎨 My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font
🔖 Topics Covered
- Bun.js vs Node.js
- Bun vs Deno
- How is Bun so fast?
- Are JavaScript apps fast?
- Best JS frameworks
- How to optimize JavaScript performance - Наука
Why r u still writing code by hand like a caveman? Try DevGPT for free devgpt.com/?
First
Did you do a video on Mojo yet? I am so excited for Mojo.
Bun...? 🤔💭
,,It was my decision to do drugs, I did it for fun
But now I'm done I can get back to puns
About Kim Kardashian and her *two ton buns of fun*
So gigantuan that they block out the sun!" 🎶
(The Key of Awesome)
chat gpt burn out🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯
WOW Mojo requires Ubuntu?? Insane, is it only snap installs or something stupid? If you need to run an app in container you shouldn't run the app.
Just when you’re getting comfortable and thinking of things you want to build you’re hit with an existential crisis in the last seconds. Bravo, sir.
I’m going to go say hi to my mom
I wish I could still do it
JUST LEARN BUN ELYSIA HONO, JUST BUILD A FULL STACK APP WITH UNIQUE IDEA WITH THAT, JUST IMPLEMENT ALL THE ALGORITHMS IN THIS APP, JUST MAKE THE APP LIVE, JUST GET MILLION UNIQUE USERS TO FIND A JOB.
I guess this is JavaScript land
I also came here to complain about the useless tools we're getting that just adds overhead to my poor brain
Not coining the term "Buntime" for the bun runtime feels like a missed opportunity
90s infomercial: does your js runtime time not give you a fun time? Try the brand new buntime.
You might have just done that my friend, love it 😂
Bun is still fresh out of the oven, "buntime" can very much still become a thing if the community enbraces it.
It's a fun time when it's a buntime
howz about 'no Hono' to indicate an anti-phalus-riding response to every shiny new dev tool !!!
4:21 is much more sad after hearing his mom passed away, tell your moms you love them guys ❤
Amazing! With Bun I will be able to create my own javacript framework much faster!
s/framework/frameworks
lol
While you were forming that sentence 50000000 more frameworks were created for Javascript.
@@jas0x139 Not buying that. We need a benchmark of JS frameworks created in a second for given tech.
Please no more framwork
Prepare for employer everywhere to put a 5 years Bun experience in their hire requirements
I've been eating buns for over 50 years. No problem.
@@genjii931 damn, you are ancient.
@@genjii931tch missed my chance 25 years late
@@animezia I pre-date the Web. And the Internet.
55 years chatgpt experience required
A truly inspirational video with an important message at the end.
lest us all hugs our mums if we still have them ;'(
Was not expecting that ending
should make "hi, mom" the default output of all our quickstart demos. lots of love to the mommas
I don't get it why there is a ASCII cow in there when it says "hi, mom"
@@geografiainfinituluibecause he -bunxed- used a package called "cowsay"
4:23 now I understand why he told us this. So sorry for your loss Jeff
A few years down the road, the creator will start nub to fix the mistakes they made with bun.
maybe if his name was ryan dahl
And start another company, get VC money and continue business as usual. Continuously screwing the ecosystem. 👏👏👏
name it as Nub
yub nub
No, it'll be unb
As a developer just out of college, who is still learning more about the coding world, videos like these are super helpful. I would have never known about any of this without the Code Report.
It is fun to keep up to date with the movements, but bare in mind that being on the bleeding edge is not business viable. You may be romanced by the promises of the great beyond, but if you were CEO and you had to stake your everything on the latest unproven hype because... well it's insignificantly faster or cooler or something, would you do it?
@@aperson4051 In a heartbeat! Why do you think most startups fail?
@@aperson4051 Fortune favors the brave
@@aperson4051 they call it "bleeding edge" for a reason.
Don't listen to those soy boys. If you're not deploying beta frameworks to production then you're not living the dream. Do you really care about what the CEO thinks? No, you want to flex on the boomer devs still living in the days of punch cards and green screens.
I'm sure your mom is happy up there. Take care dude, we really appreciate all the work you do for your community
Wow the end hits different now. Stay strong man 🙏
Oh my god the end hits so differently.....
Holy crap.
I mean I knew bun existed, and thought it was interesting that someone is building something in parallel to node and deno.
But all of these extra goodies sound pretty awesome!
It's feels like svelte to react... svelte came with batteries included and now we are heading towards htmx...
We will get 'fun' in 1 year with 10x optimization and nothing build in
Im not even web developper but now I wanna use bun for everything
Except for gRPC since Bun 1.0 still doesn't support HTTP2
Same here, I got some scripts using node that I want to migrate to Bun though
Fireship's 100 seconds videos usually do that
xD
@@a-yon_n What is gRPC?
Just when you think javascript engines have reached a peak in terms of efficiency, something like this pops up.
when the type annotation proposal for js get added, someone will probably make a complete compiler js that turns fully typed js code to wasm or something like a native lib
who ever thinks that?
javascript
?
Never in my entire life have I thought of anything javascript as efficient.
Fireship just made a youtube post that explains why he ended the video with "say hi to your mom because you never know how much time you have left" and I'm absolutely in the verge of tears rewatching this video.
That last part about saying hi to your mom hit hard.
Ya'know I still watch so many coding/tech news channels even though I left the programmer life 4 years ago to become a blue collar welder for a simpler calmer life. The landscape was so crazy for web dev 2015-2021 (really since its been a thing) that I thought I'd leave for a while and come back once things are figured out a bit. Maybe it might be a good time to throw my hat back in the ring and make some side projects for fun on the weekends. These new tools that come out actually look they are fun to use. :D
I left web dev several years ago and thought I’d take a break. I recently brushed up in my skills and made a personal project but I still don’t enjoy it enough to make it a career. I think I’m a blue collar guy lol
I've been cowering in backend side of IT for many years, but now that Internet Explorer is dead, I think it is safe to return to the front end.
If only we had a high quality course to teach us all of this from scratch. All courses become obsolete quickly with the speed these frameworks keep coming out like that lol
@@touseefcodes The constant learning was my least favorite part of it for sure. It never felt like I was quite done and always halfway somewhere. For welding I could open up a textbook from the 80's and find great information inside it. Not to mention now I'm so comfortable with everything at this point I barely think at work at all. I just listen to podcasts, audiobooks and music and chill out at work where no one bothers me.
@@kozmikhero6749 that is great. Peace of mind is what matters the most.
The only tech channel that makes me want to learn ❤.
I recently decided to rebuild one of my old Discord bots using Typescript and I decided to switch to Bun as the runtime. Let me tell you it is the most productive and most fun I've had writing server side Typescript code in a very long time. No more slow tsc builds, no having 2 terminals open with tsc watch and node. It just works, it's fast as hell and it's so much fun to work with. I never felt like Deno could fully replace Node but Bun probably could for me.
This has to be the most important code report this year
YES!
NO
the duality of men
Being able to use just the bundler is probably its best feature
I might actually be able to introduce it at my company then
Starting nicely and clean with simple information, adding many interesting and amazing topics about back-end, finishing with a little bit of depression. The perfect news at morning.
4:21 - didn't expect to be teary eyed at the end of this video. Just lost my mom recently 😔
God damn, that ending tho...
Very excited for Bun. The DX and new libraries look very handy.
No sarcasm.
Avatar has a beard.
Short sentences.
Factual way of speaking.
Not over-the-top excited.
Senior dev confirmed.
@@chrisaltec2992 + always end a sentence with a punctuation.
Man I love this channel. The thing about saying hi to mom was great. Happy wknd everyone
you killed it with this video! maybe one of these every few days, or a longer version every week?
Fireship is like that mad scientist you see in the movies. Always busy with one experiment after another. 😂
I see him more as a drug dealer
Reminds me of professor Farnsworth tbh. Probably why I love this channel so much.
Although at his core he is a Firebase Svelte TS Fanboy
🧪
4:19 rest in peace 😢
I heard of Bun over a year ago and I always heard about how fast it is. Good to know it's still fast and seems to simplify lots of JS stuff!
I encountered issues with Bun, for example using it as an NPM alternative, some libraries are installed without some of their core folders inside, or it does not support async hooks from Node yet, so I would recommend to wait a bit more and see if they fix the basics
Bruh, that "say hi to your mom" joke actually got me in my feels
Stoked for Bun. Love seeing these new js tools with so much less complexity involved just to do common tasks. Hopefully Bun lives up to the hype. Don't like hearing it uses Safari's runtime. Probably better but Apple doesn't typically play nice in open source
Yeah wouldn't be surprised if they suddenly pulled the plug out of nowhere and we're left stranded cause they want to build their own (paywalled and incompatible with non-Apple devices) solution
WbbKit is licensed under LGPL.
Check their wiki.
en.wikipedia.org/wiki/GNU_Lesser_General_Public_License
These jackasses just keep reinventing the wheel.
I don't love Apple for that fact either, but Google/Alphabet has really been pissing me off here lately too...I'm not sure if anyone has done a full ECMA performance comparison here lately, but I would be interested to see if there even are any relevant ones hanging around. For better or worse, V8 replaced a lot.
Feels nice to simply web development for people like me in small companies who have to context switch all the time also as a data scientist, data architect, and solutions architect . I’ll see when I swap this in my web projects if it does reduce the complexity of builds and give me some time back in my week.
Love Bun already! Waiting on the alpine docker image with Bun. I will also check-out Hono!
I don't know if this would take over
But it seems like an always go-to choice to the many upcoming Devs 🎉🎉🎉
Good Video Tho Sir 👌
as always fantastic video. i also really like the part to say hi to your mom. a lot of people seem to forget that there is a real life and not just coding
Been messing with bun since the initial beta release. Happy to see it finally at 1.0!
i was going to ignore this but youre presentation is going to make me try it out. This is the second time now i've seen something about BUN
I never thought I would start crying after watching tech vid yet here I am, sorry for your loss Jeff
Interesting to see Zig get a major project.
I can’t wait to try it out. Been keeping my eye on Bun for a while
JUST READ YOUR "Hi Mom" post. Sad to hear this and i know she'll be in a great place ❤❤
You were hinting us about your mom at the end.
Stay strong sir
Bro got me emotional at the end
that last line about kind of hit home for me -- i lost mine in what feels like only recently. memento mori. and thanks for the great video!
This is actually pretty awesome. I really want to know how this feels for deployment and managing issues.
All the Python devs I've talked with have been extremely skeptical of Mojo (especially when we've had pypy and numba for years). Now that it's general availability, I'm looking forward to some unbiased cross-comparisons (and, hey, may do some myself).
Checked the page to download, requires me to log in to download. Now I'm extremely skeptical too.
It's not open-source and won't be in the near future.
I'm truly excited for Mojo.. since it's (planned to be) 100% python compatible on top of many goodies (multiple accelerator support, meant to be parallelized to hell and back) I can see future production environments totally written in Mojo things like, a webserver for an easy API, leverages AI for prompts and if it's performant enough: a Game engine that can do Serverside ML for a ton of logic as close to runtime as possible
I am sure Mojo is alright, and it is super fast, but I don't really care. Sure it would be nice if Python was faster, but that is just one of it's problem. The poor standard library is rather shitty, with no async HTTP client in the standard library, and the JSON module cannot deserialize to classes, doing await is rather awkward since you cannot do it at top-level and need to specify an async runtime.
Mojo is nothing new really, there's numba, custom made Cython libraries and even Jython if you really want to go the triple sec way for every needs Python conceivably could put you through. No-one is super excited because it's not open source and it's sketchy for a "corporate solution".
And if we're real, all Python devs know the grind is not with making Python faster just because that's what a lot of people who don't know Python beyond Junior level complain about. It really is much, much more about finding the perfect package match for your needs and perfecting the knowledge in that area.
I am honoured to have experienced this channel grow to become the biggest coding channel before my very eyes.
And I came across the channel for the first time just barely 2 years ago with the Video on Emmet Html!
me too, been here before async/await and chromium
I dont like JS or TS... but i like what Bun is doing. Will play around with it. Thanks for sharing.
Oh dang I didn't realize how many videos of yours I watch. I should probably subscribe at some point. I think I'll do that now.
Bun will make js backend development more fun
Nice avi
For sure.
Hope one day we don't need to transpile our code before publishing to npm.
Backend using any kind of JS is anything but not fun
@@raresandrei7205why
I really want to be optimistic for Bun, however they were fixing breaking changes just hours before 1.0. Makes me kind of worried...
I would be worried if that was seconds before release. Fixing bugs hours or minutes before release is just the gold standard of being agile and having God level CI/CD 🤣🤣🤣
Actually I’m more worrying about the very release decision. Why the rush? 0.8.1 was just released not half a month ago, and Zig isn’t 1.0 yet.
@@a-yon_n probably because they got capital and are a startup with a product and need to make ROI
faster is better 🎉
@@a-yon_n Exactly, the release of 1.0 feels rushed. 1.0 is supposed to show you that a product is production ready, but it doesn't feel like that with Bun.
its wholesome that Fireship keeps reminding us about to check out our Mom since the earlier videos
Holy Sh*t! Bun sounds amazing. I'll have to check it out. Thank you for sharing!
Hey fireship, is everything okay with your mom? I couldn't tell if you were generally telling people to visit your mom or if you were missing her
Edit: I just saw your community post. I'm so sorry for your loss.
it's just a joke lol dont worry
@@harveyhans how about you harvey, is everything okay with YOUR mom?
@@asatsuki9250but what about YOUR mom ?
Sorry guys, everyone's moms are busy right now. I will let them know once I am done.
@@harveyhans Couldn't hurt to ask, you know?
And this is why after starting to learn JS that I'm just like, well wtf? So many awesome things happening and so quickly it makes it difficult to know which one to hone in on.
Welcome to JavaScript world, where people reinvent the wheel for no reason.
You're in for a ride. The JavaScript ecosystem will age you decades fast. The landscape changes so much and so fast, you really can't keep up.
Welcome to JavaScript world, where people reinvent the wheel for no reason.
@@ginespanto2841if this is true that bun is so fast - tt is pretty major and valid reason, I am up for changes like this
@@ginespanto2841 Welcome to RUclips world, where people repeat the comment for no reason.
Interesting. An all in framework.
I might give this a try.
Also thanks for the message in the end. I am gonna say Hi to my families and friends.
I gotta try it for myself now, there has to be some drawbacks, but packaging all that seems convenient
I have quite a legacy repo I was moving to pnpm. I tried Bun and it was about 25x slower than pnpm. Seems to work really well for small projects but for my specific use case it was quite a let down. Hoping that improves.
Did you ask Bard or github about this issue? People at bun will probably love to fix this edge case.
I did my own Bun benchmarks and can confirm that they aren't dishonest, Bun is on average 80-100x faster at installing dependencies than npm, on my M1.
that Poland sticker looks fire on that macbook 0:15
I installed it and built a sveltekit template with bun as the environment. Its pretty straightforward. I personally am not going to use it because I was hoping it would help some of my large projects spin up faster. It didn't. I'm sure for some server backend processing is maybe faster like builds and stuff. However, It just doesn't cut the cake for me.
js community really benefits when some new tooling is introduced by people outside of js community
Everything just works in a simpler and highly performant way with Bun and it is directly a drop-in replacement for Node.js. Bun is really disruptive in the JS world, also for the frontend (the bundler, jsx support, etc..). I will use it in my next project for sure
The word "disruptive" gives me the ick.
People who say "ick" give me the ick. Are you my 14 year old sister or an adult trying to fit in? Ick. @@heatrazer
If you like random segfaults or obscure crashes in general, you will LOVE Bun!
The 'Hi Mom' part got me in tears. I had to go spend time with my mom. Thanks!
Same
That's a lot of stuff that Bun can do sheesh🤪
Looking forward too seeing how this will gain momentum.
that poignant end 💔, love it
Am I the only one that really appreciates the embedded database? I hope that feature stays, it's the reason I'm going to try it for a small pet project.
Cool let us know how it goes ( hint: you wont)
This is what node should have done in the first place. It is a server solution relying on so many 3rd part packages. A backend language should have its own methods.
This is a silly statement. It's like looking at a Tesla and saying this is what Henry Ford should have made.
Agreed, but then again, why even use JS for backend tasks in 2023? There are a lot of options if we exclude JS and any of it's frameworks
@@raresandrei7205 because that is probably the language that you know best
Good video production, good video content - goooood
I just have watched a video made one year ago discussing bun an hour ago, and…… tada! Jeff made this! What a coincidence! 🎉
The mark of a senior dev: you grasp the code report's content despite of rofl'ing non-stop
Meet bun, what a pun!
the problem for me, is that some things still aren't fully compatible such as sockets for peer to peer apps written in JS such as WebTorrent. It likely won't affect a ton of people but Bun is still missing some things that I consider highly important when creating a backend in JS
Just rewrite your app to use bun sockets?
I'm sure that with the mass amount of people probably going to use it in the next year, they will add a ton of functionality. Though also, Bun isn't all or nothing. You can take your existing app and pretty much just run it on bun.
Damn! Bun seems like literally anything you'll ever need in one package and with 75% (aprox) fewer lines of code and configuration.
Great Vedio as usual, Am checking DevGpt
Java: make 4 languages for the same runtime.
JavaScript: make 4 runtimes for the same language
I need this on a shirt though
That moment when you're given a new toy but instead of cheer happiness you just wanna scream: "PLEASE, I BEG YOU, STOOOP"!!! It seems as some sort of new trend, instead of creating new future JS frameworks, create new future NodeJS runtimes.
Sounds great, will have a try 👍🏻
insane, your sponsor of today is what I was browsing right now!! super funny!
I mean was browsing for!
Node had 3 different ways to read from files and we didn’t like how confusing that was.
So Bun now has 4 different ways to read from files.
@@kidmosey date and time api 🤢🤮
Yea, but Bun's is better! /s
@@Toleich js devs on their way to rewrite the entire computer to write a better framework
In a few days we'd soon get another runtime environment that'd kill Bun...
"Run" - Bun but written in the superior programming language, Rust.
yay, killer buns !
@@chris-hayes Rust already has Deno
This one is hard to beat lol
@@andreicalegari1837
yes but Deno was made to be the next NodeJS, so we need Run to be the next Bun
first time tried to listen the report as a radio - much better - no visual trash + relatively interesting info.
Was waiting for this video
The ending...😭
As an android developer I always complain about new libraries or changes in the framework every few months. Just thinking about frontend and javascript gives me more headache.
Lucky you. It gives me depression instead lol
in my opinion as a JS/TS developer, Google does a lot worse than Javascript world. I really can't stand what they are doing in Android native development. Too much change and deprecated methods like every month, and make it unnecessarily complex. Lately i really learn the Kotlin in a Android app as a case in 3 months.
I still prefer their framework, Flutter, or React Native to build an Android app.
Whaaat those apis are amazing! Bun’s built in tooling is leaner than npm packages that do the same thing
Aww that photo of you and your mom is so cute! Love your moms guys
"Hey kid, want to take a look at my Buns? I have the greatest collection of Buns! Everyone loves Buns!" - Animaniacs (the sh*tty 2020 reboot)
At version 0.6 already Bun was outspeeding C++ code I'd written for astronomical processing. Good to see it going strong. Can't wait for their client websocket lib to become production ready
Edit because RUclips thinks anything not related to twerking is spam: I was working with GAIA DR3 astronomical data. Each GAIA DR3 CSV file is around 200MB compressed, and around 650MB uncompressed. Each file contains around 500,000 lines, each line has more than 150 columns, I forget the exact numbers, but it's... well... astronomically large. There's around 3100 of those files, and I needed 5 columns from each file for further processing. The idea was this: extract the CSV into RAM (not disk), then retrieve specific columns based on query parameters. Bun took around 5 seconds per file, C++ around 8 seconds per file, and Node took around 19 seconds per file. The differences may seem small, but it really builds up with so many files, especially if you need to query more data later on. Now, to be fair, the JS wasn't written naively - I used ArrayBuffer objects so that I could treat each line as an array of numbers rather than a string, which is technically cheating because ArrayBuffer objects are almost native C++ anyway. But still, the fact that Bun won at all blew my mind.
💀
Just curious, what kind of code were you writing in C++ that would be slower than js?
@@kleonardo52 I was working with GAIA DR3 astronomical data. Each GAIA DR3 CSV file is around 200MB compressed, and around 650MB uncompressed. Each file contains around 500,000 lines, each line has more than 150 columns, I forget the exact numbers, but it's... well... astronomically large. There's around 3100 of those files, and I needed 5 columns from each file for further processing. The idea was this: extract the CSV into RAM (not disk), then retrieve specific columns based on query parameters. Bun took around 5 seconds per file, C++ around 8 seconds per file, and Node took around 19 seconds per file. That may seem small, but it really builds up with so many files, especially if you need to query more data later on. Now, to be fair, the JS wasn't written naively - I used ArrayBuffer objects so that I could treat each line as an array of numbers rather than a string, which is technically cheating because ArrayBuffer objects are almost native C++ anyway. But still, the fact that Bun won at all blew my mind.
@@kleonardo52 RUclips thinks my reply is spam... unsure how to answer you
@@kleonardo52 I've edited the original comment
Wholesome message in the end ❤
Love this!
I will give it a try 😅
I just need AWS to officially adopt bun in its runtimes. That will force 3rd party tools like Terraform, Serverless, etc to adopt them into the ecosystem.
I think the point of bun is that it’s zero configuration. So until 3rd parties actually support them, I don’t want to jump through hoops to get it running
Go with a cloud provider which supports serverless containers. Then you can run whatever programming language you want serverlessly, as long as there is a Docker container for it. I know that Cloud Run from Google supports serverless containers. Maybe other cloud providers do too.
It’s have docker support, so i think AWS EKS (kubernate) can use it on the pipeline easily. The terra form is just config to manage kubernates automatically, so there is no stopping if you want to use Bun on kube environment.
I don't know much about JS but it seems like JS developers are always looking for the next big thing.
just trying to find something that actually works
Yes, they are always looking for the Silver bullet.
this is why the world improved so much in the last 2 decades
“magical works” phahhaha good one . Good video keep it up 😊
:O genuinely excited about this!