[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]

>This will never stop being the most powerful programming

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: 43
Thread images: 11

File: cpp[1].png (62KB, 1385x1557px) Image search: [Google]
cpp[1].png
62KB, 1385x1557px
>This will never stop being the most powerful programming language
>This will never stop being the most expressive programming language
>This will never stop being the most efficient portable programming language
>This will never stop being the barrier that separates the brainlets from the enlightened

How does this make you feel, /g/?
>>
>wrong
>wrong
>literally C is better
>C++ is the language for brainlets. If you like C++, you're a brainlet
>>
File: 1460335482845.png (325KB, 640x360px) Image search: [Google]
1460335482845.png
325KB, 640x360px
>>60217074
Please use Rust.
>>
>>60217094
what is a language of the redpilled then?
>>
>>60217074
>high-level shit
>the barrier that separates the brainlets from the enlightened
lek
>>
>>60217141
soldering iron
>>
File: tapcat.jpg (77KB, 358x720px) Image search: [Google]
tapcat.jpg
77KB, 358x720px
>>60217094

>>literally C is better
>When C++ can do everything C can do with zero overhead, with the additional benefit of having a highly optimised standard library of common utilities that is almost certainly better than whatever garbage you handroll
>>
File: 1398668482817.jpg (264KB, 1024x582px) Image search: [Google]
1398668482817.jpg
264KB, 1024x582px
>he's too dumb for asm
>>
File: rob.jpg (46KB, 1648x1504px) Image search: [Google]
rob.jpg
46KB, 1648x1504px
>>60217141
Limbo
>>
>>60217176
>highly optimised standard library

loma
just loma
>>
>>60217176
>with the additional benefit of having shit+fuck for brainlets
>>
>>60217074
>C++
>most expressive
>doesn't even have a half decent macro system akin to LISP
>>
>>60217074
I swear on me mum, with 30 years of slapping on every feature that retards suggests while high, code in Cpp is just not conducive to being easy to read and maintain. I guess it's the x86 and Microsoft thing, where you become so popular because of non-stop grandfathering on and on and on and fuck me.

C++ could really use a bit of a rethink, because modern development is nothing like development when it was first designed.

And compile times, oh god compile times. God only knows what sort of dark magic happens at build time. I can only imagine it involves a lot of dark rituals because otherwise I have no clue why making a simple Hello World can take SO, DAMN, LONG. Like, compare it with C. It's bloody instantenous

Anyway, I love you, C++, which is why it makes me so sad to see you so fat
>>
>> Be used to work with stupid code written by retards.
>> Start physics grad school, get started with DMRG simulations.

>> Get introduced to the C++ codebase for the simulations by older grad student.
>> Everywhere I look, I see std::unique_ptr , lambdas, proper use of auto, strict avoidance of deep class hierarchies, and generally perfectly readable code.
>> Have conversation about specific details of the data structure used to represent matrix product states.

I feel like I'm in heaven guys.
>>
>>60217666

>God only knows what sort of dark magic happens at build time
It's templates' fault, mostly.

>C++ could really use a bit of a rethink, because modern development is nothing like development when it was first designed.
Modern C++ doesn't even look much like C++03. Hopefully something much cleaner comes along, but I don't think that will ever happen.
>>
>>60217666
>C++ could really use a bit of a rethink
STL2 can't come soon enough.
>>
>>60217094
Never programmed in C++, but I gotta say that if it's anything like Java then it will be a lot better than C just by that merit. C made me so grateful that things like OOP and garbage collectors exist.

C is great, for its own purposes, but for most large modern projects, it's just too limited. You'll be writing thousands of lines of code that you could easily write with one-liners in another language.
>>
>>60217699
>tfw same at work
Though there is one extremely deep class hierarchy made by a C programmer who heard words "templates" and "inheritance" and decided they were the coolest thing in 2009. It literally has 40 or so classes with multiple inheritances and triple nested templates. Thankfully, it only had to be touched once after the guy who made it left.
>>
>>60217848

