Bun's FINALLY A Bundler (and much much more)

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 149

  • @IronMaidzen
    @IronMaidzen 10 днів тому +284

    Now i wait for "bun fmt" and "bun lint", so i can start projects without any dependencies and just code

    • @m4saurabh
      @m4saurabh 10 днів тому +5

      I don't think they should do this.

    • @IronMaidzen
      @IronMaidzen 10 днів тому +54

      @@m4saurabh why? Deno does it its awsome. I want my tooling to be heavily opinionated so there is no disccussions about "break after function" "empty line before return" give me a preconfigured formater and linter and if someone like you wants special formatting just use prettier and eslint and fight with your config every update. And everyone can be happy

    • @m4saurabh
      @m4saurabh 10 днів тому +1

      ​@@IronMaidzen you don't get it, the reason deno fmt, dprint, biome are still not able to replace prettier is because it support a wide range of languages, like does deno fmt work with svelte. So we should just have a single a set of frommatting and linting tools so it's easy to contribute and develop plugins. If everyone work on their tools the discussion would be which to use

    • @IronMaidzen
      @IronMaidzen 10 днів тому

      ​@@m4saurabh deno fmt works with svelte.... and bun is opensource you can contribute to the formatter. I think in the opensource world it wil never happen that there is a single tool, sure there is a "goto" tool like prettier atm. but it will never be exclusive which i think is a good thing

    • @lessko9
      @lessko9 10 днів тому +1

      @@IronMaidzen biome was made with the assumption of not supporting svelte and vue out of the box. And now they slowed down a bit to make a support for plugins, just to support these two :///

  • @Pheeef
    @Pheeef 10 днів тому +77

    sysadmin & dba here
    we’ve never experienced postgres being slower than mysql when migrating customers - we’ve actually been able to achieve much better performance with postgres when properly tuned because of the heap architecture

    • @philliphaydon7017
      @philliphaydon7017 10 днів тому +22

      I had to go through X to figure out what he's talking about, and its not "postgresql vs mysql performance" an issue with hash partitioning. Not something most people need to ever care about, but something that is apparently being worked on in the next release. But apparently Theo hates Postgres.
      It's prob not an issue if you're doing range partitioning. Never actually seen anyone use hash partitioning.

    • @GreatTaiwan
      @GreatTaiwan 10 днів тому

      @@philliphaydon7017 what X ?

    • @dakdevs
      @dakdevs 7 днів тому

      Postgres can be faster that MySQL when tuned for its use case well enough.
      MySQL… just works.

  • @jerondiovis6128
    @jerondiovis6128 10 днів тому +44

    Making Bun being able to create BUNdles is just the most reasonable thing to do.

    • @_tr11
      @_tr11 8 днів тому

      uBUNtu ahh

  • @infantfrontender6131
    @infantfrontender6131 10 днів тому +29

    The benchmark of a "hello world" is insane. Bun can handle 138,053 req/s and destroy all the competitors. Sarcasm

  • @comradepeter87
    @comradepeter87 10 днів тому +4

    i like the way you say "uploaat-think", it's really satisfying. literally the only reason why i made my company use your product

  • @tom.watkins
    @tom.watkins 7 днів тому +2

    I'm happy that this was considered a minor update. People are just so used to semver being misused that they assume lots of new features means a major bump

  • @qodesmith520
    @qodesmith520 9 днів тому +4

    Bun is my GO-TO JS runtime. I haven't used Node in... I can't remember the last time I used Node.

  • @waiitwhaat
    @waiitwhaat 10 днів тому +4

    This is the time of awesome dev tools. uv for python (which I am personally extremely impressed with), now bun for web dev, which I hope soon gets integrated with create Next app. Cant wait for more of these coming.

  • @User948Z7Z-w7n
    @User948Z7Z-w7n 10 днів тому +59

    "Drop-in" node replacement. Reality is never that simple. I'll wait and see you guys adopting it for your own projects

    • @whoknows3679
      @whoknows3679 10 днів тому +2

      Yeah same for me

    • @javierflores09
      @javierflores09 10 днів тому +9

      I get the skepticism, however Bun has adoption of almost every node API, excluding the v8 related ones for obvious reasons but these don’t matter for most projects anyway. There are some incompatibilities to be fixed however these are far and between nowadays. Point is, it is doing a pretty great job at holding that promise

    • @deckyfx2188
      @deckyfx2188 10 днів тому +4

      Been there,
      Bun is strugling replacing your old nodejs project into bun project, for simple project... maybe, but for more complex project it is a migration nightmare.
      instead, you have to create a new poject using bun entirely.

    • @IronMaidzen
      @IronMaidzen 10 днів тому

      @@deckyfx2188 not true i switched in 1.1 to bun at work, with two projects one Vue and Vue/nuxt project with over 300 components and it was 4 hours of work for fixes and some "hidden" small problems in the following weeks.

    • @johnmarston2474
      @johnmarston2474 10 днів тому +1

      @@deckyfx2188 Maybe when it came out, but Bun is almost perfect now.

  • @LePhenixGD
    @LePhenixGD 10 днів тому +2

    It's really cool! The only thing I wish Bun had was the ability to transpile TS to JJS while also generating .d.ts files, similar to how TSC handles it when building npm libraries for IDE auto-completion

  • @ChrisgammaDE
    @ChrisgammaDE 8 днів тому

    19:56 Absolutely can relate to this post. So many times I stumble upon a random Repo that might have what I want, but no screenshots and a 15 step installation manual.

  • @dasten123
    @dasten123 10 днів тому

    I'm surprised but very glad that you are so positive towards Bun. It's very underrated, more people should try it

  • @francoisguezengar6255
    @francoisguezengar6255 10 днів тому +14

    I understand why they focus on the most used libraries. But it feels like they are targeting a specific aws+react+tailwind type of devs.

  • @kajoma1782
    @kajoma1782 9 днів тому +2

    i don't even have node and npm on my system anymore. i now use bun for all my projects

  • @RanuPratapSingh
    @RanuPratapSingh 10 днів тому +2

    We are using bun in production since day 1.

  • @4ndrs_dev
    @4ndrs_dev 10 днів тому +1

    18:53 those posts were exactly what i thought of when i read that part about the standalone executables 😆

  • @jjrise
    @jjrise 7 днів тому

    bun build --compile is amazing for Tauri... allows me to run my bun backend in Tauri as a 'sidecar'. Pretty great

  • @BeechHorn
    @BeechHorn 10 днів тому +3

    As an architect who has near zero time to develop - your content has been brilliant to keep on top of web dev/arch. Thank you!

  • @hri7566
    @hri7566 7 днів тому

    i can’t live without bun’s websocket server now

  • @DrownedLamp9
    @DrownedLamp9 10 днів тому

    Theo! Playing with Buns live on camera! Bold man.

  • @bariqdharmawan6604
    @bariqdharmawan6604 10 днів тому +6

    Please enable caption Theo

    • @User-y6m2m
      @User-y6m2m 10 днів тому

      Pls no, i cant switch to default in mobile

    • @bariqdharmawan6604
      @bariqdharmawan6604 10 днів тому

      ​@@User-y6m2msorry, i mean caption. I'd already edit my comment

  • @TaiGroot
    @TaiGroot 10 днів тому +3

    bun's a bundler *again* :)

  • @11WicToR11
    @11WicToR11 10 днів тому +2

    imagine solving all the js issues and calling it 1.2 ...I think its fair to say that .3 will solve famine in Africa and .4 will cure cancer

  • @jermunitz3020
    @jermunitz3020 10 днів тому +2

    What's up with the postgres hate? I've always found it much more fully featured. That said SQL is not cool anymore as a query language. Piping syntax liie kusto query language are so much nicer to use.

  • @profoundgames_
    @profoundgames_ 10 днів тому +1

    you bump into node-gyp also when working on anything more advanced, like stream deck integration or isolated-vm...

  • @LadyEmilyNyx
    @LadyEmilyNyx 10 днів тому +1

    You either hate node-gyp, or you've never really USED node-gyp. There is no middle ground.

    • @SeanJMay
      @SeanJMay 9 днів тому

      Deno.dlopen was life-changing.
      const sdl3 = Deno.dlopen("sdl3.dll", function_bindings);
      Why yes, I would like it to be that simple, thank you.

  • @LtdJorge
    @LtdJorge 10 днів тому +1

    I don’t think static routes go through comptime.

  • @sujayxaradhya
    @sujayxaradhya 10 днів тому +3

    Finally you guys have adopted Zen Browser 🔥

  • @rns10
    @rns10 8 днів тому

    Previously we were replacing libraries, than lib frameworks and now the runtimes.
    Next is what?
    Change the lang and write lang transpilers so any lang can be converted to js and run on browser?

  • @DavidNyerges
    @DavidNyerges 9 днів тому

    You should add a T-shirt to your shop with "This needs a diagram" on it. :)

  • @alirezashahmoradi7648
    @alirezashahmoradi7648 5 днів тому

    Does anyone have benchmark on bun? I want to compare it with pnpm & vite

  • @matthewtetley7048
    @matthewtetley7048 10 днів тому

    isnt adding the env variables like that a possible security flaw if configured wrong

  • @ubuntu_doodle
    @ubuntu_doodle 10 днів тому +1

    How can a project start 2 years ago and be ahead of a project which is a decade old? Is tech debt such a big thing or bun team is just large or largely more funded compared to node?

    • @LtdJorge
      @LtdJorge 10 днів тому

      Because of lessons learned.

    • @HillaryNamanya
      @HillaryNamanya 10 днів тому +6

      You can take short cuts when you learn for mistakes made by those that made it and not do the same mistakes. Makes you get there 10x fast.

  • @rogerramjet69
    @rogerramjet69 10 днів тому

    I tried the docs with the compile option… whilst it compiled ok it wouldn’t even run… I feel its a rushed release.

  • @Mempler
    @Mempler 10 днів тому

    Why is uuid v7 controversal?
    One thing is if you require a time sensitive id and v4 if you require a purely random id.

  • @ulrich-tonmoy
    @ulrich-tonmoy 10 днів тому

    so like without electron and tauri i can just build desktop app with bun now

    • @bunkerkids1
      @bunkerkids1 10 днів тому +1

      Yes, but no.
      That compile step doesn’t set up a browser view for you. So you would need to pull in a system library to render the app.

    • @ulrich-tonmoy
      @ulrich-tonmoy 10 днів тому

      @@bunkerkids1 so its for cli app only

  • @amirhmahmoodi4607
    @amirhmahmoodi4607 9 днів тому +1

    Do not mess with postgres, be cool

  • @HoNow222
    @HoNow222 10 днів тому +2

    i hate so much normies near developer products

  • @QuassaKE
    @QuassaKE 8 днів тому

    standalone been there since 1.0

  • @jermunitz3020
    @jermunitz3020 10 днів тому

    I'm starting a new project in SvelteKit or Nuxt or Next which will be containerized and deployed on Kubernetes. It will need npm packages for a buch of things and also good crypto support for passeys. So what do I use today as a bundler and runtime?

    • @paw565
      @paw565 10 днів тому +2

      Node, it just works

    • @PurpleCucumber
      @PurpleCucumber 10 днів тому

      true, Node is just what SvelteKit and Next are optimized for. Your best alternative bet might be Deno, but if you don't have any particular reason for any of it's benefits, then don't worry about it.

  • @nullzeon
    @nullzeon 10 днів тому +7

    okay I'll admit it, I like the sponsored sections, one of the only channels I don't skip them

  • @theDanielJLewis
    @theDanielJLewis 10 днів тому

    I don't see anything new about `bun outdated`. We had it in 1.1 and didn't we also have it in 1.0?

  • @spandanbarve1066
    @spandanbarve1066 10 днів тому

    e Hidden Pattern behind all Financial Bubblese Hidden Pattern behind all Financial Bubbles

  • @sylvieasija
    @sylvieasija 9 днів тому +3

    Genuine question, what's wrong with express/what are alternwtives. I wasn't really sure what else to use for a mobile app with react native expo

    • @_tr11
      @_tr11 8 днів тому +1

      express is slow af. use hono or elysia

  • @nhhd99
    @nhhd99 6 днів тому

    Can we use it with next and t3?

  • @lronmate
    @lronmate 10 днів тому

    Is Tailwind broke because the very recent update to Tailwind v4?

  • @PureDizzi
    @PureDizzi 10 днів тому

    Everytime someone says Express, I am wondering if I am the only one using Elysia.

    • @nathanadhitya
      @nathanadhitya 10 днів тому

      I like the concept of Elysia, but its developer experience has been clunky for me. No streaming, SSE requires extra code, and some other shenanigans. I migrated from Express to Hono instead and has been pretty happy about it.

  • @MyriadColorsCM
    @MyriadColorsCM 10 днів тому

    Holy shit I can compile ts code into an executable? Wild

    • @ZedDevStuff
      @ZedDevStuff 10 днів тому +2

      Could for a while. Too bad the exe is gigantic

  • @wizard_status
    @wizard_status 9 днів тому +2

    Postgres slower than mysql. 🤣

  • @tambourinedmb
    @tambourinedmb 10 днів тому +1

    who is backing bun ?

  • @nero1375
    @nero1375 10 днів тому

    rsbuild ftw!

  • @awesome.rats159
    @awesome.rats159 9 днів тому +1

    Genuine question as someone who doesn't mess around much with JS, why are people okay with runtimes and libraries grafting in nonstandard features like `with {type:"xyz"}`, or even non-sourcefile imports in general? I also noticed that vite has its own special type of imports recently, which confuses me on a whole other level

    • @luccasbrandao1996
      @luccasbrandao1996 8 днів тому +2

      The with { type: "xyz" } syntax you saw is based on a TC39 proposal called "Import Attributes" (previously known as "Import Assertions"). This proposal is still in stage 3 and is not an official JavaScript/TypeScript standard yet. It may also be ignored depending on the TypeScript compiler you are using.

  • @Syberz2
    @Syberz2 10 днів тому

    As a normie, it's annoying when you find a tool for something that links to a github with no exe

  • @LtdJorge
    @LtdJorge 10 днів тому

    Why is he so obsessed with Postgres being "slow"?

  • @red_dog_
    @red_dog_ 10 днів тому

    ohh, we all hate node-gyp 😆

  • @quantran4704
    @quantran4704 10 днів тому +1

    Bun is everything =))

    • @whoknows3679
      @whoknows3679 10 днів тому

      Which means is nothing

    • @quantran4704
      @quantran4704 10 днів тому

      ​@@whoknows3679 yes/maybe but cannot be denied that Bun is good option beside Node.

  • @dand4485
    @dand4485 10 днів тому

    Could be wrong the one advantage of separate components is not all your eggs in one basket. So if bun's "sql" for example is buggy and you've written your app in bun 1.2 ah bug say it worked in bun 1.1, oops so it seems you'll run into a huge headache...

    • @johnmarston2474
      @johnmarston2474 10 днів тому

      You can just downgrade bun, lol

    • @Guergeiro
      @Guergeiro 10 днів тому +1

      ​@@johnmarston2474 hopefully you don't depend on the s3 package of bun which works in v1.2 but not in v1.1 because the bug was fixed.

    • @dand4485
      @dand4485 10 днів тому

      @@johnmarston2474 Not really as sql postgress is all baked into bun...

    • @dexteritymaster
      @dexteritymaster 10 днів тому

      @@johnmarston2474 So now you need to decide how much rework you need to do to replace other new stuff you used from latest version because you need to downgrade it all because of 1 bug... Yeah downgrading and staying with legacy versions, the greatest solution for bug problems.

  • @anasvemmully
    @anasvemmully 10 днів тому

    should check it out :)

  • @aymenbachiri-yh2hd
    @aymenbachiri-yh2hd 10 днів тому

    bun is very fast comparing to npm

  • @petergg9096
    @petergg9096 10 днів тому

    I don't know what to think of Bun. Should there be something that does it all, instead of having different tools for different purposes?

    • @hellotherenameishere
      @hellotherenameishere 10 днів тому

      A venture capital backed product is always going to get squeezed. They’re hooking you into their system, and then you’ll need to use your wallet to escape.

    • @petergg9096
      @petergg9096 9 днів тому +1

      @@hellotherenameishere bun is open source

    • @hellotherenameishere
      @hellotherenameishere 7 днів тому

      @ yes, the Bun cli tool is open source, and so is the docker daemon. But everything surrounding the Docker daemon (e.g Docker Desktop) is now bound to incredibly locked-down license agreements, and the Docker company is very letigious.
      Bun is VC backed, just like Docker, which means they WILL get their investments back, no matter what it takes.
      Bun is currently in the phase of roping everyone in and making it so their tools become dependencies in your companies production pipeline.

    • @petergg9096
      @petergg9096 7 днів тому

      @@hellotherenameishere okay but why didnt nodejs do that, i thought bun would be a "drop-in open source replacement for node js". not to be rude or anything, i am just curious

    • @hellotherenameishere
      @hellotherenameishere 7 днів тому

      @ NodeJS is owned by the OpenJS / The Linux Foundation which works to maintain open governance of the software. NodeJS was also created to solve a whole brand new problem. Bun, however, literally only exists to fork the NodeJS ecosystem by filling in gaps and creating its own features that it controls. Looping back to the fact that Bun is backed by a VC company, that usually only means one thing: Oven, the company behind Bun, will most likely start encapsulating the Bun ecosystem with means of getting money out of it. See Docker.

  • @dgdev69
    @dgdev69 10 днів тому +1

    Not gonna lie they should not market it as drop in replacement.
    Bun needs more cooking the fact they did not even have npmrc at v1 is not cool.

    • @lessko9
      @lessko9 10 днів тому

      wdym, they do have npmrc support nowadays, whats your problem?

    • @dgdev69
      @dgdev69 10 днів тому

      @@lessko9 npmrc is a thing should be supported on v1 not v2 also aggressive marketting as drop in replacement is not cool.

    • @lessko9
      @lessko9 10 днів тому +2

      @@dgdev69 I guess deno´s aggressive marketing as nodejs replacement is not cool as well
      Me: whats your problem?
      You: Bun didnt have .npmrc support!!
      Me: But now it has, so whats your problem?
      You: BUT BUN DIDNT HAVE IT IN V1!!! :(((
      the fuck man

    • @PurpleCucumber
      @PurpleCucumber 10 днів тому

      @@lessko9 chill - his point being, that bun marketed V1 as fully fledged, drop-in node replacement while it was still missing (and still is) translation layers and features that truly make it a node drop-in replacement. He used npmrc as an example, back then. Also he didn't mention anything about deno, but I will.
      Bun is (for many usecases) not a drop-in replacement to node right now. If we replace node with bun in just the deployment engine, not for building, lot's of things will and do break.
      Deno on the other hand works just fine when directly dropping it in as a replacement as of v2.
      Bun is cool, and for many things superior to a lot of alternatives, but it cannot do everything yet. Also the amount of "woops haha regression fix" versions have moved us to, for the moment, not even consider it in dev environments, let alone prod.

  • @The23Chika
    @The23Chika 10 днів тому +2

    lol the s3 speed difference would instantly deminish on larger files as it just needs a fraction longer to start - what a miserable comparison….

  • @usmansbk
    @usmansbk 10 днів тому

    Express still works well.

  • @hanes2
    @hanes2 10 днів тому +1

    it's not open-source. there's not a actual MIT LICENSE file in the repo. They can close it whenever they want- ONly yhe Bun binaries they provide is open-source .

  • @Disruptii
    @Disruptii 10 днів тому

    wait....are you on zen browser now? Have you tried Deta Surf browser?

  • @PowBro
    @PowBro 10 днів тому +1

    At this point node sucks

  • @olivierk3z420
    @olivierk3z420 10 днів тому +2

    Very opiniated tool. Not interested at this level.

    • @lessko9
      @lessko9 10 днів тому +3

      whats opinionated in bun ?

    • @olivierk3z420
      @olivierk3z420 10 днів тому

      @@lessko9 S3, SQL embeded

    • @lessko9
      @lessko9 10 днів тому

      @@olivierk3z420 you can use uploadthing and other sqlite packages if you want

    • @MrEnsiferum77
      @MrEnsiferum77 10 днів тому

      @@olivierk3z420 U don't need anything else. Like devs in companies knows far more than crap SQL. People using NoSQL db's are the one complains why they don't use SQL...