Silly Fast Fresh Deploys with Rust (Part 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 85

  • @fasterthanlime
    @fasterthanlime  ปีที่แล้ว +88

    When Control Plane reached out they said "we want you to have fun with the video". Then I recorded 3 hours of footage coding Rust and TypeScript, so I guess that's my idea of fun? Enjoy the series!

  • @insydian
    @insydian ปีที่แล้ว +81

    I think you mean Rust™️

  • @jonasync
    @jonasync ปีที่แล้ว +44

    I'm seriously rooting for Deno, because look how quickly you got a Fresh project set up. It's time for Node to go away.

    • @Antonio-fo4fl
      @Antonio-fo4fl ปีที่แล้ว +2

      Have you seen bun

    • @faeancestor
      @faeancestor ปีที่แล้ว

      heard about that

    • @deado7282
      @deado7282 ปีที่แล้ว

      ​@@Antonio-fo4fl almost a scam

    • @okie9025
      @okie9025 ปีที่แล้ว +1

      @boohba js haters will never make sense to me

    • @okie9025
      @okie9025 ปีที่แล้ว +1

      @boohba typescript

  • @jbca
    @jbca ปีที่แล้ว +19

    Deno content? Awesome. I tried Fresh when it came out but it seemed a bit rough, curious to see how it works for you. ▶️

  • @jameender
    @jameender ปีที่แล้ว +8

    You baited me so hard for the rust content yet there was NONE TO BE FOUND. Awesome content as always tho ❤❤

  • @JosephHenryDrawing
    @JosephHenryDrawing ปีที่แล้ว

    Nice to see what is your dev workflow (IDE, tools and tips and tricks)!

  • @appelnonsurtaxe
    @appelnonsurtaxe ปีที่แล้ว +2

    Great video! As always, I learned a lot, and the sponsorship was perfectly relevant and didn't spoil the video.

  • @guyman8282
    @guyman8282 ปีที่แล้ว +1

    Deno Deploy is great, and it has 0 lock in. its basically identical to Deno runtime on your machine, just missing a few APIs. It deploys way faster than control plane also

    • @DanielLamando
      @DanielLamando ปีที่แล้ว +1

      Yea, the deploy time is crazy, just several seconds. The primitive is V8 isolates instead of Docker containers, so there are some restrictions, but if it works on Deno Deploy it'll work on your own computers too.

    • @TomusMedia
      @TomusMedia ปีที่แล้ว

      The next video is going to probably put deploy times on par with Deno Deploy. I'm sure it's more expensive to deploy to all of the control plane regions compared to deploying to all of the Deno Deploy regions tho

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว

      @@TomusMedia You know what, doing a pricing comparison would be interesting. I'm not sure who would come out on top because Deno Deploy comes with a free tier... but they're also selling something with value added (those fast deploys). Both benefit from economies on scale, and I'd expect Control Plane to be more affordable simply because it's built over lower-level primitives.

    • @TomusMedia
      @TomusMedia ปีที่แล้ว

      @@fasterthanlime I'm not so sure. There is inherently more scale in Deno deploy's architecture, JavaScript containers (v8 isolates) are cheaper than Linux containers. They also scale to zero without much cold start impact, not sure if control plane can compete with that feature either

  • @anasrin
    @anasrin ปีที่แล้ว

    you can use deno vendor to save all dependencies to local project

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว

      Ooh that would've been smarter than what I tried. I tried using deno cache and I think it uses a system cache (as opposed to a per-project cache), which wouldn't have worked with the deploy strategy I'm going for. Although.. I could run "deno cache" before switching to the new deploy. So many missed opportunities 😭 I mean... exercises left to the reader.

  • @timfish
    @timfish ปีที่แล้ว

    The main thing I've found against Deno Deploy is that it doesn't run on full Deno. It runs on their own restricted build of Deno which has missing APIs and there's no way to test an app on their build without deploying! Also last time I looked there was no way to pin the "Deno Deploy" version so there's a risk of future breakage...

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว

      Yeah, see I'm not too surprised by that kind of limitations/breakage. Note that I've also been struggling to pin versions of Deno packages on full Deno as well..

  • @jaopredoramires
    @jaopredoramires ปีที่แล้ว +4

    How do you scale windows like that?

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว +2

      I'm using a tool called AltSnap: github.com/RamonUnch/AltSnap

  • @medalikhaled
    @medalikhaled ปีที่แล้ว

    I've seen you use many intersting cli tools in your videos, a small video listing your favourite tools will be very helpful, and thanks for the awsome content 🙏

  • @nickr753
    @nickr753 ปีที่แล้ว

    Fun fact: Deno Deploy is the underlying infrastructure behind Netlify Edge Functions and Supabase Functions.

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว

      That wasn't always the case for Netlify 😬

  • @eazypeazy8559
    @eazypeazy8559 ปีที่แล้ว

    awesome!

  • @thekwoka4707
    @thekwoka4707 ปีที่แล้ว

    I'm suffering with slow deploys!!! When will part 2 come out so I can be blazingly fast?

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว

      I've scheduled all 7 parts weekly on tuesday!

  • @ooyey
    @ooyey 11 หลายเดือนก่อน

    how pro resizing very fast 😮

  • @chudchadanstud
    @chudchadanstud ปีที่แล้ว +2

    Thoughts on the proposed Trademark policies on Rust™?

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว

      I'm confident it'll get fixed. I'm not super happy about the state of this comment section right now, but hey, engagement goes brrr.

  • @ac130kz
    @ac130kz ปีที่แล้ว

    if only Deno really good at being compatible with Node, it's a bit too much of a hussle to migrate

  • @ndwxxd
    @ndwxxd ปีที่แล้ว +4

    How did you resize the window on 10:15?

    • @SkegAudio
      @SkegAudio ปีที่แล้ว

      Yeah I was wondering the same 🤔

    • @coffee-is-power
      @coffee-is-power ปีที่แล้ว +1

      alt+right click on some Desktop Enviroments, idk on windows though.

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว +1

      That's AltSnap on Windows. On macOS I use Easy Move+Resize, and on Linux most desktop environments have that functionality built-in.

    • @GoldSoulTheory
      @GoldSoulTheory ปีที่แล้ว

      Easy Move+Resize is a godsend

    • @leonie9248
      @leonie9248 ปีที่แล้ว

      @@fasterthanlime OMG, I love it. As a KDE user, I've never been aware of Super+Right Drag (I do use Super+Left Drag regularly). This is quite nice.

  • @martinkrajda5521
    @martinkrajda5521 ปีที่แล้ว

    The amount of random stuff I learned from this video is over 9000.

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว

      That's the spirit! I cut a lot of nonsense still, but I'm trying to leave some learning experiences in :P

  • @nateedwards1313
    @nateedwards1313 ปีที่แล้ว +13

    I'm confused is this official rust foundation content?

  • @sudbalaji
    @sudbalaji ปีที่แล้ว

    love your stuff! haven't noticed this before in your videos, but either your microphone is picking up on the vibrations caused by your typing, or you've got the thunkiest mechanical switches I've ever heard

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว +1

      Yeah the mic arm is pretty strained which might not help absorb shocks. I might want to add some pads under my keyboard or something. It's just a Logitech K120, it shouldn't be that noisy

  • @thepetesmith
    @thepetesmith ปีที่แล้ว +1

    As a front end guy when you talk about front end guys like we’re 8 I crack up.😅

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว +1

      Hey eight year olds don't make up a new acronym every week!

  • @Julian-Hofer
    @Julian-Hofer ปีที่แล้ว

    I wonder what extension you use to get the top bar in the right pane on 5:34

    • @gaweringo
      @gaweringo ปีที่แล้ว

      Sticky scroll? It's a built in setting. If that's what you mean.

    • @Julian-Hofer
      @Julian-Hofer ปีที่แล้ว

      @@gaweringo Ah nice, thanks!

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว +1

      Yup that's the one - it's very nice while browsing larger files.

  • @tedrose
    @tedrose ปีที่แล้ว +1

    Have you heard of Leptos?

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว +3

      I haven't tried it yet but I've used yew, for example. My experience is that iteration times are just not the same! And it wouldn't really work with the silly idea I have in mind 😇

    • @tedrose
      @tedrose ปีที่แล้ว

      @@fasterthanlime would definitely recommend giving it a try - it has some really cool things like html within macros. Also an excuse to use nix to bundle the WASM.

  • @doce3609
    @doce3609 ปีที่แล้ว

    How do you so magically resize your windows?

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว +1

      It's a tool called AltSnap: github.com/RamonUnch/AltSnap

  • @ndykhng
    @ndykhng ปีที่แล้ว +1

    FYI, Deno is supposed to be pronounced like di-no, not de-no :)

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว +1

      I realized that while editing the video. Whoops!

  • @DerH0ns
    @DerH0ns ปีที่แล้ว

    Wouldn't Yew been an better fit?

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว

      No, the point is to deploy an interpreted language without having to recompile anything. You could argue typescript is compiled, but... That's not nearly as expensive as building Rust, for example.

  • @ahmadkhudai
    @ahmadkhudai ปีที่แล้ว +1

    Wow, rust foundation supports deno and fresh

    • @martinkrajda5521
      @martinkrajda5521 ปีที่แล้ว +1

      This was also the first thing that came to my mind.

  • @CallousCoder
    @CallousCoder ปีที่แล้ว +1

    Very cool! Although I’m amazed how terrible software is these days. Despite the so called unit tests, and CI/CD as he starts it up and is directly confronted with errors that apparently a lot of people also had. So how do this devs test their crap? Probably not on a clean VM! This happens so often these days. In the last software just worked. But after 1996 something happens (Windows95 😂) and the world went 2:30 nuts. Up to the point that even Apple and Linux distros have updates that just cripple systems.
    I find issues in our code base all the time and our other team: “we don’t have that”. But when we go to production we run, solidly! When they go they get those edge cases that we already tested. Only put software out when you know and can guarantee its working! It’s not a race! It’s giving the best stable product and user experience.
    I would never drive a car or fly, If they engineered and tested planes and cars like most developers no create and test software!

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว +1

      Yeah... my VM's not clean either, but I did go the extra mile of doing the research on a separate computer and then installing most things from scratch here. It's a delicate balance between "we spend forever setting things up" vs "I magically have everything working on my machine and you don't".

    • @CallousCoder
      @CallousCoder ปีที่แล้ว

      @@fasterthanlime yeah that “huh it works in my system” is so recognizable.
      This is why I’m very happy with serverless and Docker. Every variable is taken out of the equation.

    • @CallousCoder
      @CallousCoder ปีที่แล้ว

      @@fasterthanlime oh btw I adore your channel, sort of similar content to mine (hacking games and some more advanced coding)! I came across your awesome channel by accident because I looked at system monitor lib in rust. To replace some very old C code that we use to monitor Linux using the proc file system. And this actually works perfectly also on windows (much to my amazement). Great library! And a great find by you and brilliant funny presentation. Keep it up!!’

  • @jaopredoramires
    @jaopredoramires ปีที่แล้ว

    Oh so you're taking sponsorships. Making money I see. Happy for you! Hope someday it pays more than only your rent

  • @mannycalavera121
    @mannycalavera121 ปีที่แล้ว

    What r dis?

  • @ThiagoPereira-ou3zy
    @ThiagoPereira-ou3zy ปีที่แล้ว +13

    I noticed your thumbnail has the Rust logo along with other logos. This is a no no from The Foundation TM. Please remove it.

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว +21

      That's Ferris, which is fine! Also the policy isn't final yet.

    • @joranmulderij
      @joranmulderij ปีที่แล้ว +3

      I sincerely hope this was a joke.

    • @ThiagoPereira-ou3zy
      @ThiagoPereira-ou3zy ปีที่แล้ว +2

      @@joranmulderij lol, obviously.

    • @ThiagoPereira-ou3zy
      @ThiagoPereira-ou3zy ปีที่แล้ว +2

      @@fasterthanlime just kidding! Keep up with good work! 🥂

  • @MohammadMustakimAli
    @MohammadMustakimAli ปีที่แล้ว

    OK you got my first downvote for just finishing the video when you actually got started.
    Seriously? How can you do that?

    • @fasterthanlime
      @fasterthanlime  ปีที่แล้ว +2

      You know how sometimes a project is so large it seems unsurmountable? That was the case here. I had spent so much time already researching this, training for it, recording it, and editing it.. my editing software was crumbling under the sheer amount of cuts, it was becoming unmanageable. Releasing the first part allows me to start a weekly schedule, and I'm now almost done with editing the other parts.
      Also, TH-cam's algorithm really punishes releasing "one really long video very rarely", and I won't be able to release other kinds of videos in the next month or two since I'll be out for surgery, then recovery. Also, these videos are intense and packed with a bunch of knowledge/showing off tools - it's nice to be able to take a breather between them and to link to specific ones if you want to share them.
      I hope that explains it. If you're still sad about it, then so be it. For me it was the best way to make this work and protect my health.

    • @leonie9248
      @leonie9248 ปีที่แล้ว

      @@fasterthanlime > I had spent so much time already researching this, training for it, recording it, and editing it..
      You made it look so effortless, I would never have guessed what you reveal here.
      I'm not OP, but anyway thanks for your thorough explanation and thoughtful and calm way to react to a sloppy negative comment.