Bun Catching Flak -- Node Getting Angry | Prime Reacts

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
my anaconda don't want none unless you got bun hon all right so apparently bun is catching a little bit of flack this tweet garnering 1 million views which is a lot on Twitter that's a lot for Tech Twitter Tech Twitter like a big tweet is like a hundred thousand views like that that you're you're doing something pretty big on Twitter when you're hitting that and Jesse goes off and says hey how is how is it possible for bun to dunk on every single JS Benchmark does no one else care about performance or what I mean you know I know Jesse probably did mean it this way but when you come out the gate swinging like that I think you're only gonna get defensive answers can we all agree maybe like maybe a little too defensive here people are gonna come out and they're gonna be pissed you know you already know what's gonna happen here it's that people are gonna get people are gonna get spicy uh all right so Mateo Mateo's been working on uh uh node for a long long time uh here's a few reasons let's see what Matteo has to say uh first off node has no budget of its own and npm is maintained by a tiny team yeah well fbm also sucks most of the investment being made are in adding capabilities are things more secure not by making things faster making things faster does not make anyone more money it's a bit of a tragedy of the comments interesting but it saves them more money so maybe perhaps that's something you should care about bun does not care about backward compatibility with a significant portion of the npm ecosystem in specific despite their claim node.js processes are built around not breaking the ecosystem instead so I wonder about this one this is the one that I really want to know more about because they made that claim in the one in the bun 1.0 release it says it's pretty much a drop-in replacement for node.js we are going to take some time this week to test whether or not that's actually real is it I don't know uh button is also a different trade-offs in a few areas making it unsuitable for my own workflow my two cents is that if those trade-offs were done by node and npm they would have not reached the success uh they they have as an example it does not copy files when installing dependencies I'll have to think about that why is that good or why is that bad so are you saying that a bunch of sim links a bunch of directories is that why bun is faster you know how if you look at the bun 1.0 release it's like dude we get done in absolutely no time uh Sim links on Linux hard links on Mac okay I believe in open let's see in open standard and open governance or runtimes and infrastructures are better with it uh see a terraform Fiasco having open governance means broader decision making process which everyone is heard but it's also slower I don't I don't actually agree that this is better or worse I don't think you can say that this is a either a positive or A negative in the sense that terraform is in trouble because they just didn't have the dollar dollar bills and they they you know it just didn't work out it's four is altruistic I actually do agree with that assessment it's it's kind of a fake conundrum you're putting yourself into like first off open governance doesn't necessarily mean good outcomes see the rust foundation for examples of not being good I think that it's nice to have like any platform I do believe in the idea of Open Source right I think that if you're going to be using a platform I think it's very nice when it's open source so you can look at it that you can see what's going on so that you can understand how it works but at the exact same time I don't I just don't know if I buy this last one as like what makes node Better or Worse let's see although bun is YC backed how many human hours were put into bun in comparison with node much less you're significantly underestimating how much there is behind building a runtime that can work on a combination of 50-something os's and Hardware also Legacy slow things down quite a bit starting from scratch is much lower effort I think Mateo's completely right on this one and I really don't think this I like saying they are VC funded I don't think is like a really good sell can we all agree that that's not necessarily a great sell here like you're not making me think bun is less capable or more but all right so we're gonna back up a little bit because this is where I think we get to the egregious one so let's see what goes on here are you guys ready for this one are you ready for this one a better tea would have been sorry Zig wasn't around when we wrote node.js well it's not just Zig right C plus plus and Zig should have identical performance there's nothing in Zig or C plus plus that should make it somehow faster if you know what I mean it if anything let me think about this for a second I really don't think it should make a huge huge difference here uh so I I'm just trying to think of anything that in which one would have if if one would have an advantage over another I don't see it uh Zig is just newer it has some nicer constructs already kind of built into the language so perhaps development is a bit easier but the language is also significantly less mature so it is also kind of like difficult bun apparently isn't a superset we're going to prove this hopefully at some point all right hey I'm the person working on a performance at node.js who says bun is fast at every single Benchmark did you look into the recent performance improvements in node.js did you read the URL uh benchmarks for example it doesn't that doesn't feel like a the right response or the right response here oh my whoa dude you got the golden Kappa oh only one person on Twitch get those every 24 hours this is twice now in my chat that I've seen the the golden Kappa ever let's go jetster you got it you got the golden Kappa um yeah when I see this uh yeah are you serious absolutely the golden Kappa is is a real thing I've never only there's only been like 400 some people that have received a golden Kappa ever uh anyways who says yeah so this this feels a little strange this feels a little strange in the sense that like I don't know what you know again URL is this gonna be a big win for everybody is everyone gonna feel fantastic about it you know like citing here's like a general rule of uh rule of thumb when it comes to arguments if you're going to say like if you are attacked and you can't refute with like just like hey here's a series of tests we've done to show the differences between bun and node.js but instead you're just like yeah well so like you answer kind of like um uh Harry does on Dumb and Dumber you really aren't you aren't getting the W there's no W going on here all right so we're going to go into the response anyone who claims node.js isn't focusing on performance should read this post by Raphael okay so we have a this is in 2023 so they are looking at uh the performance stuff hold on they are looking at HTTP 3 a lot of benchmarks blah blah blah blah blah this is an extremely long blog post maybe it's something we could go over at some point but they are doing a lot of work and I mean I don't think anyone should be surprised that they're doing work here actually I'll keep this up maybe we'll do this at a as a separate thing see I like this one so this is what I want to see right here so this is exactly what I suggested you should go and like do an actual performance do something that really shows the difference between the two because at least then we could all argue what is pros and what is cons plus you get to double check their uh plus you're gonna check their numbers and what did he say if I get paid for it yes unfortunately all my work on node.js is voluntary and not paid rip bud or node or whatever I mean personally I'm just gonna continue to use go but I I'm not gonna lie to you that's that maybe you know you could have said the same thing without saying the same thing do you know what I mean one could imagine you could have said something more along the lines of you know I work purely voluntarily you know I work you know I I'm a complete volunteer when it comes to this so I don't have a lot of time to be able to spare for these type of Adventures maybe we could put it on the backlog and we'll see if we can get to it you know it's a good it's a good way to you can say a lot of things without saying a lot of things you know what I mean I don't get paid enough to have soft skills that says corporate speak uh yeah of course it's corporate speak sometimes you want to do corporate speak you know what I mean like if you're speaking on behalf of a corporation which node.js is a corporation you want to come out with a little bit of corporate speak you'll notice I never talk on behalf of no uh on of Netflix that's because I'm smarter than that I'm not gonna say nothing I don't know nothing I'm not I'm not on that but nonetheless it's just like you can't complain about something or okay actually you can this is actually the Twitter way you complain about things that you can easily prove as good or bad or where they're good or bad but instead it's easier to Simply complain and when someone says okay well then show me the receipts you say yeah I mean not like I'm gonna pay to do this work I am paid to do the work in which I personally complained about and also identified myself as probably the most capable individual of doing it anyways scroll down a little bit okay we're gonna go more could you provide evidence where a bun is inferior to note it would be interesting to see a node bite back URL parsing okay that's it it's just URL parsing are they parsing wait please tell me that they're not parsing are they parsing urls please tell me you're not parsing URLs in anything but just just just just do it in C plus plus dog okay yeah they're just doing it in C plus plus okay incredible it's it's a URL parser I'm not gonna lie to you hanging your hat on a URL parser is not necessarily um like I I'm not uh I'm not like super impressed just throwing it out there I know this may sound offensive to some people but if you're like I mean bun just came out and was just like we've improved package management we've improved runtime we've improved startup speed we've improved this we've improved that we've improved this we've improved that we're trying to make it compatible we're doing this we're doing that and then you're like yeah well have you seen our URL parser this shit's faster than slick of the grace faster than lightning it's speedy it's just like I mean it's not it's not the way to come out it's not it's just not the way to come out you know what I mean that URL part's gonna be a life changer I know it's a greased lightning I know it is truly greased lightning uh it's the Lightning McQueen of URL forcing good ciao as long as we don't talk about Cars 2 and make TJ go on that 15-minute chat he goes on every single time he hears that someone likes cars too long as we don't say that I think we're good uh okay so this is I mean this all seems pretty it seems pretty wild by the way Jared obviously I mean look at the Man's eyes right there those eyes say I've committed something like one 2.5 million lines of code and then they show us graph right here and they're like hey man you committed like 2.5 million lines of code seen I've seen some okay I've seen so much you have no idea it's all Zig um Okay so this is good I I mean I like everything that's going on okay so here's what I think okay we're gonna we're gonna reach out with Dax Dax has the most based takes of them all I love Dax first off it's hard not to love anybody that grew up in a commie country and then escaped it and then comes to America and becomes successful I love it I love it I love it I love the guy he has those stories that everybody loves okay it's fantastic inspirational okay the man's running a 400 and under a minute before anybody else love to hear it so let's see it with buns 1-0 launch there's gonna be inevitable Cry of but it's VC funded I hope I can provide some perspectives don't get me wrong I'm not a huge fan of VCS yeah I don't think anyone are they're soul-sucking evil people anyways uh I've spent my entire career building early stage companies and the majority of VCS provide a negative value the classic inverse value they just give you money I want to give you money and then suggest bad ideas for the rest of your life take it or you can't build your company and you're like oh this is the worst this is a Faustian bargain if I've ever seen him in my lifetime I think a lot of companies should have never gone down the path but I think people Miss why companies absolutely should building a business is hard you have to wake up every day and try to push it Forward while the world largely ignores you the entire struggle is about staying motivated and the reality is that it was a lot more fun and energizing to shoot for something ridiculously ambitious and impossible day to day a small business and massive business take the same amount of struggle in terms of pure concept the small business seems easier to execute on but things fail when the co-found when the founders run out of energy not really because the idea was too hard it's very interesting there's not much uh that's more tedious and painful than building something like bun the pain that feels a bit pointless if the outcome is small Consulting business they're clearly talented they would have had the constant distraction of better sounding opportunities floating around but might have not even made it to 1.0 it feels more worth it when the outcome could be running massive data centers around the planet executing the majority of the world's compute and I do and to do something like that you need to go down the VC path they'll likely fail but when they do at least it won't be because they've got bored and couldn't follow through foreign as always Dax just coming out with just like the most awesome tanks of all time honestly dax's takes are always so damn good uh this is perfect I think this is honestly a perfect take in the sense that I mean I I cannot tell you how hard it is building a startup I spent a year and a half doing a startup and got it pretty dang far uh even got a governor a guy running for governor to use my product which I thought was pretty good breakthrough like we went pretty far but ultimately we just didn't have the money to continue the energy wasn't there people were just starting to lose it and you know it's really hard it's it's really hard to say no to something you thought could be the one you know what I mean uh they know each other so I think this is just some sort of joke and also they're always calling this guy uh a racist poor Dax gets called a racist all the time thanks for linking that that makes all things great yeah they call they constantly call Dax white and he's uh the least white white guy I know of currently today today he's by far the least white white person that Twitter has deemed a white person and calls him racist all the time very strange it's very strange it's very strange what Dex gets to go through on the regular I know a very way to Jason I mean poor guy a poor guy he gets he gets dunked on quite a bit for all this stuff uh I started a company with someone and it ended up when he stole all the money that sucks anyways um all right back to Dax I like this take I think I think the thing that needs to be understood here is that bun has an inherent Vantage over node they have no backwards compatibility they have uh they have no need to have like some huge long tail running you know Legacy code base right they they're just brand new so they obviously have a huge Advantage you know first mover Advantage is very important but it's not actually end game I did try bun about six months ago and it kept seg faulting on me so I'm very very curious what does it feel like today I am going to give it a try I'm very excited about I think it could be something really good because here's the deal about node and just the JavaScript ecosystem that sucks there's no build tool right you put the one in you like some people still just copy pasta their webpack config when they need to build something some people use Vite there's parcel there's there's turbo pack apparently snowpack still exists people still use so pack okay snowpack still a thing uh you still got ice I've seen projects recently that still have uh uh what's it called uh Gulp and grunt as part of it right it's still a thing and so it's like there's no build tool there's no bundler there's no specifying of anything there's no standard tool for any operation in JavaScript which means it's just one gigantic constant um just constant annoying battling that's always going on and so it's very very amazing to see um it's very amazing to see someone to try to like create an entire ecosystem for it that's all yeah and poor Bauer can we just pour one out for Bauer Bauer it didn't work um dude I hated Bauer by the way Bauer ruined my life I spent unlimited amount of hours working with Bauer Bauer was awful um but I will say that someone trying to bring all these two were tools uh Under One Roof and just like here's the run time the tools it takes everything it all goes together go I love the idea I think they're actually doing the right thing um all right so here's a huge naysayer uh Corey bun is exciting but buns all in one approach has many risks and downsides I actually think it has mostly upsides that's what every other language does like right I don't build go with some other tool other than go I don't run go with some other tool then go I don't install dependencies with some other tool then go I don't do anything with some other tool then go same thing with rust same thing with Zig same thing with v leg same thing with any modern anything you would literally never do some like oh hey you want to just amalgamate your own pile of like no you don't use tiny go no I don't use tiny go ugh no one wants to do that nobody wants to do that okay you just want it to work all right so what does he have to say um but will often lag behind changes to sep uh to the separate tools it replaces when JS innovate let's see when JS tools innovate bun will be able to quickly support something similar um I'm unsure what like when it comes to bundling a file I'm unsure if there's much room left for Innovation you know what I mean like I don't think there's like a ton left there um minification You could argue hey you know but will bun just use an off-the-shelf minifier it just this seems like this seems kind of like an argument that doesn't make any sense and JS tool is innovating we've mostly innovating into hell if it's buggy or insufficient bun is harder to replace than separate tools okay fair one could argue that is a fair statement but again look at what it's look at what it's predicated on there's already an assumption that it's not going to work built into this right if it's buggy or insufficient then it's harder to replace absolutely but you've got to also do the inverse it's also really hard to build anything in which you have 50 choices for everything oh you want to like do CSV parser for node.js let me see what do we got here you got like everything there's like so many different ones there's a top 10 for 2022. okay 10 separate CSV parsers 10. oh maybe web sockets will be even easier web sockets node.js best to use you're gonna get nine nine nine and guess what on the nine not a single one of these nine contains micro web sockets which is actually the fastest and one of them contains socket IO which is just like what is what it what it what is this why would you do that why would you contain socket IO Okay so it is kind of nice that bun provides a lot of things you know rust also provides TCP and HTTP and do do we need do we really need someone else to provide some of these things I don't know I just don't know uh can I still mix and match uh tools to select the best of breed stack well you can still have the stack you want yes you just don't need the world but worry about bundling dog hey dog you don't need to worry about bundling anymore higher risk the tool chain is reliant on one team instead of many this still this is like a Faustian bargain still you have to assemble it um yes I would say but this part this is a real one right here what if bun burns out slash loses funding bun will be hard to replace can we all agree with that one that's a very hard one to replace so that's a good one which is if bun doesn't make it are you sure you want to bet on something that's not making money right he wants a bundling stack the best bundling stack to me that's actually this is a real argument which is it's still pretty new it makes no money and it has VC funding which means it at some point won't have VC funding so you better have you better have something kind of prepared lack of ecosystem will cloud provider support bun will Community form around bun to provide extensions and support are those docs sufficient uh those sound like questions you should ask before putting a check mark and saying no uh will Bunn honor JS standards or seek to extend and extinguish this guy better not be using any Microsoft tools okay you can't be you can't be quoting Microsoft if you're using vs code which is literally the we're gonna figure out a way to charge developers a hundred dollars a month for them to be able to develop there's been no greater extend extinguished move by Microsoft in the last decade than vs code uh I would be shocked it better not be using it well bun honor JS standards or seek to extend and extinguish the latter is common approach that makes products sticky but also breaks compatibility bun already has some non-standard behaviors I'd have to look into this but I'm pretty sure it's not JS standards that they're talking about I'm pretty sure uh Corey right here is mixing up JS with node right I'm pretty sure they mean I'm pretty sure he means node standards I'm pretty sure that's what he means and so that is fair game ecmascript standards I'd be so I'd be genuinely surprised because that means you have to write your own engine they don't write their own engine they use what Safari uses so whatever is non-standard would mean that Safari has non-standers macros yeah the macros is a bit interesting but that's like an extension I'm not sure if yeah I mean extend and then extinguish uh it is it's it is a curious bit of behavior I'm very worried about macros I think that that probably is a dumb play probably a dumb play it's probably a dumb play it could be a dumb play got him I will agree okay there is one thing that you can say yes the macros are a warning for me I'm upset about the macros I am upset about the macros I don't know about that one can one team support something this uh complex long term okay this last this last statement is just nonsensical it's one company can one company support this long term yes one would assume that if they continue to get funding and make money one can do that like npm's small team yeah like I'd be typically clear I'm rooting for bun but they're trying to accomplish as hard and risky will it work uh I think you can drop most of these and really just focus on I think the macro idea is stupid you should be extremely careful about macros lack of ecosystem I don't buy this for one second higher risk uh yes this is the higher risk part um I don't think relying on many tools instead of one is somehow better in any argument I don't think this is real I think you're just making this up this is kind of a uh what if bad scenario yeah what if uh what if tomorrow Vite pushes a bad build and breaks everybody build and then that's the only one available well yeah I could come up with a doomsday scenario that doesn't make any sense I you know I don't even know if I like the idea of bun white pad white pad could happen tomorrow but at the same time this idea that node is the only thing that should exist is also silly you know what I don't think JavaScript is in a great place okay VC equals venture capital is is chat really struggling with what venture capital is come on chat anyways so this is extremely important point about bun versus node.js node.js has all these things kind of going against it which really is just like a huge Legacy code base a bunch of things that they support they don't they're not as narrow they've just lived longer right that's a really hard momentum to undo bun obviously has the advantage they have the advantage by providing something faster right they're going to be able to say hey we don't support as much but that is okay because everything that we're doing uh everything that we're doing is going to be more amazing and for the hardware you're actually targeting right you run on servers here's something designed for servers it's most excellent right so everyone can agree that's very very nice we want to see that uh but here's the problem about making it a business can I just throw out the the bad part all right so it's going to take Millions upon Millions upon millions of dollars to be able to build out this business you're gonna have to go to vendors and whoever to try to change their minds about hosting node but actually start adding a a bun option which means that all these vendors are going to start having to to just also do a whole bunch of work to get this done maybe they're gonna have to spend millions of dollars to be able to get Bun working I don't know how much money it's going to take but at the end of the day it could also take paying three people the hundreds of thousands maybe a million dollars for them to go fix the parts of node that are slow right now that are competitive to bun right and they could do that in a few weeks maybe a couple months I'm saying I'm about bun versus pnpm install speed comparisons but I would like to provide some Nuance uh the Absurd perf differences usually as a result of one tooling running with a network API call Overhead while the other is not yes this is what I exactly am thinking this is why I said I don't trust those results it's probably one is just literally just Sim linking some folders and the other one is literally downloading crap right let's see bun installs defaults to behavior similar to pnpa's prefer offline flag which skips uh hitting the npm API to simulate the default behavior of npm you have to use bun Force here's some comparisons on my machine network from Singapore okay uh button with cash lock files okay button force with cash log files uh okay so it's still a button is still faster okay so he like this is still this is actually a much more reasonable comparison is in this case nobody cares right nobody right here is going to be caring but the this case in this case are more interesting the no cash no log file request slow is it faster absolutely it's faster so buns better uh this one right here uh cash with log file cache with no lock files the same state yeah this is better so to me that's a good comparison good job Evan good job Evan just Dynamite right there all right anyway so that's my thoughts about uh bun which is it to me it seems really hard they are compile time execution yeah the all macros tend to are compile time execution so the hard part I see for bun is that they can be easily defeated without anybody opting into a new system you know what I mean you don't have to opt into a new system with new bugs with no anything there's no moat the moat is truly just that hey we have better Dev tools and that is a good moat so there you go those are all my thoughts I think I have on it is getting excited by marketing uh I don't know I I'm not as excited for Thea uh uh for bud I'm not nearly as excited for bun I think as everybody else but I think bun has a potential I I need to see what it looks like right I I'd have a personally a hard time betting on it right now like if it was a horse race and I had to bet in five year who's gonna have a bigger market share node or bun this feels like a really hard bet to make you know what I mean I think if anything buns just gonna emphasize the fact that you want really nice tools someone keeps asking what a macro is macro is just like compile time code right you think of C preprocessor macros think of rust macros they're little declarations they're usually very declarative in your code I want this thing to happen and then that thing has some sort of running thing underneath the hood your mom absolutely front end Peter my mom the name is the am I even qualified to talk about bun I think I am I think I am as somebody's done a lot of node.js I feel like I have a lot to say about it now I might be wrong but at least I'm trying something okay I've tried to give a reasonable last take here in an unreasonable world where everybody has to have like a one-sided one-dimensional take either everything's a huge risk or everything is going to be the most greatest thing in the universe and you should switch everything to it all at the exact same time you know what my advice is go use rust or go again
Info
Channel: ThePrimeTime
Views: 140,062
Rating: undefined out of 5
Keywords: programming, computer, software, software engineer, software engineering, program, development, developing, developer, developers, web design, web developer, web development, programmer humor, humor, memes, software memes, engineer, engineering, Regex, regexs, regexes, netflix, vscode, vscode engineer, vscode plugins, Lenovo, customer service
Id: WQ0DMyD39JI
Channel Id: undefined
Length: 29min 40sec (1780 seconds)
Published: Wed Sep 13 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.