programming language, speed compilation

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

Комментарии • 1 тыс.

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

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

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

      🤣🤣🤣

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

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

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

      @@uoweme5grand Same as me.

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

      ​@@uoweme5grandLMAO Garbage Collector

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

      😂😂😂

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

    the rust compiler is rebuilding the entire car

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

      And making sure the car actually works.

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

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

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

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

    • @akj3344
      @akj3344 29 дней назад +45

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

    • @kira.herself
      @kira.herself 17 дней назад +16

      @@br0ken_107 skill issue

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

    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 месяца назад +334

      The car also drives at 2 kilometers per hour

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

      Nice one

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

      python isn’t compiled

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

      ​@@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 2 месяца назад +58

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

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

    rust compiler is an airplane checklist

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

      Good observation

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

      Also generating unnecessary slower code 😕

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

      ​@@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 Месяц назад

      @@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

    • @gwentarinokripperinolkjdsf683
      @gwentarinokripperinolkjdsf683 29 дней назад

      @@tensor5113 this is the most retarded thing I have read in a while.

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

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

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

      For anybody wondering: That wasn‘t a joke

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

      @@Zwiebelgian what were you compiling though ?

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

      @@RishitSrivastava007 a personal project with 600 dependencies

    • @Zwiebelgian
      @Zwiebelgian 27 дней назад +19

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

    • @khhnator
      @khhnator 17 дней назад +11

      @@Zwiebelgian dear god

  • @JoyousUnicorn
    @JoyousUnicorn Месяц назад +1283

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

    • @Alpha-vb3to
      @Alpha-vb3to Месяц назад +111

      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 27 дней назад +10

      i have, lol

    • @Internetzspacezshipz
      @Internetzspacezshipz 25 дней назад +76

      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 24 дня назад +33

      @@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 24 дня назад +5

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

  • @KuroHebi
    @KuroHebi 16 дней назад +183

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

    • @klimmesil9585
      @klimmesil9585 14 дней назад +23

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

    • @kellik7931
      @kellik7931 13 дней назад +40

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

    • @__christopher__
      @__christopher__ 12 дней назад +21

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

    • @robertobokarev439
      @robertobokarev439 11 дней назад +7

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

    • @qbit1103
      @qbit1103 11 дней назад +7

      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.

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

    Python is like Arabs changing tires while driving

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

      E o carro capotando

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

      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 Месяц назад +40

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

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

      ​@@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 29 дней назад +3

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

  • @Wojtek1250XD
    @Wojtek1250XD 9 дней назад +28

    *Assembler completely forgets it even needs pitstops due to how short they are*

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

      Assembler is actually not "fast compiling", it is not compiling at all, it is "translating" = direct reflection of ASM in text form to ASM in binary and that is much faster than reading the file from SSD.

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

      ​@@Bukuzoid🥸

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

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

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

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

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

      ​​@@michawhite7613Laughs in Scala

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

      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 Месяц назад +2

      100% agree

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

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

  • @arslankhan6227
    @arslankhan6227 13 дней назад +9

    Everybody gangsta until assembly language pulls up

  • @user-wn5gk5gq2y
    @user-wn5gk5gq2y Месяц назад +135

    C is already in space

    • @jongeduard
      @jongeduard 21 день назад +29

      If it doesn't explode before reaching space.

    • @SteelBallBell
      @SteelBallBell 14 дней назад +7

      Houston, we have a problem💀

    • @uis246
      @uis246 14 дней назад +6

      C means speed of light.

    • @SuperPeposh
      @SuperPeposh 13 дней назад +1

      In void

    • @RTBOSS
      @RTBOSS 12 дней назад

      No low-level language in race

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

    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 Месяц назад +10

      LMAO best description!!

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

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

    • @qixiangsun6036
      @qixiangsun6036 12 дней назад

      so like the ferrari pit stops

  • @debasishraychawdhuri
    @debasishraychawdhuri 14 дней назад +9

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

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

    Rust: debugging today for next year race lol

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

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

  • @kozas0
    @kozas0 22 дня назад +33

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

    • @__christopher__
      @__christopher__ 10 дней назад

      Helmets are for quiche eaters.

    • @Toleich
      @Toleich 5 дней назад +5

      Where we're going, we don't need memory safety.

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

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

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

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

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

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

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

      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 месяцев назад +67

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

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

    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 29 дней назад +3

      python is not compiled and doesn't need compilation

    • @AE_AnarchistAlexcianEmpire69Bi
      @AE_AnarchistAlexcianEmpire69Bi 29 дней назад +3

      @@ZihadJoypython is both interpreted and compiled

    • @Smurdy1
      @Smurdy1 29 дней назад +5

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

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

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

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

      @@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.

  • @chbrules
    @chbrules 12 дней назад +3

    C compiles faster than Go 🔥🔥🔥

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

    C:
    Complied while you blinked.

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

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

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

    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 месяца назад +2

      @@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 2 месяца назад

      ​@@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.

  • @jrgennodeland8323
    @jrgennodeland8323 8 дней назад +1

    THE VIDEO BUFFERED AT THE FIRST PIT STOP IM DYING

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

    The Rust compiler sends the car back to R&D.

  • @redthunder6183
    @redthunder6183 Месяц назад +11

    thats a really good analogy of compilation times lol

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

    Good things take time to be built 👍🏻

  • @AdnanKhan-ee4xt
    @AdnanKhan-ee4xt 3 дня назад +1

    Well, the same says it all "RUST"

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

    With rust you'll never have to change the tyres ever. 😂

  • @muhammadzulhaidir3667
    @muhammadzulhaidir3667 7 месяцев назад +40

    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 Месяц назад +4

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

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

    Missed C man

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

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

  • @atikattar1104
    @atikattar1104 13 дней назад +1

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

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

    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 🤣

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

      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.

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

      still, this short vid made me chuckle.

    • @reggievelvet
      @reggievelvet Месяц назад +6

      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 17 дней назад +1

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

    • @idontknowanygoodnames1498
      @idontknowanygoodnames1498 12 дней назад +2

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

  • @user-yg5gv1vv4s
    @user-yg5gv1vv4s Месяц назад +34

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

    • @PR0MINENCE
      @PR0MINENCE Месяц назад +16

      Python is not a compiled language…

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

      Bro, what python is doing here?

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

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

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

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

    • @notaidan2
      @notaidan2 Месяц назад +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.

  • @henrystudios
    @henrystudios 12 дней назад +1

    meanwhile, lua driving while pitting😅

  • @averitiamiku
    @averitiamiku 10 дней назад

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

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

    C++: Segmentation fault, core dumped

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

      Skill issue

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

      segsfault 🤫

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

      Git gud bruh

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

      Skill issue

    • @notjebkerman6207
      @notjebkerman6207 20 дней назад +3

      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

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

    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 месяца назад +8

      ​@@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

  • @Pruthviraj_Patil
    @Pruthviraj_Patil 6 дней назад +1

    python laughing in corner😅😅

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

    c just takes a quick glance and sends it off before it can make a full stop

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

    You forgot Python, change tires by hand

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

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

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

      "compilation speed"

    • @GDT-Studio
      @GDT-Studio 3 месяца назад +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 месяца назад +1

      -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)

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

    Just Zig it.

  • @harshad.sharma
    @harshad.sharma 11 дней назад

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

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

    Rust compiler making sure that everything is ok

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

    Butthurt Rusticians in 3, 2, 1… 😂

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

      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 Месяц назад +13

      @@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.

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

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

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

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

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

      @@youraccountissuspended multithreading

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

      @@twelvetican 💀

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

      ​@@twelvetican😮

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

      @@youraccountissuspended the fastest one did

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

    You guys go change your tires, while I'm here ZIG'ing on a Jet plane

  • @imperial2069
    @imperial2069 13 дней назад

    As a rust compiler , can confirm 😂

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

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

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

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

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

      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 16 дней назад +3

      Java compiles extremely fast compared to C++ or Rust

    • @horsethi3f
      @horsethi3f 9 дней назад

      Compiling and running java apps is pretty much instantaneous.

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

    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 2 месяца назад +1

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

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

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

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

    Rly thought that was gonna be Ferrari but this is even better

  • @idontknowanygoodnames1498
    @idontknowanygoodnames1498 10 дней назад +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)

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

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

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

      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 20 дней назад +2

      "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. 19 дней назад

      @@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.

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

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

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

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

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

    Assembly : "Hold my beer..."

  • @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_ 16 дней назад

      ​@@nubuntoit does take THAT long

  • @larakayaalp1676
    @larakayaalp1676 Месяц назад +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 Месяц назад +1

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

    • @larakayaalp1676
      @larakayaalp1676 Месяц назад +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 29 дней назад

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

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

      @@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 15 дней назад

      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.

  • @lifeofkoia
    @lifeofkoia 12 дней назад

    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

  • @stojicgaming893
    @stojicgaming893 10 дней назад

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

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

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

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

      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 11 дней назад +1

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

    • @oldcowbb
      @oldcowbb 10 дней назад +1

      CS students think shitting on python is cool

    • @ZihadJoy
      @ZihadJoy 10 дней назад

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

    • @ZihadJoy
      @ZihadJoy 10 дней назад

      @@wontcreep but bytecode is not machine code

  • @imrevadasz1086
    @imrevadasz1086 13 дней назад +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.

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

    I spoke about rust and golang for the first time 3h ago
    And then I see this short, someone's listening 💀

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

    cout

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

    Java compiler rebuilds the entire car and makes it worse lol

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

    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.

  • @sportbikeguy9875
    @sportbikeguy9875 12 дней назад

    Rust might be slow to put/compile, but it executes fast during the race

  • @funkdefied1
    @funkdefied1 12 дней назад

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

  • @AosZ
    @AosZ Месяц назад +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 Месяц назад +5

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

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

      @@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 Месяц назад +3

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

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

      @@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 Месяц назад

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

  • @tophy9865
    @tophy9865 13 дней назад +7

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

    • @idontknowanygoodnames1498
      @idontknowanygoodnames1498 12 дней назад +3

      No, rust is notoriously slow

    • @tophy9865
      @tophy9865 12 дней назад

      @@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 11 дней назад

      @@idontknowanygoodnames1498 and so is c++?

    • @gamekiller0123
      @gamekiller0123 10 дней назад

      ​@@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 9 дней назад

      ​@@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.

  • @briansoftware849
    @briansoftware849 6 часов назад

    Java: wheel wrench breaks

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

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

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

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

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

    how does it feel
    to be objectively wrong?

    • @xObscureDarkness
      @xObscureDarkness 4 месяца назад +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 Месяц назад +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 12 дней назад

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

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

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

  • @Suneth5
    @Suneth5 9 дней назад

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

  • @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

  • @sonicjoy2002
    @sonicjoy2002 2 месяца назад +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 23 дня назад

      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.

  • @pizzainc.1465
    @pizzainc.1465 11 часов назад

    C you need to raise the pit stop crew from birth

  • @T1Oracle
    @T1Oracle 12 дней назад

    Okay, but the Rust car is actually a plane.

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

    who cares compilation speed ;)

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

      Have you try to compile Android?

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

      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 Месяц назад

      @@macicoinc9363are u rewriting windows in rust or something

  • @user-tb5re6zs2r
    @user-tb5re6zs2r 2 месяца назад +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 Месяц назад +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 Месяц назад

      @@_garicas thanks for letting us know how you feel

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

      @@user-tb5re6zs2r you're welcome

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

    My man wishes c++ compiled this fast

  • @redgeoblaze3752
    @redgeoblaze3752 13 дней назад

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

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

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

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

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

  • @nastykhan7746
    @nastykhan7746 9 дней назад

    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:

  • @KX36
    @KX36 12 дней назад

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

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

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

  • @FlynnFromTaiga
    @FlynnFromTaiga 3 месяца назад +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.

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

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

  • @wier2920
    @wier2920 13 дней назад

    Any of this is more fun than the programming itself 💀

  • @derblaue
    @derblaue 13 дней назад

    Julia just randomly stops on track to switch a single tire

  • @ranggatohjaya
    @ranggatohjaya 13 дней назад

    "In Rust we tRust'😊

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

    Python doesn't have tires. It's being towed by the other languages.

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

    Now let's talk about compilation difficulty

  • @user-ei6rd7ei7x
    @user-ei6rd7ei7x 2 дня назад

    C++: segmentation fault (the car explodes)

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

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

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

    A templated C++ program would probably the rust program.

  • @frankluvsu21
    @frankluvsu21 9 дней назад

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