[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Are we lucky that C is as fast as it is?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 15
Thread images: 2

File: lesyeuxduchat-0_905.jpg (886KB, 905x1136px) Image search: [Google]
lesyeuxduchat-0_905.jpg
886KB, 905x1136px
Are we lucky that C is as fast as it is?
>>
>>8308416
C isn't fast.
>>
>>8308416
C++ is faster
>>
>>8308475
gold
>>
File: 1418584633659.jpg (658KB, 1200x806px) Image search: [Google]
1418584633659.jpg
658KB, 1200x806px
>>8308475
Technically C++ is just as fast as C. It's just that C++ code typically has more type information available at compile time so compilers can optimize the code better.
>>
Python is the fastest there is.
>>
Wouldn't like the sun be hotter if c was bigger because each individual photon would be moving faster thus carrying more linear momentum? Or is mr einstein about to cuck me with s.relativity?
>>
what if c was 10 miles per hour?
>>
>>8308475
>>8308487
assembly is faster
>>
>>8308487
Electrons dont travel at C within any wire
>>
>>8308891
Depend on the scale of the project. There is no way you can keep in mind a whole assembly project, on the other end it's easy to remember well enough a 50k lines c++ project. This mean that adding new stuff to c++ usually does not lead to decrement in performance while it usually mean in assembly. On the other hand one can usually get great improvement by writing in assembly some specialised routines in a c++ project.

As a rule of thumb you will get better performance in a large project with c++ than c or assembly.
>>
>>8308487
You're a fucking brainlet if you can't get A++
>>
>>8308416
C isn't always faster than C++ and Rust. They all are nearly as fast as high-level programming language can be. The small differences are just matter of compiler optimalizations.
>>
C compared to the scale of the universe is somehow 'fast'
>>
>>8308485
GTFO comp sci fags
Thread posts: 15
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.