I Built a FAST Package Manager (in Rust)

Поделиться
HTML-код
  • Опубликовано: 28 июн 2024
  • Project Repository: github.com/conaticus/click
    Kventis Github: github.com/ImKventis
    Discord: / discord
    Github: github.com/conaticus
    Twitter: / conaticus
    Join this channel to get access to perks:
    / @conaticus
    0:00 Intro
    0:24 Command Parsing
    1:11 Version Resolution
    3:02 Multi-Threading
    3:40 Package Fetching
    6:03 Duplicate Avoidance
    6:27 Benchmark Against Bun
    I Built a FAST Package Manager (in Rust)
  • НаукаНаука

Комментарии • 68

  • @aqua_cat_
    @aqua_cat_ 9 месяцев назад +146

    Him: explaining whole code in detail.
    Me: "I like your funny words, magic man!"

  • @allesarfint
    @allesarfint 9 месяцев назад +5

    0:08 DUDEEEEEEEE, YOUR GLASSES!!! AAAAAAAAAAAAAAAAAAAAAAAAAAAA

  • @virusblitz
    @virusblitz 9 месяцев назад +5

    I really enjoyed watching this! The more detailed explanations definitely help to understand your projects better :)

  • @pb8655
    @pb8655 9 месяцев назад +6

    appreciate you open sourcing this, i think vids like this would go crazy if you actually built these from scratch in a tutorial. nobody else does unique projects like these

  • @TonyUnderscore
    @TonyUnderscore 9 месяцев назад +13

    Great video!
    I just wanted to point out that incrementing an atomic number on every completion is not inefficient at all, especially when you compare it to the rest of the task which includes a web request.

  • @theohallenius8882
    @theohallenius8882 9 месяцев назад +76

    Does yours also crash when .env variable is exactly 159 bytes long?🤣

    • @juanmacias5922
      @juanmacias5922 9 месяцев назад +16

      lmfao really? I haven't heard of bun crashing like that lmfao

    • @philheathslegalteam
      @philheathslegalteam 9 месяцев назад

      @@juanmacias5922it happened in an earlier version. They fixed it

    • @somedoga
      @somedoga 9 месяцев назад

      ​@@juanmacias5922it's a feature

  • @yolocat-dev
    @yolocat-dev 9 месяцев назад +4

    Love your content, keep it up bro!

  • @haliszekeriyaozkok4851
    @haliszekeriyaozkok4851 9 месяцев назад

    Very good. I'm like especially your rust videos. Keep shooting them.

  • @toastarg6577
    @toastarg6577 9 месяцев назад

    Always love watching your videos. Keep it up!

  • @charetjc
    @charetjc 9 месяцев назад

    Maybe you've already done this, but I recommend when your main loop blocks on the empty while loop, use thread::sleep for 10ms or so so your loop doesn't keep a core busy that would otherwise be resolving dependencies.
    Thanks for the video. Was very interesting.

  • @ExediceWhyNot
    @ExediceWhyNot 9 месяцев назад +8

    Is it just me or your Rust code is suddenly very clear now? It's amazing!
    Edit: ah yes, thanks, Kventis!

  • @ashish_prajapati_tr
    @ashish_prajapati_tr 9 месяцев назад +1

    this is awesome.
    Helping you to break RUclips algorithm

  • @haithem8906
    @haithem8906 9 месяцев назад +2

    without cache, the bottleneck is your internet/ping speed

    • @MelroyvandenBerg
      @MelroyvandenBerg 9 месяцев назад

      Exactly. So npm should do better cdn etc. Or you should have some kind of local npm cache server

  • @vuolk
    @vuolk 9 месяцев назад

    loving the content, just wish the videos were longer :D

  • @dotak9663
    @dotak9663 9 месяцев назад +1

    your content is marvelous in our eyes

    • @dotak9663
      @dotak9663 9 месяцев назад

      from where you comeup with this type of content

  • @AquaQuokka
    @AquaQuokka 9 месяцев назад +6

    A _fast_ package manager? Mans done the impossible...
    Oh, and name suggestion considering that _click_ is also the name of a Python library for building CLIs:
    _conch_
    con: short for *con* aticus
    ch: short for *ch* anneling

    • @Fully_Coded_
      @Fully_Coded_ 9 месяцев назад +1

      rust programmer is going to conquer the world...

  • @mrrolandlawrence
    @mrrolandlawrence 9 месяцев назад

    the race is on to be the fastest!

  • @krateskim4169
    @krateskim4169 9 месяцев назад

    Awesome , waiting for the next part

  • @gian831
    @gian831 9 месяцев назад +1

    i love your videos

  • @piano_arts_2007
    @piano_arts_2007 9 месяцев назад +3

    I think you can make it even fater but in Zig...

  • @secretr5024
    @secretr5024 9 месяцев назад +3

    How are you so good at coding where do you learn this?
    also great video!

    • @conaticus
      @conaticus  9 месяцев назад +7

      thanks

    • @itsmeagain1415
      @itsmeagain1415 9 месяцев назад

      @@conaticus where can I find ideas like this to do myself, I'm facing a problem of not knowing "what project to do", any thing I come up with is some 100 developers project that I can in no way start just like that

    • @juwulez
      @juwulez 2 месяца назад

      @@itsmeagain1415 you can do pretty much anything - just do things that already exist, starting basic like an HTTP server implementation, basic data structures ( queues, hashmap, dynamic arrays/vec ) ( obv write them from primitives to challenge yourself ), a package manager is pretty easy and is basically an HTTP client that fetches from git or a registry like NPM and most basically it involves the steps in this video but might also include a build/compilation step, you can also implement more complicated things like a version control system analogous to git itself, or beyond that you could implement an interpreted language from scratch or even further a compiled one. There are basically endless things you can do for project, hell even just opening a code editor and messing around in your language, reading the std lib, will get you some valuable experience.

  • @Theo_drawi
    @Theo_drawi 9 месяцев назад +2

    I love ur vids

  • @sousoulefou
    @sousoulefou 9 месяцев назад +11

    I tried to install bun on my machine a few hours ago, then I saw I needed to install Linux on my PC, then I gave up and admitted that node was fine to build a discord bot in typescript x'). Programmers will always try to gain that one extra second of their time xD

    • @henrylang699
      @henrylang699 9 месяцев назад +1

      Just not worth it

    • @juanmacias5922
      @juanmacias5922 9 месяцев назад

      isn't Deno also faster than Node?

    • @sousoulefou
      @sousoulefou 9 месяцев назад

      @@juanmacias5922 yep

    • @blu5175
      @blu5175 9 месяцев назад

      @@imrdeveloper ive tried for hours never set it up before

    • @addidix
      @addidix 9 месяцев назад

      @@juanmacias5922 anything is faster than node

  • @lunarcode
    @lunarcode 8 месяцев назад +1

    Your videos are my life essence

    • @conaticus
      @conaticus  8 месяцев назад +1

      thank you ❤

    • @lunarcode
      @lunarcode 8 месяцев назад +1

      ​@@conaticuslove your vids man keep goin

  • @Kventis
    @Kventis 9 месяцев назад +1

    Congrats

    • @charlie_r_1717
      @charlie_r_1717 9 месяцев назад

      didnt ask mate

    • @ExediceWhyNot
      @ExediceWhyNot 9 месяцев назад

      @@charlie_r_1717 He literally helped Conaticus with the video. Pretty sure he has a reason to congratulate him.

  • @fxiqval
    @fxiqval 9 месяцев назад +1

    letsgo

  • @ayangd1436
    @ayangd1436 9 месяцев назад

    nice

  • @andrejbartulin
    @andrejbartulin 9 месяцев назад

    cool

  • @IlliaZhdanov
    @IlliaZhdanov 8 месяцев назад

    ... so the other day i thought: "Huh, i need to create a package manager which is faster than homebrew" (yes i am a mac user...). Scrolling thru youtube... and i see this video. LMAO

  • @587_mehulrana2
    @587_mehulrana2 7 месяцев назад +1

    i didnt understand a single thing, though I watched whole 7 min 35 sec of video XD

  • @KresnaPermana
    @KresnaPermana 9 месяцев назад

    i'm simple person, I see Rust. I click it

  • @Faraday2122
    @Faraday2122 9 месяцев назад +1

    Hiii

  • @TheProkiborg
    @TheProkiborg 9 месяцев назад

    Test it against npm!

  • @tabdig
    @tabdig 9 месяцев назад +2

    Then there is dumb me that tryed to make my own tailwind css, tryed to make it faster, and ended up creating it 3x faster lol

  • @gaz7702
    @gaz7702 9 месяцев назад +1

    +1 for using RUST , -1 for using WINDOWS

  • @nanashi7726
    @nanashi7726 9 месяцев назад

    Great work, but you should have a respect to Bunf's team and Node's team.
    Your tweet like "im sorry bun" is too offensive...

  • @theuniverse2268
    @theuniverse2268 9 месяцев назад

    write a compiler for typescript to native and not a fucking package manager

    • @imf4ll
      @imf4ll 9 месяцев назад +1

      Do it yourself