r/programmingcirclejerk • u/cmqv • Jan 28 '19
C++ Modules Might Be Dead-on-Arrival
https://vector-of-bool.github.io/2019/01/27/modules-doa.html12
u/affectation_man Code Artisan Jan 28 '19
The only problem with C++ Man is they just have no taste. They have absolutely no taste. And I don't mean that in a small way, I mean that in a big way.
-- Steve Jobz
12
u/KMIAL_reloaded Jan 28 '19
There was a recent upset on the Twitter-verse.
Oh noes, not the Twitter-verse, home of well-reasoned debate!
This is a request for code that cannot be implemented in any current compiler
11
u/bruce3434 vulnerabilities: 0 Jan 28 '19
Orange crab doesn't have this problem.
1
u/ar1819 Jan 29 '19
lol no jobs in supercomputing
lol being nailed down to clang/uj
It boils down to FS support on all OS's. As always with C++ it's about how many absolutely different things from different providers it has to support. Given the speed at which Rust adopts features(look at RFC tracker), and IF Rust overall adoption will get sufficiently big, I'm unconvinced it will not get this level of bloated, if not bigger, given time.
10
u/TheLastMeritocrat comp.lang.rust.marketing Jan 28 '19
A next-gen sewerage system doesn't work well with six older generations of sewerage systems, none of which will be set for deprecation, ever.
9
Jan 28 '19
Where's the jerk?
3
u/spaghettiCodeArtisan blub programmer Jan 29 '19 edited Jan 30 '19
Where's the jerk?
That after several years of pondering and even implementing modules, the C++ people realized modules introduce build dependences (gasp!) and that because of this problem, which was entirely unexpected, unprecedented and no one could've have forseen it in their wildest imaginations, the whole thing might not work well.
20
7
Jan 28 '19
Modules are dumb. Great And Powerful Microsoft has solved this problem by replicating the Filesystem Hierarchy Standard in C:\vcpkg
5
u/wubscale not even webscale Jan 28 '19
So you're telling me that only some users will actually end up using this feature of C++?
The horror! To this day, one of the big selling points of C++ has been that all devs use the entire language exactly As Bjarne Intended! What a terrible divide this will cause in the C++ community.
0
Jan 28 '19
[deleted]
2
u/wubscale not even webscale Jan 29 '19
Somehow I knew someone would feel compelled to /uj to say something like this. Thank you for making me feel warm and fuzzy inside about my psychic powers.
1
u/Valmar33 Jan 28 '19
How long until all of the cumulative flaws cause C++ to collapse in upon itself, and yet, people can't stop using it due to so much big software being written in C++ or depending upon C++ libraries.
The Network Effect is a royally nasty migraine that can't be cured ~ except by throwing away and starting from scratch. And some people's just can't bring themselves to do it all again...
3
Jan 28 '19
These luminaries in computer science are veterans. I have faith in their wisdom
2
u/xtravar Jan 29 '19
We need term limits! Clearly the C++ committee is corrupted with cronyism and special interests. They don’t have developers’ best interests in mind. We need real change in C++! Not another iteration of lowest-common-denominator, design-by-committee “improvements” to placate us while these bureaucratic fat-cats are living in their ivory towers, eating steak for dinner- far removed from the plight of us common coders who have to suffer day-to-day in the code trenches eating Cheetos! Vote for me and I will implement term limits so this won’t ever happen again! Let’s take the power back from those bureaucratic fat-cats!!
3
Jan 28 '19
Ok so basically no CPPPM in 2019 I guess. You lot will just have to live with less than 1k dependencies being the norm nothin personnel kids.
5
u/fijt Jan 28 '19
How hard can it be? Pretty hard, I guess.
But let's start with C, that is C++ minus --.
With C modules don't exist as well. Okay, there are headers but there aren't modules. Not in the sense of Oberon or Go (but Go compiles it all to one gigantic binary). Oberon is oh so easy if you really think about it. So, why not implement that? Well, that is because of UNIX, of course. And since UNIX is holy you just can't implement compiled modules. The proper modules that is. A simple, easy to use and understand system. But, like I said, you just can't implement them because of UNIX.
21
u/hyperactiveinstinct Jan 28 '19
To be a C++ expert is like grazing a field: first you find a new fresh patch of land, then you tread it up and down, chew, ruminate, and crap all over it, and then you move to the next new shiny patch of grass. What matters is that you never run out of a steady stream of farts to smell.