[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: ISO_C++_Logo.svg.png (16 KB, 330x372)
16 KB
16 KB PNG
Want to use modern C++ features like Modules? Nuh uh can't include "non-importable headers" from common libraries
What's "non-importable"? IT'S IMPLEMENTATION DEPENDENT. No one knows.
C++ keeps stapling shiny new abstractions onto a language whose foundation is still “whatever your compiler feels like today.” Every new feature “works unless it doesn’t.”
It’s not a language design so much as cardboard layer cake.
Why don't you use something else? MPI. The alternative would be Fortran.
>>
isnt fortran a procedural mathfag language with 'some' OOP plastered on top as an afterthought on later versions? Idk c++ but I dont get why people who seemingly dont know shit likes to complain about it so much
>>
>>107638778
Yeah it sucks that we can't deprecate stuff. Too many boomer corps relying on old shit. Only hope is that eventually they adopt Rust enough that C++ can just go nuclear on all the legacy crap due to nobody using it.
>>
>>107638967
as a C++ programmer, the hatred is well deserved. the language is fucking terrible because it's a thousand and one conflicting visions crammed into a giant design-by-committee mess. everybody will say "well C++ isn't so bad, you just have to restrict your usage to 1% of the language" and not even blink like that's actually a sane thing to say.
>>
>>107638778
Doesn't matter. It's still fast. It still has good libraries. It can still do anything you want/need. It still has good compilers. It still has good tools. It still runs on anything.
>>
>>107638778
> Why don't you use something else
Because every other language is a second class citizen. C is the lingua franca of computing, everything else is forced to use some grotesque FFI. Being mostly a superset of C is the only reason anyone uses C++. And people will continue to use C++, since not one person has attempted to create an alternative.
>>
>>107639141
>like that's actually a sane thing to say
but isn't it? it's better to have a single language with thousand extensions and standard libraries you can choose among then having to learn multiple different smaller languages with all different syntax, semantics and idioms, imo.
>>
File: GycPjzJasAAFsDi.jpg (79 KB, 685x685)
79 KB
79 KB JPG
https://www.youtube.com/watch?v=7fGB-hjc2Gc
>>
>>107639984
>a single language with thousand extensions and standard libraries you can choose among then
>multiple different smaller languages with all different syntax, semantics and idioms
there is little distinction between the two in practice
a c-style c++ codebase is practically unusable in a rust-style c++ codebase without so much code in between that it approximates a FFI
>>
only problem with c++ i had was being unable to install third party libraries and frameworks
>>
c++ is c + classes(raii) + templates + lambdas + overloads + namespaces. most of the compile time magic is for the standard library. the largest issue with c is the lack of generics and namespaces, and c++ provides this. the only thing i dislike about c++ is that types are implementation specific, which is also an issue with c. i have never found the header convention to be bad, so i dont get why retards want modules. a header is just a list of forward declarations, its not that complicated. also c++ 17 is all you need, and that is why g++/clang only fully support to up c++ 17.
>>
>>107640031
>there is little distinction between the two in practice
even with completely different styles you have same or familiar idioms and syntax and such. I never worked in such codebase so I wouldnt know though.
>there is little distinction between the two in practice
a c-style c++ codebase is practically unusable in a rust-style c++ codebase
is this even c++ specific or a multiparadigm language "issue"? you get this with any language that is not totally pure I assume.
>>
>>107640103
do modules decrease compile times by avoiding compiling the same code in different TUs over and over? I remember if you included a header with method implementation that's what happens.
though, methods inside headers are not idiomatic I guess, are they?
>>
>>107639946

objective-c is a thing and worked reasonably well for next/apple despite its stupid syntax
>>
File: pepes2.jpg (347 KB, 2212x1640)
347 KB
347 KB JPG
>>107638778
Skill issue.
>>
>>107638778
Retard take.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.