I'm watching this while my rust program is compiling because it is taking too long
@Zwiebelgian
4 ай бұрын
For anybody wondering: That wasn‘t a joke
@RishitSrivastava007
4 ай бұрын
@@Zwiebelgian what were you compiling though ?
@Zwiebelgian
4 ай бұрын
@@RishitSrivastava007 a personal project with 600 dependencies
@Zwiebelgian
4 ай бұрын
@@RishitSrivastava007 A personal project with a total of 600 crates
@khhnator
4 ай бұрын
@@Zwiebelgian dear god
@aerbon
5 ай бұрын
the rust compiler is rebuilding the entire car
@thekwoka4707
5 ай бұрын
And making sure the car actually works.
@meninoesperto2773
5 ай бұрын
Rust is first reinventing the wheel and then rebuilding the entire car
@akj3344
4 ай бұрын
@@meninoesperto2773rush reinvents the wheel. Then reinvents the second wheel. Then third and fourth. Seperately.
@kira.herself
4 ай бұрын
@br0ken_107 skill issue
@idedary
4 ай бұрын
@br0ken_107 Skill issue
@gitstautusgitstutasgitstatus
Жыл бұрын
The C++ car catches fire after driving off. The Golang car weighs 5 tons.
@ArtemCYOU
Жыл бұрын
🤣🤣🤣
@uoweme5grand
11 ай бұрын
Golang car also has to stop every once every km to take a dump.
@anthoantho1989
10 ай бұрын
@@uoweme5grand Same as me.
@wesleyrm
10 ай бұрын
@@uoweme5grandLMAO Garbage Collector
@pynimp
8 ай бұрын
😂😂😂
@emanuel.barreiros
8 ай бұрын
rust compiler is an airplane checklist
@FazedSoul
5 ай бұрын
Good observation
@meninoesperto2773
5 ай бұрын
Also generating unnecessary slower code 😕
@tensor5113
4 ай бұрын
@@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
4 ай бұрын
@@tensor5113 this is the most retarded thing I have read in a while.
@Redditard
4 ай бұрын
Not really, that's now how u defend your argument @@tensor5113
@MyCringeIsHere
6 ай бұрын
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 EDIT 3: JavaScript car has a plastic V8 engine made by Google, but some of them are modded to use Mozilla's engine
@dravenhoule646
6 ай бұрын
The car also drives at 2 kilometers per hour
@Cargren18
6 ай бұрын
Nice one
@benjamin4736
6 ай бұрын
python isn’t compiled
@paperwhite3853
6 ай бұрын
@@benjamin4736 Well "aktually", python has a compilation phase, where it basically decides where to look for variables (in global scope or local).
@GDT-Studio
5 ай бұрын
Python isn't compiled, so it doesn't have a compilation time.
@meninoesperto2773
6 ай бұрын
Python is like Arabs changing tires while driving
@KorhalKk
5 ай бұрын
E o carro capotando
@ForeverZer0
5 ай бұрын
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
5 ай бұрын
@@ForeverZer0 You realize that we're comparing compilation time and not running speed right? But then again python is interpreted not compiled.
@ForeverZer0
5 ай бұрын
@@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
4 ай бұрын
bro its not a performance comparison, you know what compilation mean?
@JoyousUnicorn
5 ай бұрын
i’m convinced y’all have never written any c++ past like a homework assignment
@Alpha-vb3to
4 ай бұрын
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
4 ай бұрын
i have, lol
@Internetzspacezshipz
4 ай бұрын
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
4 ай бұрын
@@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
4 ай бұрын
@@JoyousUnicorn i've never used nor heard of templates until you replied to my comment, lol
@KuroHebi
4 ай бұрын
Meanwhile, Assembly is running on indestructible tyres that don't need replacing.
@klimmesil9585
4 ай бұрын
You still have to compile assembly, it's just super quick
@kellik7931
4 ай бұрын
only took 8 years at the factory to make, for a specific customer
@__christopher__
4 ай бұрын
But you need different tyres for each track. All coming with their own type of screws, of course.
@robertobokarev439
4 ай бұрын
Assembly language is like an almost-zero friction tire with every bolt being different
@qbit1103
4 ай бұрын
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.
@debasishraychawdhuri
4 ай бұрын
"I see you play games all day". "Mom, it's compiling."
@theseabass
2 ай бұрын
"Compiling shaders..." under your breath
@FurgiePower
2 ай бұрын
Lmao 😂
@Siissioe123
5 ай бұрын
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
5 ай бұрын
LMAO best description!!
@michaelbuckers
4 ай бұрын
Inside an airplane. God forbid Python ever has to drive on its own.
@qixiangsun6036
4 ай бұрын
so like the ferrari pit stops
@resistan-y1h
Ай бұрын
Python is a Toyota Prius that does not require pit stops.
@aboutsportsequipment9231
21 күн бұрын
😂
@SomeoneIKnow651
7 ай бұрын
This comment section needs to learn the difference between compilation speed and running speed. Like jeez...
@michawhite7613
5 ай бұрын
When you only work in interpreted languages, you never get to learn the difference.
@xwtek3505
5 ай бұрын
@@michawhite7613Laughs in Scala
@MyCringeIsHere
5 ай бұрын
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
4 ай бұрын
100% agree
@ІванБоровик-э8л
4 ай бұрын
@@MyCringeIsHere I think it's just some old red-eyeers can't learn anything new
@UdebuchiKingsley
5 ай бұрын
C is already in space
@jongeduard
4 ай бұрын
If it doesn't explode before reaching space.
@SteelBB9
4 ай бұрын
Houston, we have a problem💀
@uis246
4 ай бұрын
C means speed of light.
@SuperPeposh
4 ай бұрын
In void
@RTBOSS
4 ай бұрын
No low-level language in race
@Wojtek1250XD
4 ай бұрын
*Assembler completely forgets it even needs pitstops due to how short they are*
@Bukuzoid
4 ай бұрын
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
3 ай бұрын
@@Bukuzoid🥸
@reizinhodojogo3956
2 ай бұрын
isn't assembly just readable binary? thats probaly why its fast
@99temporal
18 күн бұрын
@@Bukuzoid translating readable assembly into machine code is still compiling... It just skips most of the work normal compilers have to do, but it's still compiling
@Bukuzoid
18 күн бұрын
@@99temporalYep, sure, and this type of "simplified compilation" is called "translation" by programmers :)
@ErrUndefinedVariable
8 ай бұрын
Rust: debugging today for next year race lol
@julyort6762
5 ай бұрын
In rust you don't debug, you just wait for compilation and it works
@arslankhan6227
4 ай бұрын
Everybody gangsta until assembly language pulls up
@Glomly
Жыл бұрын
Tell me you never coded C++/Rust without telling me you never coded C++/Rust
@ArtemCYOU
Жыл бұрын
я компилировал проекты на go, c и rust так что да есть с чем сравнить)
@willemschipper7736
Жыл бұрын
Why? It’s true that Rust doesn’t have a very fast compiler
@randomperson5454
Жыл бұрын
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
Жыл бұрын
@@randomperson5454source?
@thesergey
Жыл бұрын
it's true though. however compile time != code quality
@uis246
4 ай бұрын
C: Complied while you blinked.
@JunoDragon_VR
2 ай бұрын
C: sent cylinder 3 to space 2 seconds after pitstop
@jrgennodeland8323
4 ай бұрын
THE VIDEO BUFFERED AT THE FIRST PIT STOP IM DYING
@Smurdy1
5 ай бұрын
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
4 ай бұрын
python is not compiled and doesn't need compilation
@AE_AnarchistAlexcianEmpire69Bi
4 ай бұрын
@@ZihadJoypython is both interpreted and compiled
@Smurdy1
4 ай бұрын
I wasn't talking about compile time, I was talking about runtime
@ZihadJoy
4 ай бұрын
@@Smurdy1 the video is not talking about run time.
@Smurdy1
4 ай бұрын
@@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.
@AyanUtech
17 күн бұрын
I literally thought I was seeing an ant standing on its legs, but when the car came, I realised it was a racing track
@kozas0
4 ай бұрын
Notice how the C++ driver is not even wearing a helmet with that dubious sports car...
@__christopher__
4 ай бұрын
Helmets are for quiche eaters.
@Toleich
4 ай бұрын
Where we're going, we don't need memory safety.
@uis246
2 ай бұрын
@@Toleichtechnically OS(more technically CPU, and even more technically MMU part of it) provides memory safety.
@ItsCOMMANDer_
Ай бұрын
@@uis246nah, i have that shit diabled
@uis246
Ай бұрын
@@ItsCOMMANDer_ are you using DOS?
@nickm2890
2 ай бұрын
Python: *flies through the pit stop at full speed, hitting several people and catching fire.*
@jonathan2847
3 ай бұрын
The Rust compiler sends the car back to R&D.
@thelavishcoder2553
4 ай бұрын
Python doesn't have tires. It's being towed by the other languages.
@viiishaaaal
4 ай бұрын
cout
@Ghettofinger
3 ай бұрын
/usr/bin/ld: /tmp/ccr5kF7t.o: in function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status
@kushagrapiano9036
19 күн бұрын
std ::
@AymenYT
19 күн бұрын
Bruh who use the namespace std @@kushagrapiano9036
@muhammadzulhaidir3667
11 ай бұрын
Maybe what you mean is during the first compilation, for the first compilation Rust is very slow, but not for subsequent compilations
@nahemahk
6 ай бұрын
That's because is using cache (already compiled code)
@SomeDudeInBaltimore
5 ай бұрын
Most C/C++ compilers are also like this unless you change a header file somewhere that a lot of files are using.
@resistan-y1h
Ай бұрын
No, pure C and Zig compile and run fastest.
@idontknowanygoodnames1498
4 ай бұрын
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) Edit: To all those replying with c++ already having incremental builds, sure, implementation files do, but header files don't, and that is what modules replace. So modules essentially allow for header file incremental builds.
@yash1152
2 ай бұрын
were u able to get hands-on on a c++ compiler which supports the modules? if yes, when? > _"But c++20 brought modules, which allows for incremental builds and speeds up compile times. (and is overall much much better than __#include__)"_
@idontknowanygoodnames1498
2 ай бұрын
@@yash1152 All 3 major compilers have some support for modules. MSVC has full support, and is complete, i'd say clang is following, which has good enough implementation to make projects with it. I've seen a few using clang and modules. GCC although supports it, probably is the worst out of the 3. MSVC has had full support for modules for a while now.
@uis246
2 ай бұрын
Incremental builds were in all major build systems. Even mamonth of GNU Make always had incremental builds.
@balijosu
Ай бұрын
Any reasonable C/C++ build system complies incrementally. It's been like this for decades upon decades.
@crankshaft30
4 ай бұрын
C++ is fast. Way faster than i will ever need. Its kinda miracle
@99temporal
18 күн бұрын
I don't know what kind of C++ projects you're compiling... Because large ones take many hours to compile
@frizkedblizz
14 күн бұрын
@@99temporal gta 5 dev_ng takes a few minutes for the entire solution to compile
@bharatnaik1226
6 ай бұрын
Python: changes tyre while moving
@user-uf4lf2bp8t
6 ай бұрын
@Reloadman99yet compile time is very fast, which is what this video is about.
@Cargren18
6 ай бұрын
@@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
6 ай бұрын
@@user-uf4lf2bp8t... Python isn't compiled
@user-uf4lf2bp8t
6 ай бұрын
@@Cargren18 obviously, but the video is about compile time. Bytecode generation is fast.
@GDT-Studio
5 ай бұрын
@@user-uf4lf2bp8t Bytecode generation is not compilation.
@maxwell6881
28 күн бұрын
Meanwhile python's pit crew are just snails
@indibarsarkar3936
7 ай бұрын
Good things take time to be built 👍🏻
@petersmythe6462
3 ай бұрын
Python: walks past the people at the pitstop, shaking a magical staff at them and having no clue why anyone would ever need a car.
@resistan-y1h
Ай бұрын
The Python is a Toyota Prius that does not require pit stops.
@skinlab4239
26 күн бұрын
@@resistan-y1h🙄
@moraletherapy
11 ай бұрын
as someone who worked with C++ and now learns Rust, it's so true
@Luxalpa
6 ай бұрын
I've had worse compile times in C++ than in Rust, dunno if my experience was wrong.
@Phantom-lr6cs
6 ай бұрын
@@Luxalpa maybe you are too noob for c++ ? XD lolz and btw how big is Hello world program in rust ? 15MB ? or 100MB ?
@theintjengineer
6 ай бұрын
Same here, Moraletherapy.
@dusknone
6 ай бұрын
@@Phantom-lr6cs Bro a hello world program in rust is like 3 lines of code. fn main() { println!("hello world"); }
@PiotrPilinko
5 ай бұрын
@@Luxalpa I've noticed that heavy usage of nested templates is an overkill for compilation time.
@dio6750
10 күн бұрын
Python : Opps! Lemme buy the equipments first sir
@redthunder6183
4 ай бұрын
thats a really good analogy of compilation times lol
@samuelmusa3581
4 ай бұрын
That's why it's called "Rust".
@adwaithrajeev5099
5 ай бұрын
As a Golang Developer, you got the wrong F1 team pitstop.
@МаксимАндреев-щ7б
3 ай бұрын
C++: segmentation fault (the car explodes)
@martingeorgiev999
8 ай бұрын
Impressive. Very nice. Let's see Rust's segmentation faults.
@nubunto
7 ай бұрын
Oops, I have solved race conditions and memory safety at compile time again. DAMN!
@user-uf4lf2bp8t
6 ай бұрын
@@nubuntoit doesn't prevent general race conditions, just data races.
@nubunto
6 ай бұрын
@@user-uf4lf2bp8t true, you can still deadlock things if not careful
@rodolphov.santoro8829
5 ай бұрын
@@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
5 ай бұрын
would love to see an example
@AymenYT
12 күн бұрын
Me : compile car Rust : define car.
@alguem24
5 ай бұрын
C++: Segmentation fault, core dumped
@meninoesperto2773
5 ай бұрын
Skill issue
@itsfadixx
5 ай бұрын
segsfault 🤫
@Ginger_Hrn
5 ай бұрын
Git gud bruh
@ResZCreator
5 ай бұрын
Skill issue
@notjebkerman6207
4 ай бұрын
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
@FlynnFromTaiga
7 ай бұрын
checking both Go and Rust at the same time now. Rust really takes it time.
@user-uf4lf2bp8t
6 ай бұрын
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.
@oulaoula349
Жыл бұрын
but rust has check feature that anticipates compilation errors and when compilation is done...completely safe
@youraccountissuspended
8 ай бұрын
rust: turtle c++, golang: rabbit who finish first in the story?
@twelvetican
8 ай бұрын
@@youraccountissuspended multithreading
@noturgokuxd
8 ай бұрын
@@twelvetican 💀
@dantheplanner
8 ай бұрын
@@twelvetican😮
@twelvetican
8 ай бұрын
@@youraccountissuspended the fastest one did
@Dragonballartist7343
5 күн бұрын
Meanwhile python: “you guys get rest”
@Pratyushchauhan-p7m
5 ай бұрын
nope Python is still figuring out whether it has to put Wheels or Engine it somehow got its engine out
@PR0MINENCE
4 ай бұрын
Python is not a compiled language…
@animainmilol
4 ай бұрын
Bro, what python is doing here?
@notaidan2
4 ай бұрын
@@PR0MINENCEit gets compiled to byte code before going through an interpreter
@rule6elur
4 ай бұрын
@@notaidan2 byte code it's not machine code, it's two different things.
@notaidan2
4 ай бұрын
@@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.
@nastykhan7746
4 ай бұрын
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:
@abhinavsingh1972
4 ай бұрын
Missed C man
@lifeofkoia
4 ай бұрын
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
@Gentle_Ego
7 ай бұрын
You forgot Python, change tires by hand
@skysaville
7 ай бұрын
Um… I think you’re on the wrong race track. The scripting languages are over there… 🔥🔥🔥
@dawid0115
7 ай бұрын
"compilation speed"
@GDT-Studio
7 ай бұрын
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
6 ай бұрын
-while its running
@bndlett8752
5 ай бұрын
@@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)
@frankluvsu21
4 ай бұрын
Don't forget the python interpreter, it takes the car and gives you a bike instead.
@resistan-y1h
Ай бұрын
JavaScript or Lua JIT is the motorcycle that will overtake them.
@ZihadJoy
4 ай бұрын
those who are mentioning python, do you know what compilation means?
@ciso
4 ай бұрын
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
4 ай бұрын
python is JIT compilation, you just don't see it like that
@oldcowbb
4 ай бұрын
CS students think shitting on python is cool
@ZihadJoy
4 ай бұрын
@@ciso well we can compare bytecode generation with compilation, but even so its not the same
@ZihadJoy
4 ай бұрын
@@wontcreep but bytecode is not machine code
@threefour1598
Ай бұрын
Python: hop in boys, we'll be moving for life non-stop
@tech_rustlings
8 ай бұрын
C++ car driver does not feel anything even though his tyre got punctured a long ago.. 😅😅😅
@resistan-y1h
Ай бұрын
However, it is only in areas where security is critical, such as server programs, that it causes accidents.
@KX36
4 ай бұрын
if compilation speed was everything, people would just write everything in javascript. oh wait...
@resistan-y1h
Ай бұрын
In fact, TypeScript is an easy language to write for its fast execution speed.
@character640p
8 ай бұрын
Just Zig it.
@artoriapd
5 ай бұрын
🗿☕👍
@resistan-y1h
Ай бұрын
Zig is a great language substitute for C.
@iamvariable01
4 ай бұрын
Meanwhile someone is talking about HTML 😂
@Volt-Eye.
7 ай бұрын
RUST compiler disciplines you to write the bug free code in one way else....
@PiotrPilinko
5 ай бұрын
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
4 ай бұрын
"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.
4 ай бұрын
@@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.
@resistan-y1h
Ай бұрын
Unless you are a genius who knows how to use all the features of C++, I recommend using Zig. It does not require new skills like Rust.
@Shine-gh5en
4 ай бұрын
assembly is the speed of light
@unfa00
4 ай бұрын
Yeah, because most of the compilation you do yourself.
@chri-k
4 ай бұрын
Actually, not really. The process of writing assembly technically _is_ compilation, and that's not very fast.
@TobiasSample
5 ай бұрын
Java was so slow it didn’t compile in time for this video
@theshermantanker7043
5 ай бұрын
javac compiles pretty fast, if you're trying to make fun of Java for having a slow runtime you've completely failed
@emptycode1782
5 ай бұрын
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
4 ай бұрын
Java compiles extremely fast compared to C++ or Rust
@horsethi3f
4 ай бұрын
Compiling and running java apps is pretty much instantaneous.
@HarshMishra-ok3yp
Ай бұрын
It means u know nothing about java
@min3craftpolska514
2 ай бұрын
The Rust car requires you build every part from source.
@imrevadasz1086
4 ай бұрын
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.
@sakasalsakasal2748
2 ай бұрын
devs out here in they feelings
@pivelix
5 ай бұрын
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
4 ай бұрын
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
4 ай бұрын
still, this short vid made me chuckle.
@reggievelvet
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
4 ай бұрын
Rust has one advantage thou... most of the time you only compile once and it works
@idontknowanygoodnames1498
4 ай бұрын
@khhnator c++ does the same thing. In fact most languages do the same thing.
@neelwankhade9987
4 ай бұрын
When C comes in picture 😂😂 Tire changers be like Not possible 😂😂
@elephant_888
8 ай бұрын
Butthurt Rusticians in 3, 2, 1… 😂
@thegoldenatlas753
7 ай бұрын
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
5 ай бұрын
@@thegoldenatlas753 y'know you're proving their point, right?
@DanFromIran
5 ай бұрын
Crustacians not Rusticians
@godnyx117
5 ай бұрын
@@thegoldenatlas753 You must have felt so cool typing that inaccurate shit. 🤡
@strelokzero1179
5 ай бұрын
@@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.
@stojicgaming893
4 ай бұрын
Rust feels like the GTA 5 loading screen back when it was very unoptinised
@KorhalKk
5 ай бұрын
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.
@killergoldfisch1
Ай бұрын
Meanwhile COBOL is riding a mammoth into the pitstop...
@bibekshah3701
10 ай бұрын
I love rust and this used to be so true a few years back 😂😂
@surajraika7821
8 ай бұрын
still is
@nubunto
7 ай бұрын
@@surajraika7821 not even close baby
@nahemahk
6 ай бұрын
If you use Bevy Engine (Rust)... oh my god, my laptop was burning like hell. libGDX (Java) in comparison is very fast.
@Luxalpa
6 ай бұрын
@@surajraika7821 my game engine compiles in 3 seconds.
@ItsCOMMANDer_
4 ай бұрын
@@nubuntoit does take THAT long
@fredsmith1970
4 ай бұрын
Assembly : "Hold my beer..."
@tophy9865
4 ай бұрын
Where did people get this idea that Rust compilation is so much slower than C++? They are on par with eachother.
@idontknowanygoodnames1498
4 ай бұрын
No, rust is notoriously slow
@tophy9865
4 ай бұрын
@@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
4 ай бұрын
@@idontknowanygoodnames1498 and so is c++?
@gamekiller0123
4 ай бұрын
@@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
4 ай бұрын
@@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.
@redgeoblaze3752
4 ай бұрын
I was expecting "Compilation speed: Python" and he just drives right on through the pit stop.
@CptSDX23
5 ай бұрын
Java compiler rebuilds the entire car and makes it worse lol
@Thexiledemon
4 ай бұрын
Golang: _guido, its time_
@larakayaalp1676
4 ай бұрын
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
4 ай бұрын
it's for the low end pc, a good programmer is a one who thinks worst case
@larakayaalp1676
4 ай бұрын
@@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
4 ай бұрын
you can use the same CPU for 4 time less the price
@letscode8320
4 ай бұрын
@@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
@Brad_Script
4 ай бұрын
@@letscode8320 All the computers I had worked with Linux, I have no idea how your computer can be incompatible with linux. It must be so recent that they don't have drivers for them ?
@boy_deploy
4 ай бұрын
You guys go change your tires, while I'm here ZIG'ing on a Jet plane
@resistan-y1h
Ай бұрын
That is correct.
@AdityaShankar-gl1ty
8 ай бұрын
Meanwhile Java & Python ?
@noturgokuxd
8 ай бұрын
python is not a compiler based language brother
@guilhermewxs1840
6 ай бұрын
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
6 ай бұрын
Javac compilation is very fast, Python is interpreted (no need for compiling)
@AdityaShankar-gl1ty
6 ай бұрын
@@noturgokuxd ok brother
@sayven
5 ай бұрын
Fr JIT are basically the guys hanging onto the car while it's driving and somehow managing to still change the tire
@derblaue
4 ай бұрын
Julia just randomly stops on track to switch a single tire
@beautiful_ground
10 ай бұрын
how does it feel to be objectively wrong?
@xObscureDarkness
7 ай бұрын
He’s write though I write all 3 for work
@rico_1617
7 ай бұрын
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
7 ай бұрын
@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
4 ай бұрын
@@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
4 ай бұрын
@@rico_1617 Rust is not faster than C++
@friedec3622
4 ай бұрын
Python: pitstop while the car is moving. Also python: moving at the snail pace.
@sonicjoy2002
6 ай бұрын
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
5 ай бұрын
Yeah, and also take into consideration how much time is spent fighting with BC/static analysis.
@SomeDudeInBaltimore
5 ай бұрын
First I'd have to learn it. But at 42 tears old I don't have three decades to spare.
@rabbitdrink
5 ай бұрын
found the rust dev
@ovi1326
4 ай бұрын
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.
@imperial2069
4 ай бұрын
As a rust compiler , can confirm 😂
@AosZ
5 ай бұрын
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
4 ай бұрын
It's not that deep. This is meant to be entertaining, not informative or comprehensive.
@AosZ
4 ай бұрын
@@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
4 ай бұрын
It’s very valuable. When a project reaches sufficient mass the compile time cripples development
@AosZ
4 ай бұрын
@@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
4 ай бұрын
it's a meme bro, why are you so hurt like that?
@BlitChessOfficial
2 ай бұрын
C: nah, I wont even stop for pitstop
@rtdietrich
9 ай бұрын
However, compared to "C++", "Rust" is not as quick to shoot itself in the foot
@master9391
4 ай бұрын
Rust compiler making sure that everything is ok
@alexfu2422
9 ай бұрын
I am Rust developer...see you in a few days.
@ArtemCYOU
9 ай бұрын
😅🤣
@ErrUndefinedVariable
8 ай бұрын
Hahahaha fixing car for next year race
@cosmopolitanape6969
4 ай бұрын
I knew it's gonna be rust in the end lmao
@larakayaalp1676
4 ай бұрын
i disabled incremental compilation so that i can still bill for 10 min compile times
@iamhugry
4 ай бұрын
Python: randomly reverses mid pitstop and drives over one guy because the driver mistook a call sign
@ChloeTurner-y1u
6 ай бұрын
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
4 ай бұрын
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
@ChloeTurner-y1u
4 ай бұрын
@@_garicas thanks for letting us know how you feel
@_garicas
4 ай бұрын
@@ChloeTurner-y1u you're welcome
@vanwaardhuizen
5 ай бұрын
Nothing a threadripper can't solve!
@EdwardLeeDev
4 ай бұрын
who cares compilation speed ;)
@macicoinc9363
4 ай бұрын
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
4 ай бұрын
@@macicoinc9363are u rewriting windows in rust or something
@JP-ic5we
22 күн бұрын
The things I’ll put up with for memory safety
@YaNeK92
4 ай бұрын
Let's give a round of applause to all of the programmers who have to deal with these scenarios 😆🤙🏼
@funkdefied1
4 ай бұрын
True. Next, show the C++ car driving straight into a wall.
@wier2920
4 ай бұрын
Any of this is more fun than the programming itself 💀
@jenpsakiscousin4589
7 күн бұрын
If you slow the video down to 1/4 speed you see turbo assembler in the first few milliseconds
Пікірлер: 1,2 М.