programming language, speed compilation

Поделиться
HTML-код
  • Опубликовано: 15 авг 2023

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

  • @gitstautusgitstutasgitstatus
    @gitstautusgitstutasgitstatus 8 месяцев назад +5384

    The C++ car catches fire after driving off.
    The Golang car weighs 5 tons.

    • @ArtemCYOU
      @ArtemCYOU  8 месяцев назад +239

      🤣🤣🤣

    • @uoweme5grand
      @uoweme5grand 7 месяцев назад +502

      Golang car also has to stop every once every km to take a dump.

    • @anthoantho1989
      @anthoantho1989 6 месяцев назад +103

      @@uoweme5grand Same as me.

    • @wesleyrm
      @wesleyrm 6 месяцев назад

      ​@@uoweme5grandLMAO Garbage Collector

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

      😂😂😂

  • @susamogus11111
    @susamogus11111 2 месяца назад +4937

    Python: keeps driving while pitstop people are running
    EDIT: Golang car being a garbage truck that weighs 10 tons with a 500 horsepower engine
    EDIT 2: C car driving at 1000 mph and skipping pitstop, occasionaly catching on fire

    • @dravenhoule646
      @dravenhoule646 2 месяца назад +308

      The car also drives at 2 kilometers per hour

    • @Cargren18
      @Cargren18 2 месяца назад +12

      Nice one

    • @benjamin4736
      @benjamin4736 Месяц назад +65

      python isn’t compiled

    • @paperwhite3853
      @paperwhite3853 Месяц назад

      ​@@benjamin4736 Well "aktually", python has a compilation phase, where it basically decides where to look for variables (in global scope or local).

    • @GDT-Studio
      @GDT-Studio Месяц назад +50

      Python isn't compiled, so it doesn't have a compilation time.

  • @aerbon
    @aerbon Месяц назад +2135

    the rust compiler is rebuilding the entire car

    • @thekwoka4707
      @thekwoka4707 Месяц назад +178

      And making sure the car actually works.

    • @meninoesperto2773
      @meninoesperto2773 Месяц назад +103

      Rust is first reinventing the wheel and then rebuilding the entire car

    • @br0ken_107
      @br0ken_107 24 дня назад +18

      @@thekwoka4707 and still it never does even after rebuilding it a thousand times.

    • @akj3344
      @akj3344 20 дней назад +34

      ​@@meninoesperto2773rush reinvents the wheel. Then reinvents the second wheel. Then third and fourth. Seperately.

    • @kira.herself
      @kira.herself 8 дней назад +10

      @@br0ken_107 skill issue

  • @emanuel.barreiros
    @emanuel.barreiros 4 месяца назад +1363

    rust compiler is an airplane checklist

    • @FazedSoul
      @FazedSoul Месяц назад +12

      Good observation

    • @meninoesperto2773
      @meninoesperto2773 Месяц назад +5

      Also generating unnecessary slower code 😕

    • @tensor5113
      @tensor5113 24 дня назад +9

      @@meninoesperto2773 How? An O(n^2) algorithm in rust will probably run faster than an O(n) algorithm in any high level language

    • @meninoesperto2773
      @meninoesperto2773 24 дня назад +9

      ​@@tensor5113 Rust generates unnecessary assembly code. For big values of "n", an O(n^2) algorithm probably never run faster than an O(n) algorithm.

    • @tensor5113
      @tensor5113 23 дня назад

      @@meninoesperto2773 Average leetcoder mindset, theres a reason why python/js cannot be used to power any realtime app of large scale. And interop with C doesn't count, thats just writing C and then attributing all the performance to JS/python

  • @JoyousUnicorn
    @JoyousUnicorn 25 дней назад +1041

    i’m convinced y’all have never written any c++ past like a homework assignment

    • @Alpha-vb3to
      @Alpha-vb3to 21 день назад +79

      In the school days i done all my homeworks assignments in C++ to learn more about the language.
      Years later now i am Python Programmer.

    • @that_guy1211
      @that_guy1211 18 дней назад +6

      i have, lol

    • @Internetzspacezshipz
      @Internetzspacezshipz 16 дней назад +51

      For real. I’m out here compiling UE4/5 for like 2 hours. At least it only takes that long the first time you build, and every time after that it’s like a minute at most…

    • @JoyousUnicorn
      @JoyousUnicorn 15 дней назад +26

      @@that_guy1211 so u know that if u have like more than one (1) template it immediately slows down a lot? lots of templating in a c++ project can make it as slow as rust

    • @that_guy1211
      @that_guy1211 15 дней назад +2

      @@JoyousUnicorn i've never used nor heard of templates until you replied to my comment, lol

  • @Zwiebelgian
    @Zwiebelgian 2 месяца назад +341

    I'm watching this while my rust program is compiling because it is taking too long

    • @Zwiebelgian
      @Zwiebelgian 23 дня назад +25

      For anybody wondering: That wasn‘t a joke

    • @RishitSrivastava007
      @RishitSrivastava007 18 дней назад +1

      @@Zwiebelgian what were you compiling though ?

    • @Zwiebelgian
      @Zwiebelgian 18 дней назад

      @@RishitSrivastava007 a personal project with 600 dependencies

    • @Zwiebelgian
      @Zwiebelgian 18 дней назад +15

      @@RishitSrivastava007 A personal project with a total of 600 crates

    • @khhnator
      @khhnator 7 дней назад +8

      @@Zwiebelgian dear god

  • @meninoesperto2773
    @meninoesperto2773 2 месяца назад +322

    Python is like Arabs changing tires while driving

    • @KorhalKk
      @KorhalKk Месяц назад +7

      E o carro capotando

    • @ForeverZer0
      @ForeverZer0 Месяц назад +23

      Nobody uses Python for performance (or lack thereof), it is famously slow. It does have some very useful features and fields where it excels, but speed (at any stage) has never been one of them.

    • @j.r.r.tolkien8724
      @j.r.r.tolkien8724 27 дней назад +34

      @@ForeverZer0 You realize that we're comparing compilation time and not running speed right? But then again python is interpreted not compiled.

    • @ForeverZer0
      @ForeverZer0 27 дней назад +8

      ​@@j.r.r.tolkien8724 You do realize that I am not the one who brought up the "speed of Python" right? The entire video and title is about compilation, so yes, I fully realize this, and was merely replying to another's comment.

    • @ZihadJoy
      @ZihadJoy 20 дней назад +2

      bro its not a performance comparison, you know what compilation mean?

  • @SomeoneIKnow651
    @SomeoneIKnow651 2 месяца назад +591

    This comment section needs to learn the difference between compilation speed and running speed. Like jeez...

    • @michawhite7613
      @michawhite7613 Месяц назад +90

      When you only work in interpreted languages, you never get to learn the difference.

    • @xwtek3505
      @xwtek3505 Месяц назад

      ​​@@michawhite7613Laughs in Scala

    • @susamogus11111
      @susamogus11111 Месяц назад +39

      Even worse, script kiddies don't even know what a programming language is (they probably think it's bashing the keyboard with a hacker typer)

    • @mohamedalitoure9696
      @mohamedalitoure9696 24 дня назад +2

      100% agree

    • @user-hy5cx9iu3l
      @user-hy5cx9iu3l 16 дней назад

      ​@@susamogus11111 I think it's just some old red-eyeers can't learn anything new

  • @KuroHebi
    @KuroHebi 7 дней назад +113

    Meanwhile, Assembly is running on indestructible tyres that don't need replacing.

    • @klimmesil9585
      @klimmesil9585 5 дней назад +9

      You still have to compile assembly, it's just super quick

    • @kellik7931
      @kellik7931 3 дня назад +27

      only took 8 years at the factory to make, for a specific customer

    • @__christopher__
      @__christopher__ 2 дня назад +11

      But you need different tyres for each track. All coming with their own type of screws, of course.

    • @robertobokarev439
      @robertobokarev439 2 дня назад +3

      Assembly language is like an almost-zero friction tire with every bolt being different

    • @qbit1103
      @qbit1103 2 дня назад +2

      Assembly is like an indestructible tire moving close to the speed of sound. But just the tire. The engineers gave up on putting together the rest of the car.

  • @user-wn5gk5gq2y
    @user-wn5gk5gq2y 26 дней назад +115

    C is already in space

    • @jongeduard
      @jongeduard 12 дней назад +22

      If it doesn't explode before reaching space.

    • @SteelBallBell
      @SteelBallBell 5 дней назад +6

      Houston, we have a problem💀

    • @uis246
      @uis246 5 дней назад +3

      C means speed of light.

    • @SuperPeposh
      @SuperPeposh 4 дня назад +1

      In void

    • @RTBOSS
      @RTBOSS 3 дня назад

      No low-level language in race

  • @ErrUndefinedVariable
    @ErrUndefinedVariable 4 месяца назад +141

    Rust: debugging today for next year race lol

    • @julyort6762
      @julyort6762 Месяц назад +8

      In rust you don't debug, you just wait for compilation and it works

  • @Siissioe123
    @Siissioe123 Месяц назад +136

    Python is like 4 people on top of a race car changing the tires while the car goes at two km/h, but sometimes the 4 people randomly can’t figure out how to screw in the nuts of the wheel.

    • @DanFromIran
      @DanFromIran Месяц назад +9

      LMAO best description!!

    • @michaelbuckers
      @michaelbuckers 7 дней назад

      Inside an airplane. God forbid Python ever has to drive on its own.

    • @qixiangsun6036
      @qixiangsun6036 2 дня назад

      so like the ferrari pit stops

  • @kozas0
    @kozas0 13 дней назад +24

    Notice how the C++ driver is not even wearing a helmet with that dubious sports car...

  • @Glomly
    @Glomly 9 месяцев назад +975

    Tell me you never coded C++/Rust without telling me you never coded C++/Rust

    • @ArtemCYOU
      @ArtemCYOU  9 месяцев назад +101

      я компилировал проекты на go, c и rust так что да есть с чем сравнить)

    • @willemschipper7736
      @willemschipper7736 8 месяцев назад +183

      Why? It’s true that Rust doesn’t have a very fast compiler

    • @randomperson5454
      @randomperson5454 8 месяцев назад +49

      Rust glazers are gonna learn soon 😂😂 in 2 years everyone will regret wasting their life learning/using rust and c++ will prove superior to Java and rust and python and all goofy ahh languages

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

      ​​​​@@randomperson5454source?

    • @thesergey
      @thesergey 8 месяцев назад +64

      it's true though. however compile time != code quality

  • @debasishraychawdhuri
    @debasishraychawdhuri 5 дней назад +2

    "I see you play games all day".
    "Mom, it's compiling."

  • @tophy9865
    @tophy9865 4 дня назад +6

    Where did people get this idea that Rust compilation is so much slower than C++? They are on par with eachother.

    • @idontknowanygoodnames1498
      @idontknowanygoodnames1498 3 дня назад +1

      No, rust is notoriously slow

    • @tophy9865
      @tophy9865 3 дня назад

      @@idontknowanygoodnames1498 Have you actually used Rust or C++? If you use a bunch of traits and macros, yea Rust is slow. C++ is slow if you use tons of templates. Otherwise they will both be tolerable. But both can be made slow by using "zero-cost abstractions". That's because they aren't zero-cost. They are zero runtime cost. Obviously if you do a bunch of complicated computation in the compiler, compile times will be slower. Where are you getting this idea that rustc is slower than clang or g++?

    • @unmeinks5907
      @unmeinks5907 2 дня назад

      @@idontknowanygoodnames1498 and so is c++?

    • @gamekiller0123
      @gamekiller0123 День назад

      ​@@idontknowanygoodnames1498Only because Rust is actually getting used by people other than C++ programmers, who compare it to the compilers and interpreters in their previous languages.

    • @hauk9659
      @hauk9659 8 часов назад

      ​@@idontknowanygoodnames1498 On an average day for Rust, it's a bit slow, but clear on what it wants. On an average day for C++, compiler has a stroke and leaves the programmer to also have one trying to figure out the problem. Then when he gets back from the hospital he either scraps half the code since it would be easier to make some new noodles from scratch than make their existing spaghetti edible. Or if they figure it out but end up taking a similar amount of time debugging as rust did compiling a working end result. Your average user doesn't write pristine C++, and it certainly isn't the most forgiving when compiling. So depends on the scenario, if you want to talk expert C++ programmer optimizing their code to compile and run efficiently, you need to look at the other side in the same scenario. Optimizations can be made to Rust projects as well, and planning ahead goes a long way for any project in any language. Plus it's not like the Rust dev will ever be stuck debugging, while the C++ dev just might.

  • @Smurdy1
    @Smurdy1 Месяц назад +34

    If this was about runtime speed, python would be like the first one but the car wouldn't have to stop because its top speed is 1 meter per hour

    • @ZihadJoy
      @ZihadJoy 20 дней назад +2

      python is not compiled and doesn't need compilation

    • @AE_AnarchistAlexcianEmpire69Bi
      @AE_AnarchistAlexcianEmpire69Bi 20 дней назад +2

      @@ZihadJoypython is both interpreted and compiled

    • @Smurdy1
      @Smurdy1 20 дней назад +4

      I wasn't talking about compile time, I was talking about runtime

    • @ZihadJoy
      @ZihadJoy 19 дней назад +2

      @@Smurdy1 the video is not talking about run time.

    • @Smurdy1
      @Smurdy1 19 дней назад +2

      @@ZihadJoy python is interpreted, and interpret time is pretty much the same as runtime, because interpreting is going line by line through the program and doing what it specifies, which takes as long as running the program does.

  • @adwaithrajeev5099
    @adwaithrajeev5099 Месяц назад +3

    As a Golang Developer, you got the wrong F1 team pitstop.

  • @arslankhan6227
    @arslankhan6227 4 дня назад +1

    Everybody gangsta until assembly language pulls up

  • @uis246
    @uis246 5 дней назад +1

    C:
    Complied while you blinked.

  • @moraletherapy
    @moraletherapy 7 месяцев назад +55

    as someone who worked with C++ and now learns Rust, it's so true

    • @Luxalpa
      @Luxalpa 2 месяца назад +3

      I've had worse compile times in C++ than in Rust, dunno if my experience was wrong.

    • @Phantom-lr6cs
      @Phantom-lr6cs 2 месяца назад +1

      @@Luxalpa maybe you are too noob for c++ ? XD lolz and btw how big is Hello world program in rust ? 15MB ? or 100MB ?

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

      Same here, Moraletherapy.

    • @dusknone
      @dusknone Месяц назад

      ​@@Phantom-lr6cs Bro a hello world program in rust is like 3 lines of code.
      fn main() {
      println!("hello world");
      }

    • @PiotrPilinko
      @PiotrPilinko Месяц назад

      @@Luxalpa I've noticed that heavy usage of nested templates is an overkill for compilation time.

  • @redthunder6183
    @redthunder6183 24 дня назад +11

    thats a really good analogy of compilation times lol

  • @chbrules
    @chbrules 3 дня назад +1

    C compiles faster than Go 🔥🔥🔥

  • @stojicgaming893
    @stojicgaming893 День назад

    Rust feels like the GTA 5 loading screen back when it was very unoptinised

  • @muhammadzulhaidir3667
    @muhammadzulhaidir3667 6 месяцев назад +37

    Maybe what you mean is during the first compilation, for the first compilation Rust is very slow, but not for subsequent compilations

    • @nahemahk
      @nahemahk 2 месяца назад +6

      That's because is using cache (already compiled code)

    • @SomeDudeInBaltimore
      @SomeDudeInBaltimore Месяц назад +3

      Most C/C++ compilers are also like this unless you change a header file somewhere that a lot of files are using.

  • @elephant_888
    @elephant_888 4 месяца назад +31

    Butthurt Rusticians in 3, 2, 1… 😂

    • @thegoldenatlas753
      @thegoldenatlas753 2 месяца назад +12

      Nah we busy pitying the c/c++ devs who don't have proper toolchain tech and have 50 years of duct tape tech debt slapped together and kept running by hopes and prayers.

    • @fredesch3158
      @fredesch3158 Месяц назад +12

      @@thegoldenatlas753 y'know you're proving their point, right?

    • @DanFromIran
      @DanFromIran Месяц назад +3

      Crustacians not Rusticians

    • @godnyx117
      @godnyx117 Месяц назад

      ​@@thegoldenatlas753 You must have felt so cool typing that inaccurate shit. 🤡

    • @strelokzero1179
      @strelokzero1179 Месяц назад

      ​@@fredesch3158 that he does. For curiosity sake just checkout any meme on rust. There will be a joke about butthurt rust devs and a huge amount of replies from actually butthurt rust devs doing exactly this, it gets funny how they try to actually refute a joke.

  • @wier2920
    @wier2920 4 дня назад

    Any of this is more fun than the programming itself 💀

  • @atikattar1104
    @atikattar1104 3 дня назад +1

    Meanwhile, Machine Languages, And Binary Codes :- ☠️

  • @abhinavsingh1972
    @abhinavsingh1972 22 дня назад +5

    Missed C man

  • @KorhalKk
    @KorhalKk Месяц назад +13

    Yeah, I don't mind getting my compiling take its time, but when it comes to running, C++ and C are like rockets close to Golang.

  • @henrystudios
    @henrystudios 3 дня назад +1

    meanwhile, lua driving while pitting😅

  • @redgeoblaze3752
    @redgeoblaze3752 3 дня назад

    I was expecting "Compilation speed: Python" and he just drives right on through the pit stop.

  • @indibarsarkar3936
    @indibarsarkar3936 3 месяца назад +4

    Good things take time to be built 👍🏻

  • @user-yg5gv1vv4s
    @user-yg5gv1vv4s 24 дня назад +34

    nope Python is still figuring out whether it has to put Wheels or Engine
    it somehow got its engine out

    • @PR0MINENCE
      @PR0MINENCE 24 дня назад +14

      Python is not a compiled language…

    • @animainmi
      @animainmi 23 дня назад +1

      Bro, what python is doing here?

    • @notaidan2
      @notaidan2 23 дня назад +2

      @@PR0MINENCEit gets compiled to byte code before going through an interpreter

    • @rule6elur
      @rule6elur 23 дня назад +3

      @@notaidan2 byte code it's not machine code, it's two different things.

    • @notaidan2
      @notaidan2 23 дня назад +2

      @@rule6elur still compiled. Machine code or not. The byte code could then be ran by either a JIT compiler or an interpreter. The actual process of running python still involves compiling one way or another.

  • @derblaue
    @derblaue 4 дня назад

    Julia just randomly stops on track to switch a single tire

  • @funkdefied1
    @funkdefied1 3 дня назад

    True. Next, show the C++ car driving straight into a wall.

  • @martingeorgiev999
    @martingeorgiev999 3 месяца назад +59

    Impressive. Very nice. Let's see Rust's segmentation faults.

    • @nubunto
      @nubunto 3 месяца назад +17

      Oops, I have solved race conditions and memory safety at compile time again. DAMN!

    • @user-uf4lf2bp8t
      @user-uf4lf2bp8t 2 месяца назад +7

      ​@@nubuntoit doesn't prevent general race conditions, just data races.

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

      @@user-uf4lf2bp8t true, you can still deadlock things if not careful

    • @rodolphov.santoro8829
      @rodolphov.santoro8829 Месяц назад +2

      @@nubunto In my experience sometimes i caused race conditions and deadlocks, trying to satisfy the borrow checker when i still wasn't used to it lmao

    • @nubunto
      @nubunto Месяц назад

      would love to see an example

  • @oulaoula349
    @oulaoula349 8 месяцев назад +93

    but rust has check feature that anticipates compilation errors and when compilation is done...completely safe

    • @youraccountissuspended
      @youraccountissuspended 4 месяца назад +8

      rust: turtle
      c++, golang: rabbit
      who finish first in the story?

    • @twelvetican
      @twelvetican 4 месяца назад +17

      @@youraccountissuspended multithreading

    • @noturgokuxd
      @noturgokuxd 4 месяца назад +4

      @@twelvetican 💀

    • @evilwizardtherapist
      @evilwizardtherapist 4 месяца назад

      ​@@twelvetican😮

    • @twelvetican
      @twelvetican 4 месяца назад +2

      @@youraccountissuspended the fastest one did

  • @averitiamiku
    @averitiamiku День назад

    Python: randomly reverses mid pitstop and drives over one guy because the driver mistook a call sign

  • @imperial2069
    @imperial2069 4 дня назад

    As a rust compiler , can confirm 😂

  • @alguem24
    @alguem24 Месяц назад +34

    C++: Segmentation fault, core dumped

    • @meninoesperto2773
      @meninoesperto2773 Месяц назад +8

      Skill issue

    • @itsfadixx
      @itsfadixx Месяц назад +3

      segsfault 🤫

    • @Sparky579
      @Sparky579 28 дней назад +3

      Git gud bruh

    • @ResZCreator
      @ResZCreator 26 дней назад +4

      Skill issue

    • @notjebkerman6207
      @notjebkerman6207 11 дней назад +2

      How to use C/C++ well:
      - Remember to free and null each malloc'd pointer
      - The above rule only applies if you use the heap, you don't have to use the heap
      - Signed int overflow is undefined
      How to use Rust well:
      - Do countless cargo-cult programming techniques to appease the borrow checker
      - Don't bother making a safe doubly-linked list
      - Executable size doesn't matter
      How to use Java well:
      - You have no real-time guarantees (the GC will interrupt safety-critical code)
      - You have no guarantees that it will work at all (The JVM has every right to seppuku)
      - Portability is barely better than in C
      How to use Python well:
      - Be patient

  • @pivelix
    @pivelix 27 дней назад +7

    I was gonna learn Rust, because I am sick of slow C++ compilation speed ... but the video and the comment section made me change my mind 🤣

    • @michaeldula462
      @michaeldula462 23 дня назад +6

      Coding in Rust, I don't think compilation time is the worst experience about it. But given the single factor you consider on using Rust or not, I assume that you also don't know the best things in Rust.

    • @michaeldula462
      @michaeldula462 23 дня назад

      still, this short vid made me chuckle.

    • @reggievelvet
      @reggievelvet 23 дня назад +4

      once you get past the initial compilation of your dependencies, rust's incremental compilation combined with debug releases tends to make it a very tolerable experience

    • @khhnator
      @khhnator 7 дней назад

      Rust has one advantage thou... most of the time you only compile once and it works

    • @idontknowanygoodnames1498
      @idontknowanygoodnames1498 3 дня назад +1

      ​@khhnator c++ does the same thing. In fact most languages do the same thing.

  • @cosmopolitanape6969
    @cosmopolitanape6969 8 дней назад

    I knew it's gonna be rust in the end lmao

  • @YaNeK92
    @YaNeK92 5 дней назад

    Let's give a round of applause to all of the programmers who have to deal with these scenarios 😆🤙🏼

  • @TobiasSample
    @TobiasSample Месяц назад +18

    Java was so slow it didn’t compile in time for this video

    • @theshermantanker7043
      @theshermantanker7043 27 дней назад +6

      javac compiles pretty fast, if you're trying to make fun of Java for having a slow runtime you've completely failed

    • @emptycode1782
      @emptycode1782 26 дней назад

      I haven't worked with java , but i have tried kotlin recently and its awful in terms of speed , so i thought java compile time should be close to it​@@theshermantanker7043

    • @99temporal
      @99temporal 7 дней назад +3

      Java compiles extremely fast compared to C++ or Rust

  • @BatmanFailedSociety
    @BatmanFailedSociety 4 месяца назад +12

    Just Zig it.

  • @idontknowanygoodnames1498
    @idontknowanygoodnames1498 День назад +1

    C++ can be fast and slow. Anyone who has compiled a large project with winrt knows how long it can take. But c++20 brought modules, which allows for incremental builds and speeds up compile times. (and is overall much much better than #include)

  • @bennoreuter4393
    @bennoreuter4393 2 дня назад +1

    Assembly is the car and when needed creates its own replacements team on the fly.

  • @sfratik8992
    @sfratik8992 3 месяца назад +112

    You forgot Python, change tires by hand

    • @skysaville
      @skysaville 2 месяца назад +16

      Um… I think you’re on the wrong race track. The scripting languages are over there… 🔥🔥🔥

    • @dawid0115
      @dawid0115 2 месяца назад +11

      "compilation speed"

    • @GDT-Studio
      @GDT-Studio 2 месяца назад +12

      Python is a interpreted language, we're talking about compiled language. Interpreted means it runs the code directly (That's why Python is slow), compiled languages convert your source code to machine code before running it, that's why C++ and other languages that are compiled are so fast.

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

      -while its running

    • @bndlett8752
      @bndlett8752 Месяц назад +3

      @@GDT-Studio Kind of incorrect. Python is an interpreted language, yes; however, it is primarily just the bytecode that is interpreted. Initially, the Python code is compiled to bytecode with a JIT compiler and then is sent off to an interpreter that then runs the bytecode.
      Python would technically fit in this race, it's just that the pit crew would be trying to change the tires while the car is driving on the track. xd
      (referenced from susamogus11111's comment)

  • @bharatnaik1226
    @bharatnaik1226 2 месяца назад +12

    Python: changes tyre while moving

    • @Reloadman99
      @Reloadman99 2 месяца назад +3

      Python slow as shit

    • @user-uf4lf2bp8t
      @user-uf4lf2bp8t 2 месяца назад

      ​@@Reloadman99yet compile time is very fast, which is what this video is about.

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

      ​@@user-uf4lf2bp8t the thing is that python code is mainly interpreted so that's why it compiles fast(interprets fast) but actual code is slower than a snail

    • @ilMostrare
      @ilMostrare Месяц назад +1

      @@user-uf4lf2bp8t... Python isn't compiled

    • @user-uf4lf2bp8t
      @user-uf4lf2bp8t Месяц назад

      @@Cargren18 obviously, but the video is about compile time. Bytecode generation is fast.

  • @tech_rustlings
    @tech_rustlings 3 месяца назад +2

    C++ car driver does not feel anything even though his tyre got punctured a long ago.. 😅😅😅

  • @ranggatohjaya
    @ranggatohjaya 4 дня назад

    "In Rust we tRust'😊

  • @Volt-Eye.
    @Volt-Eye. 3 месяца назад +3

    RUST compiler disciplines you to write the bug free code in one way else....

    • @PiotrPilinko
      @PiotrPilinko Месяц назад +2

      Nothing prevents a programmer against writing buggy code: 95% of bugs (c++/c#), which I fixed were related to business logic - no language can solve that.
      Also there is no problem to make a lot of errors in Rust related to the deadlocks.

    • @notjebkerman6207
      @notjebkerman6207 11 дней назад +1

      "Language safety" is a joke.
      No language design or static analysis can protect against business logic errors, and most of Rust's "safety" features can be done by static analysis tools for C.
      Just because a gun has a safety lever on it doesn't mean that you should aim it at yourself and slap the hammer.

    • @Volt-Eye.
      @Volt-Eye. 10 дней назад

      @@notjebkerman6207 i am using sarcasm
      I mean When you write Rust code,it takes years to compile already
      And If you are gonna mistakes again and again and don't abide by compiler rules then its gonna take you ages to finally compile your code.

  • @CptSDX23
    @CptSDX23 Месяц назад +13

    Java compiler rebuilds the entire car and makes it worse lol

  • @psycholian
    @psycholian 6 дней назад

    My man wishes c++ compiled this fast

  • @T1Oracle
    @T1Oracle 3 дня назад

    Okay, but the Rust car is actually a plane.

  • @larakayaalp1676
    @larakayaalp1676 22 дня назад +5

    i disabled incremental compilation so that i can still bill for 10 min compile times

  • @ZihadJoy
    @ZihadJoy 20 дней назад +4

    those who are mentioning python, do you know what compilation means?

    • @ciso
      @ciso 5 дней назад

      I dont think they do, but Python (at least CPython) does actually compile the source code to intermediate instructions for a virtual machine which then end up being interpreted.

    • @wontcreep
      @wontcreep 2 дня назад +1

      python is JIT compilation, you just don't see it like that

    • @oldcowbb
      @oldcowbb День назад +1

      CS students think shitting on python is cool

    • @ZihadJoy
      @ZihadJoy День назад

      @@ciso well we can compare bytecode generation with compilation, but even so its not the same

    • @ZihadJoy
      @ZihadJoy День назад

      @@wontcreep but bytecode is not machine code

  • @friedec3622
    @friedec3622 6 дней назад

    Python: pitstop while the car is moving.
    Also python: moving at the snail pace.

  • @slendi9623
    @slendi9623 22 дня назад +2

    golang cannot beat TCC in speed

  • @imrevadasz1086
    @imrevadasz1086 4 дня назад +3

    Rust rebuilds whole car using a modern factory. C++ uses some archaic car parts, and reassembles large parts of the car. Golang has pluggable parts to build the car from. The golang car looks verey very retro (because almost all golang concepts are from the late 80s, early 90s or so), but it is actually very new and modern.

  • @larakayaalp1676
    @larakayaalp1676 22 дня назад +7

    programmers: i got the top macbook pro at $4k cos it has the fastest cpu ever
    also programmers: i use golang cos it compiles faster

    • @mr_sauce_cooks
      @mr_sauce_cooks 22 дня назад +1

      it's for the low end pc, a good programmer is a one who thinks worst case

    • @larakayaalp1676
      @larakayaalp1676 22 дня назад +1

      @@mr_sauce_cooks whether u wait 5 seconds or 10 seconds for a compilation is the last concern when choosing a language
      rust’s compile time is high not cos of the compiler itself but its inherently more work to do the borrow checking and all the other safety things that rust has to do

    • @Brad_Script
      @Brad_Script 20 дней назад

      you can use the same CPU for 4 time less the price

    • @letscode8320
      @letscode8320 6 дней назад

      @@Brad_Script can you mention it?
      I am tired of laptop incompatible with linux specially Gaming. due to that at any cost I need to have mac pc

    • @ayesaac
      @ayesaac 6 дней назад

      I work primarily in Rust on a T420. First compile in a complex project will be relatively slow, but if you're regularly waiting on long compilations, you're doing some dumb shit.

  • @danwellington3571
    @danwellington3571 Месяц назад +1

    If you want C's speed without C's kill count...

  • @PaulPlay
    @PaulPlay 5 дней назад

    JS never sees the pit lane

  • @bibekshah3701
    @bibekshah3701 6 месяцев назад +7

    I love rust and this used to be so true a few years back 😂😂

    • @surajraika7821
      @surajraika7821 4 месяца назад +4

      still is

    • @nubunto
      @nubunto 3 месяца назад +1

      @@surajraika7821 not even close baby

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

      If you use Bevy Engine (Rust)... oh my god, my laptop was burning like hell. libGDX (Java) in comparison is very fast.

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

      @@surajraika7821 my game engine compiles in 3 seconds.

    • @ItsCOMMANDer_
      @ItsCOMMANDer_ 7 дней назад

      ​@@nubuntoit does take THAT long

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

    However, compared to "C++", "Rust" is not as quick to shoot itself in the foot

  • @PURENT
    @PURENT 14 дней назад +2

    Meanwhile JIT compilation: video of those arabs driving on two wheels and changing the tires.

  • @omegahaxors3306
    @omegahaxors3306 4 дня назад

    You call it compiling, I call it paid time off.

  • @AdityaShankar-gl1ty
    @AdityaShankar-gl1ty 4 месяца назад +4

    Meanwhile Java & Python ?

    • @noturgokuxd
      @noturgokuxd 4 месяца назад +12

      python is not a compiler based language brother

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

      those are interpreted languages. Java is converted to an intermediate language that then is compiled to machine code, and python is written in C.

    • @nahemahk
      @nahemahk 2 месяца назад +1

      Javac compilation is very fast, Python is interpreted (no need for compiling)

    • @AdityaShankar-gl1ty
      @AdityaShankar-gl1ty 2 месяца назад +1

      @@noturgokuxd ok brother

    • @sayven
      @sayven Месяц назад +1

      Fr JIT are basically the guys hanging onto the car while it's driving and somehow managing to still change the tire

  • @beautiful_ground
    @beautiful_ground 6 месяцев назад +83

    how does it feel
    to be objectively wrong?

    • @xObscureDarkness
      @xObscureDarkness 3 месяца назад +5

      He’s write though I write all 3 for work

    • @rico_1617
      @rico_1617 3 месяца назад +1

      It's true. Of course, rust has advantages in that it's faster at runtime, safer in terms multi threading smd also the compiler does a lot more thorough error checking.

    • @luigidabro
      @luigidabro 3 месяца назад +3

      ​@rico_1617, do you know the llvm ecosystem? Clang, as well as the rust compiler, are just syntax variations with other rules. They ultimately get optimized by llvm. Clang and Rustc just parse the language (do eventuallchecks) and feed llvm the tokens needed for compiling.

    • @araarathisyomama787
      @araarathisyomama787 21 день назад +2

      @@luigidabro It's actually even worse for Rust. Compiler frontend MUST do optimizations as well. How else would C/C++ be able to optimize out entire memory allocations?
      20 lines of basic self contained code? Maybe you'll get the exact same result in C, C++, Rust and Zig, but it doesn't scale much further. It will eventually diverge and language + your language proficiency + compiler frontend starts playing the main role.

    • @vyor8837
      @vyor8837 3 дня назад

      ​@@rico_1617 Rust is not faster than C++

  • @lifeofkoia
    @lifeofkoia 2 дня назад

    An advanced C++ teacher i TA for said it like this: Python is like your driving an armored car with training wheels, C++ is like your in a racecar with the hood off flying at 200mph while making an engine repair as you drive

  • @sonicjoy2002
    @sonicjoy2002 Месяц назад +7

    You shouldn't compare Rust compilation time with other languages, you should compare Rust compilation time with the time you average developers taken to debug in other languages.

    • @Hazanko83
      @Hazanko83 Месяц назад +1

      Yeah, and also take into consideration how much time is spent fighting with BC/static analysis.

    • @SomeDudeInBaltimore
      @SomeDudeInBaltimore Месяц назад +1

      First I'd have to learn it. But at 42 tears old I don't have three decades to spare.

    • @rabbitdrink
      @rabbitdrink Месяц назад

      found the rust dev

    • @ovi1326
      @ovi1326 14 дней назад

      No in fact. The most time spent in the compiler is codegen and linking bc rust relies on llvm and does everything statically. Getting the compiler in debug to split crates into dylibs automatically and maybe utilizing cranelift would grant rust much more bearable recompile times.

  • @AosZ
    @AosZ 26 дней назад +11

    Never seen a comparison which values compile time and nothing else. Thats like the least valuable virtue. Especially since many times you don't have to recompile the symbols if they haven't changed.

    • @pruthweeshasalian3688
      @pruthweeshasalian3688 23 дня назад +5

      It's not that deep. This is meant to be entertaining, not informative or comprehensive.

    • @AosZ
      @AosZ 23 дня назад

      @@pruthweeshasalian3688 yep, its funny. Could have done the same thing with C++ performance in comparison. But I guess its funnier putting Go as the fast one.

    • @macicoinc9363
      @macicoinc9363 22 дня назад +3

      It’s very valuable. When a project reaches sufficient mass the compile time cripples development

    • @AosZ
      @AosZ 22 дня назад

      @@macicoinc9363 really? It's a one time cost. My big tech has massive server farms that run multiple builds in parallel CI/CD. Consolidating stable prebuilt libs solves having to build everything from source. While it may take a long time to build one instance, development can also multi-task. This is fundamentally what you call DevOps.
      I will always compromise compile time for production performance.

    • @_garicas
      @_garicas 21 день назад

      it's a meme bro, why are you so hurt like that?

  • @harshad.sharma
    @harshad.sharma 2 дня назад

    Erlang/Elixir zooms past changing tyres and more wherever it feels like 😅

  • @alangamer50
    @alangamer50 7 дней назад +1

    Allat compilation time for the borrow checker to say "cannot borrow Rc because it might outliuve its parent function"

  • @sirbuttonhd
    @sirbuttonhd 7 месяцев назад +6

    Wow that’s a low quality post if I ever seen one

  • @user-tb5re6zs2r
    @user-tb5re6zs2r Месяц назад +4

    When you understand Rust you just can't use another language seriously again. They all feel incomplete, i know they are not but they all feel that way

    • @_garicas
      @_garicas 21 день назад +1

      Nope, I program in Go, Rust, C and now Zig, anyone with that tought of "They all feel incomplete" are just wrong because they feel so good being baby sit by the compiler, unable to deal with memory management in other languages

    • @user-tb5re6zs2r
      @user-tb5re6zs2r 21 день назад

      @@_garicas thanks for letting us know how you feel

    • @_garicas
      @_garicas 21 день назад

      @@user-tb5re6zs2r you're welcome

  • @douglass.4487
    @douglass.4487 5 дней назад

    Did you guys see C passing by right before Golang? Ka-chow!

  • @SandiShila
    @SandiShila 4 дня назад

    Guido : "pit stop"

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

    I am Rust developer...see you in a few days.

  • @EdwardLeeDev
    @EdwardLeeDev 23 дня назад +5

    who cares compilation speed ;)

    • @proklyata_delta
      @proklyata_delta 22 дня назад

      Have you try to compile Android?

    • @macicoinc9363
      @macicoinc9363 22 дня назад

      Takes 20 minutes to compile some of our stuff at work. Changing one line of code and having to wait 20 minutes is not fun

    • @larakayaalp1676
      @larakayaalp1676 22 дня назад

      @@macicoinc9363are u rewriting windows in rust or something

  • @danikpro8587
    @danikpro8587 3 месяца назад +2

    Этот бро просто слишком сильно любит go. Хорошое продвижение для такого языка

  • @joseluizlimaneto3080
    @joseluizlimaneto3080 5 дней назад

    So, thats's why cosmic desktop took so long to upgrade

  • @mahadialam1055
    @mahadialam1055 3 дня назад

    I expected to see Guido change McQueen's tire

  • @rob2theworld
    @rob2theworld 11 дней назад

    The C++ probably crashes into a walln5 seconds later😂😂😂

  • @Virtuanix
    @Virtuanix 7 дней назад

    Now let's talk about compilation difficulty

  • @nastykhan7746
    @nastykhan7746 18 часов назад

    Employee: "Boss, I already told you. This project is time-consuming. You can't speed it up, just by assigning more people into it."
    Meanwhile in Formula One:

  • @rabbitdrink
    @rabbitdrink Месяц назад

    c: speeding through the pit lane

  • @Suneth5
    @Suneth5 5 часов назад

    I am a software developer with more than 10+ years experience. But never heard programming language called rust.

  • @frankluvsu21
    @frankluvsu21 8 часов назад

    Don't forget the python interpreter, it takes the car and gives you a bike instead.

  • @FlynnFromTaiga
    @FlynnFromTaiga 2 месяца назад +1

    checking both Go and Rust at the same time now. Rust really takes it time.

    • @user-uf4lf2bp8t
      @user-uf4lf2bp8t 2 месяца назад +3

      Both have their use cases. Comp speed is kind of trivial though, as you only compile the finished project once. Also, with rust, the second compile is much much faster because it doesn't recompile dependencies.

  • @abeyroy007
    @abeyroy007 3 дня назад

    Python : *"1000Tonne Truck"*

  • @KX36
    @KX36 3 дня назад

    if compilation speed was everything, people would just write everything in javascript.
    oh wait...

  • @ashutoshchar940
    @ashutoshchar940 15 дней назад

    Rust compiler will check your pockets if it can

  • @muesligangster
    @muesligangster 28 дней назад +2

    c++ depends. If you use Clang in combination with Make as Generator you wait for ages. Also if you have programms with a lot of meta programming its becomming worse...
    With g++ and ninja it's better...

  • @docvolt5214
    @docvolt5214 3 дня назад

    Not me programming in assembly

  • @iamvariable01
    @iamvariable01 День назад

    Meanwhile someone is talking about HTML 😂

  • @TON-vz3pe
    @TON-vz3pe 22 дня назад +1

    Rust is a Divine blessing my friend

  • @mitnew3214
    @mitnew3214 20 дней назад +1

    Can never compare that to C

  • @crankshaft30
    @crankshaft30 3 дня назад

    C++ is fast. Way faster than i will ever need. Its kinda miracle