C++ is OOP if you want it to be.
There's no garbage collection, but smart pointers make it much easier to track the lifetime of objects.
>>
>>60217190
Who's this qt?
>>
>>60217699
When to use lambda?
>>
>>60218367

Whenever it's right.
>>
File: image1.png (13KB, 512x320px) Image search: [Google]
image1.png
13KB, 512x320px
>>60217176
>zero overhead

Try again CIA nigger, our holy programs are too pure for your bloated language.
>>
File: 1493853291072.jpg (103KB, 640x462px) Image search: [Google]
1493853291072.jpg
103KB, 640x462px
>>60218539
>not realizing c is bloated as fuck and writing code in binary instead is million times more clean and faster.

c fags btfo who needs modern features,security or a threading library anyways :^)
>>
>>60218539
At least use an updated benchmark. Your image is old as fuck.
>>
File: 1465368116993.png (15KB, 541x393px) Image search: [Google]
1465368116993.png
15KB, 541x393px
>>60218496

"Whenever it's right" is different for everyone. And people doing the same thing, but differently has it's own problems.
>>
>>60218725
http://benchmarksgame.alioth.debian.org/u64q/which-programs-are-fastest-firstlast.svgz

You are right, C++ became even more bloated in that time.
>>
File: rust-sjw.jpg (62KB, 480x268px) Image search: [Google]
rust-sjw.jpg
62KB, 480x268px
>>60217136
>>
>>60217298
>doesn't even have a half decent macro system akin to LISP
Literally *NOTHING* has LISP's macro system so get off it.
>>
I feel envy, OP. I work with arm uC's, and everything would be so much easier if I could just use c++11. Just having std::array, unique_ptr, move and reference semantics would make things so much better.
>>
What is a nice, modern c++ book that is worth reading?
>>
>>60217666
>And compile times, oh god compile times.
t. didn't compile his compiler with -O3 -flto
>>
>>60217074
just replying to counter the c-tards
I agree with this post.
>>
>>60219320
https://github.com/isocpp/CppCoreGuidelines
>>
>>60218807
>the same minimum, marginally higher average
All that tells me is that if you use features with obvious performance penalties (virtual functions for example) you will incur a performance hit but you still have the option to be as fast as C if you want. Is that not the whole point of C++?
>>
>>60217074
>Expressive
Ok. Pack an array of 4-bit sized structs containing 3 elements. I'll wait.
>>
>>60217136
N E V E R
E
V
E
R
>>
>>60217074
That was all true, until Rust came along.
>>
>>60221841
Now if only you could use Rust for something other than developing things to use Rust for.

>tfw Piston is in an unusable state.
>tfw web frameworks are half completed and stale
>tfw doing things that should be simple in your language is a headache
>tfw you can't even decide how strings should be done.

Rust will be great in 5-10 years if you don't trust your programmers. Most people shouldn't trust their programmers.

Bur when you're competent enough to nurture a circle/workplace of engineers who actually take time to study some technical references and software engineering literature to develop a good understanding of software systems and how to use the right language facilities for the right purposes, Rust just gets in the way.

Source: founded software consulting company straight out of college with a few classmates. 20% of our time is spent fixing the code of dumbass engineers who are too boneheaded to use modern C++ principles so fuck all the shit up. The other 80% is spent being poorfags trying to convince other companies they need our expertise.
>>
File: nicelgs.gif (3MB, 427x240px) Image search: [Google]
nicelgs.gif
3MB, 427x240px
>>60217190
MFW /g/ is full of NEETs brainlets who couldn't possibly code asm or C efficiently so they stick to meme languages like C++, and ricing meme OSes.
>>
File: 1452471092796.png (372KB, 1280x720px) Image search: [Google]
1452471092796.png
372KB, 1280x720px
>>60219635
>Doesn't even have restrict pointers
>Claims to be fast
>>
>>60217141
The construct. The image translators sort of work for the construct program, but there's way too much information to decode the Matrix.
>>
>>60217074
>>This will never stop being the most expressive programming language
cmon lad that goes to CL or scheme

but yeah c++1x is for patricians
Thread posts: 43
Thread images: 11


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