|
I have noticed the issues you are describing often these days. Actually, I have noticed them for a while but I have figured out ways to simplify them and now I notice when other people don't do those things.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
While I wouldn't defend C++ that much on this front, I think you are making C# a little more straightforward than it really is. Someone I've been helping with a C# project has jumped through endless hoops with versioning of things and all the many variations of .Net, dealing with client vs. server side blazor and such. I look in the .csproj files of some of those projects and they are very complicated.
I would also say that not all C++ is as bad either. My stuff is nothing like what most C++ is wrt to build infrastructure and includes and such. Each library has a single public include file that brings in anything needed for the public interfaces of that library and exposes all the public interfaces, and a private header that brings in stuff only needed internally (which includes the public header). Each program has a main include file that brings anything needed within that program, including its own other headers.
So each library cpp file usually includes just its own internal header. And each program cpp file typically just includes its own public header. There are some occasional exceptions, but generally that's it.
Explorans limites defectum
|
|
|
|
|
Dean Roddey wrote: And of course the thing is, if you looked under the hood of the C# libraries, I'm guessing there's probably a lot of C++ down in there.
The C# compiler and most of the libraries are written in C#.
|
|
|
|
|
Good link!
|
|
|
|
|
The modern C++ is trying to get less cryptic* & the modern C# is trying to get more performant.
Someday both meet at a point and people get to choose the project template as easy as picking a green apple or a red apple.
*a long way to go
|
|
|
|
|
I'm not sure at all that I'd agree that modern C++ is less cryptic. The crazy templatization of modern C++ can make it extremely cryptic.
Explorans limites defectum
|
|
|
|
|
Only if you are authoring libraries. If you are a consumer, it's not that bad.
|
|
|
|
|
If you are writing pretty substantial applications, there's still a lot of grunt work infrastructure code in such things, so you'd still end up doing a lot of this stuff at your level as well.
Explorans limites defectum
|
|
|
|
|
|
It seems that the modern C# is becoming more cryptic. See the changes being proposed for C#-9
|
|
|
|
|
Rob Philpott wrote: There seems to be a general view that if you want to do some serious compute bound work C++ will always win over C# because of its unmanagedness
Same view is true for Java.
However....
First that claim supposes that the person doing the programming does in fact have enough experience in C++ to create something faster in that language. In my experience such claims have originated from people that just prefer that language or some other that that they claim is 'better' based on subjective terms rather than objective terms. (Might be relevant to note that I have at least 15 years of C/C++ experience.)
Second business programming in terms of programming is never about algorithmic performance. And I am not a person that throws absolutes around, but in terms of statistical significance the probability that a the algorithm in the business is the bottleneck is so far below 1% that it is effectively zero.
What actually impacts performance is architecture and design. And business processes, since a faster application might be possible if one refactored 15 years of legacy code but that just isn't cost effective for most businesses.
Third if there is in fact a single algorithmic bottleneck and one can find the expertise then obviously implementing it that way might not be the advantage one thinks. I consider it very unlikely that code (vs design decisions at the code level) are going to provide a 1000% speed up or even a 100% speed up. So what are the cases where a 10% speed up, with no other design/architecture changes (which can be done in any language) are going to provide that much actual real benefit to the business?
|
|
|
|
|
This article might be of interest to you - Unity have developed a compiler called Burst. This uses Roslyn as a frontend, but they've developed a performance oriented IL -> object code translator with LLVM. They've also done work with the garbage collector, to make its performance more predictable and less spiky.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
114.1 Satisfied hydrogen application with unknown (5)
|
|
|
|
|
Satisfied
hydrogen H
application APP
with unknown Y HAPPY
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Ya
|
|
|
|
|
|
A few?
You got that right!
|
|
|
|
|
... and "The Earth is a Libra"
No spoilers here (but you've probably read the book anyway - if you haven't, it's available for kindle so there is no excuse) and I've only watched the intro to episode one because Herself would kill me if I saw it ahead of her.
Another good reason for a Prime subscription (other than The Expanse Series 4)!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
It's raining tomorrow morning so instead of being out on the roads I'm putting the bike on the rollers and spending a some hours in the garage with the iPad on binge mode.
cheers
Chris Maunder
|
|
|
|
|
Just watched episode 1 (Herself doesn't like binges, so they'll be spread out) and it follows the books pretty well - the casting so far is pretty spot on. Bodes well for the binge tomorrow, assuming your legs hold out for 6 hours ...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I have no clue what you are talking about.
I'd rather be phishing!
|
|
|
|
|
Good Omens (TV Mini-Series 2019– ) - IMDb[^]
The Beer Prayer - Our lager, which art in barrels, hallowed be thy drink. Thy will be drunk, I will be drunk, at home as it is in the tavern. Give us this day our foamy head, and forgive us our spillage as we forgive those who spill against us. And lead us not to incarceration, but deliver us from hangovers. For thine is the beer, the bitter and the lager, for ever and ever. Barmen.
|
|
|
|
|
When you try to eat healthy, does a chocolate bar look at you and snickers?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I don't know, but getting through a diet can seem like a marathon.
|
|
|
|