Тёмный

programming language, speed compilation  

Artem CYOU
Подписаться 957
Просмотров 319 тыс.
50% 1

Опубликовано:

 

15 авг 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 510   
@susamogus11111
@susamogus11111 2 месяца назад
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 Месяц назад
The car also drives at 2 kilometers per hour
@Cargren18
@Cargren18 Месяц назад
Nice one
@benjamin4736
@benjamin4736 Месяц назад
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 Месяц назад
Python isn't compiled, so it doesn't have a compilation time.
@gitstautusgitstutasgitstatus
@gitstautusgitstutasgitstatus 7 месяцев назад
The C++ car catches fire after driving off. The Golang car weighs 5 tons.
@ArtemCYOU
@ArtemCYOU 7 месяцев назад
🤣🤣🤣
@uoweme5grand
@uoweme5grand 6 месяцев назад
Golang car also has to stop every once every km to take a dump.
@anthoantho1989
@anthoantho1989 6 месяцев назад
@@uoweme5grand Same as me.
@wesleyrm
@wesleyrm 6 месяцев назад
​@@uoweme5grandLMAO Garbage Collector
@pynimp
@pynimp 3 месяца назад
😂😂😂
@JoyousUnicorn
@JoyousUnicorn 10 дней назад
i’m convinced y’all have never written any c++ past like a homework assignment
@Alpha-vb3to
@Alpha-vb3to 6 дней назад
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 3 дня назад
i have, lol
@Internetzspacezshipz
@Internetzspacezshipz День назад
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 2 часа назад
@@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 2 часа назад
@@JoyousUnicorn i've never used nor heard of templates until you replied to my comment, lol
@aerbon
@aerbon 23 дня назад
the rust compiler is rebuilding the entire car
@thekwoka4707
@thekwoka4707 19 дней назад
And making sure the car actually works.
@meninoesperto2773
@meninoesperto2773 18 дней назад
Rust is first reinventing the wheel and then rebuilding the entire car
@br0ken_107
@br0ken_107 9 дней назад
@@thekwoka4707 and still it never does even after rebuilding it a thousand times.
@akj3344
@akj3344 5 дней назад
​@@meninoesperto2773rush reinvents the wheel. Then reinvents the second wheel. Then third and fourth. Seperately.
@emanuel.barreiros
@emanuel.barreiros 3 месяца назад
rust compiler is an airplane checklist
@FazedSoul
@FazedSoul 20 дней назад
Good observation
@meninoesperto2773
@meninoesperto2773 18 дней назад
Also generating unnecessary slower code 😕
@tensor5113
@tensor5113 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 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 8 дней назад
@@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
@SomeoneIKnow651
@SomeoneIKnow651 2 месяца назад
This comment section needs to learn the difference between compilation speed and running speed. Like jeez...
@michawhite7613
@michawhite7613 Месяц назад
When you only work in interpreted languages, you never get to learn the difference.
@xwtek3505
@xwtek3505 19 дней назад
​​@@michawhite7613Laughs in Scala
@susamogus11111
@susamogus11111 18 дней назад
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 9 дней назад
100% agree
@user-hy5cx9iu3l
@user-hy5cx9iu3l День назад
​@@susamogus11111 I think it's just some old red-eyeers can't learn anything new
@user-wn5gk5gq2y
@user-wn5gk5gq2y 11 дней назад
C is already in space
@Zwiebelgian
@Zwiebelgian Месяц назад
I'm watching this while my rust program is compiling because it is taking too long
@Zwiebelgian
@Zwiebelgian 8 дней назад
For anybody wondering: That wasn‘t a joke
@RishitSrivastava007
@RishitSrivastava007 3 дня назад
@@Zwiebelgian what were you compiling though ?
@Zwiebelgian
@Zwiebelgian 3 дня назад
@@RishitSrivastava007 a personal project with 600 dependencies
@Zwiebelgian
@Zwiebelgian 3 дня назад
@@RishitSrivastava007 A personal project with a total of 600 crates
@Glomly
@Glomly 8 месяцев назад
Tell me you never coded C++/Rust without telling me you never coded C++/Rust
@ArtemCYOU
@ArtemCYOU 8 месяцев назад
я компилировал проекты на go, c и rust так что да есть с чем сравнить)
@willemschipper7736
@willemschipper7736 8 месяцев назад
Why? It’s true that Rust doesn’t have a very fast compiler
@randomperson5454
@randomperson5454 8 месяцев назад
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 месяцев назад
it's true though. however compile time != code quality
@ErrUndefinedVariable
@ErrUndefinedVariable 3 месяца назад
Rust: debugging today for next year race lol
@julyort6762
@julyort6762 21 день назад
In rust you don't debug, you just wait for compilation and it works
@Siissioe123
@Siissioe123 Месяц назад
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 24 дня назад
LMAO best description!!
@meninoesperto2773
@meninoesperto2773 Месяц назад
Python is like Arabs changing tires while driving
@KorhalKk
@KorhalKk Месяц назад
E o carro capotando
@ForeverZer0
@ForeverZer0 19 дней назад
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 12 дней назад
@@ForeverZer0 You realize that we're comparing compilation time and not running speed right? But then again python is interpreted not compiled.
@ForeverZer0
@ForeverZer0 12 дней назад
​@@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 5 дней назад
bro its not a performance comparison, you know what compilation mean?
@Smurdy1
@Smurdy1 27 дней назад
python is like the first one but the car doesn't have to stop because its top speed is 1 meter per hour
@ZihadJoy
@ZihadJoy 5 дней назад
python is not compiled and doesn't need compilation
@AE_AnarchistAlexcianEmpire69Bi
@AE_AnarchistAlexcianEmpire69Bi 5 дней назад
@@ZihadJoypython is both interpreted and compiled
@Smurdy1
@Smurdy1 5 дней назад
I wasn't talking about compile time, I was talking about runtime
@ZihadJoy
@ZihadJoy 4 дня назад
@@Smurdy1 the video is not talking about run time.
@Smurdy1
@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.
@eineatombombe
@eineatombombe 7 дней назад
C++ is very slow at compiling. that is why tools like make or cmake exist - they detect what files where changed and actually need recompiling
@user-yg5gv1vv4s
@user-yg5gv1vv4s 9 дней назад
nope Python is still figuring out whether it has to put Wheels or Engine it somehow got its engine out
@PR0MINENCE
@PR0MINENCE 9 дней назад
Python is not a compiled language…
@Animainmilol
@Animainmilol 8 дней назад
Bro, what python is doing here?
@notaidan2
@notaidan2 8 дней назад
@@PR0MINENCEit gets compiled to byte code before going through an interpreter
@rule6elur
@rule6elur 8 дней назад
@@notaidan2 byte code it's not machine code, it's two different things.
@notaidan2
@notaidan2 8 дней назад
@@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.
@pivelix
@pivelix 12 дней назад
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 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.
@michaeldula462
@michaeldula462 8 дней назад
still, this short vid made me chuckle.
@reggievelvet
@reggievelvet 8 дней назад
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
@moraletherapy
@moraletherapy 6 месяцев назад
as someone who worked with C++ and now learns Rust, it's so true
@Luxalpa
@Luxalpa Месяц назад
I've had worse compile times in C++ than in Rust, dunno if my experience was wrong.
@Phantom-lr6cs
@Phantom-lr6cs Месяц назад
@@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 Месяц назад
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 20 дней назад
@@Luxalpa I've noticed that heavy usage of nested templates is an overkill for compilation time.
@martingeorgiev999
@martingeorgiev999 3 месяца назад
Impressive. Very nice. Let's see Rust's segmentation faults.
@nubunto
@nubunto 2 месяца назад
Oops, I have solved race conditions and memory safety at compile time again. DAMN!
@user-uf4lf2bp8t
@user-uf4lf2bp8t Месяц назад
​@@nubuntoit doesn't prevent general race conditions, just data races.
@nubunto
@nubunto Месяц назад
@@user-uf4lf2bp8t true, you can still deadlock things if not careful
@rodolphov.santoro8829
@rodolphov.santoro8829 25 дней назад
@@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 25 дней назад
would love to see an example
@oulaoula349
@oulaoula349 7 месяцев назад
but rust has check feature that anticipates compilation errors and when compilation is done...completely safe
@youraccountissuspended
@youraccountissuspended 4 месяца назад
rust: turtle c++, golang: rabbit who finish first in the story?
@twelvetican
@twelvetican 4 месяца назад
@@youraccountissuspended multithreading
@noturgokuxd
@noturgokuxd 3 месяца назад
@@twelvetican 💀
@evilwizardtherapist
@evilwizardtherapist 3 месяца назад
​@@twelvetican😮
@twelvetican
@twelvetican 3 месяца назад
@@youraccountissuspended the fastest one did
@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 7 дней назад
it's for the low end pc, a good programmer is a one who thinks worst case
@larakayaalp1676
@larakayaalp1676 7 дней назад
@@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 5 дней назад
you can use the same CPU for 4 time less the price
@muhammadzulhaidir3667
@muhammadzulhaidir3667 6 месяцев назад
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 месяца назад
That's because is using cache (already compiled code)
@SomeDudeInBaltimore
@SomeDudeInBaltimore Месяц назад
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 3 месяца назад
Butthurt Rusticians in 3, 2, 1… 😂
@thegoldenatlas753
@thegoldenatlas753 2 месяца назад
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 25 дней назад
@@thegoldenatlas753 y'know you're proving their point, right?
@DanFromIran
@DanFromIran 24 дня назад
Crustacians not Rusticians
@godnyx117
@godnyx117 17 дней назад
​@@thegoldenatlas753 You must have felt so cool typing that inaccurate shit. 🤡
@strelokzero1179
@strelokzero1179 17 дней назад
​@@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.
@sfratik8992
@sfratik8992 2 месяца назад
You forgot Python, change tires by hand
@skysaville
@skysaville 2 месяца назад
Um… I think you’re on the wrong race track. The scripting languages are over there… 🔥🔥🔥
@dawid0115
@dawid0115 2 месяца назад
"compilation speed"
@GDT-Studio
@GDT-Studio 2 месяца назад
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 Месяц назад
@@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)
@CptSDX23
@CptSDX23 18 дней назад
Java compiler rebuilds the entire car and makes it worse lol
@alguem24
@alguem24 Месяц назад
C++: Segmentation fault, core dumped
@meninoesperto2773
@meninoesperto2773 18 дней назад
Skill issue
@itsfadixx
@itsfadixx 15 дней назад
segsfault 🤫
@Sparky579
@Sparky579 13 дней назад
Git gud bruh
@ResZCreator
@ResZCreator 11 дней назад
Skill issue
@aintnochange
@aintnochange 7 дней назад
​@@ResZCreator language issue
@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 8 дней назад
It's not that deep. This is meant to be entertaining, not informative or comprehensive.
@AosZ
@AosZ 8 дней назад
@@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 7 дней назад
It’s very valuable. When a project reaches sufficient mass the compile time cripples development
@AosZ
@AosZ 7 дней назад
@@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 6 дней назад
it's a meme bro, why are you so hurt like that?
@larakayaalp1676
@larakayaalp1676 7 дней назад
i disabled incremental compilation so that i can still bill for 10 min compile times
@TobiasSample
@TobiasSample Месяц назад
Java was so slow it didn’t compile in time for this video
@theshermantanker7043
@theshermantanker7043 12 дней назад
javac compiles pretty fast, if you're trying to make fun of Java for having a slow runtime you've completely failed
@emptycode1782
@emptycode1782 11 дней назад
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
@KorhalKk
@KorhalKk Месяц назад
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.
@ashutoshchar940
@ashutoshchar940 19 часов назад
Rust compiler will check your pockets if it can
@abhinavsingh1972
@abhinavsingh1972 7 дней назад
Missed C man
@mitnew3214
@mitnew3214 5 дней назад
Can never compare that to C
@redthunder6183
@redthunder6183 8 дней назад
thats a really good analogy of compilation times lol
@danwellington3571
@danwellington3571 29 дней назад
If you want C's speed without C's kill count...
@slendi9623
@slendi9623 7 дней назад
golang cannot beat TCC in speed
@BatmanFailedSociety
@BatmanFailedSociety 3 месяца назад
Just Zig it.
@artoriapd
@artoriapd 29 дней назад
🗿☕👍
@Volt-Eye.
@Volt-Eye. 2 месяца назад
RUST compiler disciplines you to write the bug free code in one way else....
@PiotrPilinko
@PiotrPilinko 20 дней назад
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.
@realdomdom
@realdomdom 5 дней назад
Don't we all just love compiling Firefox, fellas?
@albert8634
@albert8634 6 дней назад
Compilation time < Run time The comment section is overrun by the interpreted languages gang
@adwaithrajeev5099
@adwaithrajeev5099 19 дней назад
As a Golang Developer, you got the wrong F1 team pitstop.
@muesligangster
@muesligangster 13 дней назад
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...
@indibarsarkar3936
@indibarsarkar3936 2 месяца назад
Good things take time to be built 👍🏻
@danikpro8587
@danikpro8587 3 месяца назад
Этот бро просто слишком сильно любит go. Хорошое продвижение для такого языка
@tiaanbasson9092
@tiaanbasson9092 Месяц назад
If your C++ takes that long, then your project setup is wrong.
@bharatnaik1226
@bharatnaik1226 2 месяца назад
Python: changes tyre while moving
@Reloadman99
@Reloadman99 Месяц назад
Python slow as shit
@user-uf4lf2bp8t
@user-uf4lf2bp8t Месяц назад
​@@Reloadman99yet compile time is very fast, which is what this video is about.
@Cargren18
@Cargren18 Месяц назад
​@@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 Месяц назад
@@user-uf4lf2bp8t... Python isn't compiled
@user-uf4lf2bp8t
@user-uf4lf2bp8t Месяц назад
@@Cargren18 obviously, but the video is about compile time. Bytecode generation is fast.
@ZihadJoy
@ZihadJoy 5 дней назад
those who are mentioning python, do you know what compilation means?
@TON-vz3pe
@TON-vz3pe 7 дней назад
Rust is a Divine blessing my friend
@FlynnFromTaiga
@FlynnFromTaiga 2 месяца назад
checking both Go and Rust at the same time now. Rust really takes it time.
@user-uf4lf2bp8t
@user-uf4lf2bp8t Месяц назад
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.
@kelvinchin5942
@kelvinchin5942 6 дней назад
Why i feel my rust code compile faster than c++ or is because i just started to learn rust🤔
@rabbitdrink
@rabbitdrink 23 дня назад
c: speeding through the pit lane
@unknownk1992
@unknownk1992 2 месяца назад
Have you heard Rust multiple threads parallel compilation. It's available above rust 1.75.0
@tech_rustlings
@tech_rustlings 3 месяца назад
C++ car driver does not feel anything even though his tyre got punctured a long ago.. 😅😅😅
@Vi51576
@Vi51576 2 дня назад
I see you have never had to debug a template recursion depth error
@UntrackedEndorphins
@UntrackedEndorphins 4 дня назад
Yall have never programmed anything other than "hello world" and it shows
@davewilliamson7030
@davewilliamson7030 День назад
You are absolutely correct, apart from being totally wrong!
@senek3563
@senek3563 День назад
Я ждал момент из тачек где гвидо так быстро это сделал что у оппонентов усы отпали
@SianaGearz
@SianaGearz 20 дней назад
I don't know once you add something like Boost::Traits, C++ compilation slows down so much, that Rust gains a massive advantage.
@user-tb5re6zs2r
@user-tb5re6zs2r Месяц назад
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 6 дней назад
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 6 дней назад
@@_garicas thanks for letting us know how you feel
@_garicas
@_garicas 6 дней назад
@@user-tb5re6zs2r you're welcome
@sonicjoy2002
@sonicjoy2002 Месяц назад
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 Месяц назад
Yeah, and also take into consideration how much time is spent fighting with BC/static analysis.
@SomeDudeInBaltimore
@SomeDudeInBaltimore Месяц назад
First I'd have to learn it. But at 42 tears old I don't have three decades to spare.
@rabbitdrink
@rabbitdrink 23 дня назад
found the rust dev
@proximTeaMine
@proximTeaMine 17 дней назад
There is something called program efficiency which comes after compilation the c++ car should blitz thru space and time
@Nemesis-db8fl
@Nemesis-db8fl 2 дня назад
For those who don’t know anything about programming like the user who posted this video this is the kind of youtube crap that u should forget u ever saw it
@lpbigfish3730
@lpbigfish3730 17 дней назад
Rust after the first compile is quite fast, cause idk why it can't have pre-compiled crates already
@beautiful_ground
@beautiful_ground 6 месяцев назад
how does it feel to be objectively wrong?
@xObscureDarkness
@xObscureDarkness 3 месяца назад
He’s write though I write all 3 for work
@rico_1617
@rico_1617 2 месяца назад
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 2 месяца назад
​@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 6 дней назад
@@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.
@FromRootsToRadicals
@FromRootsToRadicals 18 дней назад
Wtf? That indy car was magic on that speed lol
@CocoHutzpah
@CocoHutzpah 2 дня назад
Gnu and Cmake never let me down
@alexz9947
@alexz9947 Месяц назад
Lol gotta show respect to the elders (C++), though parents have sucked for the last 20 years..
@40Ants
@40Ants Месяц назад
Common Lisp is missing in this video. They would have unscrewed the wheels of the car right on the move, added a wing and added a jet engine.
@if7dmitrij191
@if7dmitrij191 29 дней назад
Nice. Now let's see runtime speeds.
@occamsrazor1285
@occamsrazor1285 15 дней назад
Compilation of the speed of the languages binaries execution, or time it takes each language to compile to a binary?
@Sab.1695
@Sab.1695 5 дней назад
Is go Lang faster the cpp?
@RubixCubed3
@RubixCubed3 22 дня назад
Theprimeagen is gona have a heart attack
@dvicompany
@dvicompany 3 месяца назад
😂😂😂🔥💪 это шикарно))
@erosnemesis
@erosnemesis 18 дней назад
Who cares how fast it can compiles. Its all about runtime.
@joh1997dude
@joh1997dude Месяц назад
Remember to use precompiled headers for c++
@benrex7775
@benrex7775 День назад
How would FPGA's compare to Rust?
@vanwaardhuizen
@vanwaardhuizen 20 дней назад
Nothing a threadripper can't solve!
@henkfinkers3931
@henkfinkers3931 14 дней назад
You couldn't pay me enough to use golang.
@logicaestrex2278
@logicaestrex2278 8 дней назад
More for us, thanks buddy 💪
@henkfinkers3931
@henkfinkers3931 8 дней назад
@@logicaestrex2278 You do you. I prefer python for many things and people sometimes judge me for it. Use whatever gets the job done that you need to do. That is enough for 90% of people.
@macicoinc9363
@macicoinc9363 7 дней назад
Lmao
@EntityPlantt
@EntityPlantt 23 дня назад
JS is Lightning McQueen. It doesn't even need compilation
@macicoinc9363
@macicoinc9363 7 дней назад
No, it’s more like a 2003 Honda Accord with only one working piston
@shinobiescarlate6645
@shinobiescarlate6645 20 дней назад
JavaScript: o que é um compilador?
@zbubby1202
@zbubby1202 3 месяца назад
Let me tell you about this wild concept called compile-time optimizations... all it requires is that you kind of know what you are doing!
@thegoldenatlas753
@thegoldenatlas753 2 месяца назад
Yea, Rust comp times can get really fast if you don't make your code base a monolith.
@bibekshah3701
@bibekshah3701 6 месяцев назад
I love rust and this used to be so true a few years back 😂😂
@surajraika7821
@surajraika7821 3 месяца назад
still is
@nubunto
@nubunto 2 месяца назад
@@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 Месяц назад
@@surajraika7821 my game engine compiles in 3 seconds.
@CodesFR
@CodesFR 8 дней назад
this is so trueeeeeee😂
@bagamol_22
@bagamol_22 24 дня назад
Those who tried Verilog at least one time...
@carlosmora6796
@carlosmora6796 20 дней назад
Cute. Now do Delphi.
@heroaax7589
@heroaax7589 14 дней назад
I wanted to make a hate comment about my favourite programming language, but it my head is still compiling 😢
@user-nh2zn8rh8j
@user-nh2zn8rh8j Месяц назад
Rust like me running jetpack compose for front end mobile with 2 gb ram ddr3, i3 gen 1 and i excecute with 6 emulator at the same time 😂😂😂
@fabricehategekimana5350
@fabricehategekimana5350 8 месяцев назад
Accurate XD
@isackmathias9965
@isackmathias9965 2 месяца назад
Python😂?
@JoelSilva-fi4ol
@JoelSilva-fi4ol 3 месяца назад
but rust wins in load performance using web server
@BabaYaga622
@BabaYaga622 29 дней назад
Bruddhha you didnt tell what happens after 😉😎
@AdityaShankar-gl1ty
@AdityaShankar-gl1ty 3 месяца назад
Meanwhile Java & Python ?
@noturgokuxd
@noturgokuxd 3 месяца назад
python is not a compiler based language brother
@guilhermewxs1840
@guilhermewxs1840 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 месяца назад
Javac compilation is very fast, Python is interpreted (no need for compiling)
@AdityaShankar-gl1ty
@AdityaShankar-gl1ty Месяц назад
@@noturgokuxd ok brother
@sayven
@sayven 25 дней назад
Fr JIT are basically the guys hanging onto the car while it's driving and somehow managing to still change the tire
@dagoberttrump9290
@dagoberttrump9290 22 дня назад
kotlin android 💀💀💀💀☠️
@mahapeyuw5946
@mahapeyuw5946 5 месяцев назад
😂😂😂 This looks like hating on rust...
@indidee_
@indidee_ 2 месяца назад
vlang: straight up doesn't need to change tires
@fatlumlatifi2897
@fatlumlatifi2897 14 дней назад
i was thinking that for erlang, new tires just flying into the slot.
@indidee_
@indidee_ 14 дней назад
@@fatlumlatifi2897 i think erlang is just you keep driving when you get a flat and the pit crew chases after with the tyres
@fatlumlatifi2897
@fatlumlatifi2897 14 дней назад
@@indidee_ no pit stop, the crew shoots the tires into the car
@indidee_
@indidee_ 13 дней назад
@@fatlumlatifi2897 crew removes the part of the car with the flat, the rest keeps driving
@nolca
@nolca Месяц назад
maybe we can try zig
@jabuci
@jabuci 14 дней назад
100% accurate
@Forty8-Forty5-Fifty8
@Forty8-Forty5-Fifty8 26 дней назад
Why did the C++ pitstop crew wait for the car to almost hit them instead of just waiting on the other side?
@tongpoo8985
@tongpoo8985 15 дней назад
Rules of that specific type of motorsport. Some have really silly and arbitrary rules.
@rtdietrich
@rtdietrich 4 месяца назад
However, compared to "C++", "Rust" is not as quick to shoot itself in the foot
@DUPELICATEGAMERZ
@DUPELICATEGAMERZ Месяц назад
last one should be python
@DanFromIran
@DanFromIran 25 дней назад
who gives a damn about compilation speed bro. it is all about how fast it is running, how much memory it uses and the size of the executable binary.
@sayven
@sayven 25 дней назад
That's objectively wrong. If I want to debug and each time I want to launch the program I have to wait a minute when it could just be 5 seconds then this is a very real disadvantage of the language.
@DanFromIran
@DanFromIran 24 дня назад
​@@sayven if you are waiting a whole minute for your build to finish you did not set up your build pipeline correctly. Even in compiled languages that run on native hardware (like C, C++) your build times would be reasonable if you used precompiled headers, modularized your code properly, used dynamically linked libraries where appropriate, etc. Aside from that, a project will get built a limited number of times, but will need to execute many many more times on countless units of hardware, so in cases where power usage and/or speed is a concern, compilation times is a minor downside. If you are working on a project where execution speed is not of critical importance (for example, if you are blocked by network I/O or if hardware resources are overkill for the problem you are trying to solve) then you can use high level interpreted languages (like JavaScript or Python) and have a better developer experience. you don't use C/C++ because of developer experience, you use it for resource efficiency and speed. comparing and ranking statically typed compiled languages based on build times is a silly exercise. similar to ranking airline companies for their cuisine. you don't get on a plane to eat, if gastronomy was your concern you would go to a restaurant.
Далее
C++ vs Rust: which is faster?
21:15
Просмотров 371 тыс.
Why do developers hate Rust?
8:20
Просмотров 92 тыс.
New AMG C63 vs BMW M3 vs Audi RS4: DRAG RACE
19:16
Просмотров 795 тыс.
Why I Like Programming in C.
3:16
Просмотров 17 тыс.
Should these 10 new car trends DIE?!
9:38
Просмотров 564 тыс.
Learning C++ by making a Game... in 1 Week?!
10:14
Просмотров 330 тыс.
I spent six months rewriting everything in Rust
15:11
Просмотров 395 тыс.
Go vs Rust: Which To Learn In 2024?
6:27
Просмотров 132 тыс.