I got used to C# and want to lern some more native programming.
What advantages does D have over C?
D is best compared to C++, Go and Rust, not C. It is a larger, OOP language. It has a huge advantage over Rust in that it is a programming language not run by SJWs and literal communists. If you need proof of that, Walter Bright, the creator of the language, posted this on Hacker News just yesterday: https://news.ycombinator.com/item?id=10960141. Also, generics.
SJWs and literal communists meme.
If I recall correctly, this is based off that one incident a mozilla employee identified himself as a mozilla employee and spouted vitriol, then got fired?
Because I don't see that as being literal SJW communists. Believe it or not, Mozilla heavily depends on their reputation, and not being viewed as sexist and hateful has more view for a company than not being viewed as SJWs. I wonder why.
> If you need proof of that, Walter Bright, the creator of the language, posted this on Hacker News just yesterday
So, if commies made a rocket before capitalists, by our logic capitalists shouldn't use rockets?
Also, as not-native English, I don't understand what does he mean by this post. Can you chew how it mades him a commie?
D really isn't meant to be compared with C. It's more of a C++ competitor
D has more features that will make your life a lot easier - templates, dynamic arrays, OOP if you want to do it, functional programming concepts - the big idea is that it's as fast as C++ and as broad as C++ while being so, so much more cleanly implemented, so it'll compile faster and it's a lot easier to learn (than C++)
C is faster - this is pretty much its point. You can get as near to the machine as you can without using assembly
The advantages of D are pretty well put out on their site
but it's mainly aimed towards people who are coming from java / C# and want something faster, or people coming from C++ and wasn't something that isn't a giant fucking clusterfuck
The advantages of C are evident in the fact pretty much everything that has to be fast and interact closely with the hardware is written in it (the linux kernel springs to mind)
I would say it's best to learn C first so you can learn how your program actually works (how things are represented in memory, heap vs stack, compiler optimisations, instructions, registries, etc.), and then move into D when you want to start really enjoying it
It isn't a meme. Steve Klabnik is on Rust's core team and does docs/community PC policing.
Here is a quote from him.
>Second, I'm not _strictly_ a communist: I'm certainly very left-wing, and I often role-play a communist, because I think Americans need a connection to an actual left. My allegiance is ultimately to Deleuze, not Marx. To put it in terms of a meme image I saw the other day, around non-leftists, I usually use 'communist' as a shorthand, but amongst leftists, a more nuanced discussions can be had, for sure.
It's kind of C++ made in good, but it introduces its own flaws and even if it didn't, who would want C+++ instead of a new language?
>han not being viewed as SJWs.
That's kind of my worries that Mozarella destroys it, but time will tell.
But mostly programming communities are based on communism, desu.
And having left-wing ideals != being leftist/commie. It is just "I think in the future it would be better that our society will be commies", it doesn't mean "I want to be commie now". You know, the robots doing robots in future meme.
>But mostly programming communities are based on communism
Wrong, all programming communities are based on hyper-capitalism.
Open source is a capitalists wet dream, programmers are working for free in their spare time on products for private businesses to use.
Using a language means interacting with its community if you want to submit a patch, ask for help and whatnot. Using an SJW language means interacting with SJWs I those situations. It doesn't make commie technology inherently bad; it's just more likely to expose you to commies.
You realize languages like Google's Go lets sub 100 IQ retards to program right? It was literally designed to be simpler than BASIC and doesn't require any more than high-school level mathematics.
You know. I read how mericans made the nuclear bomb. At the beginning there were people with left and right-wing views (mostly leftists). One of the heads of the project was a commie. And other head was right-wing. So, the right-wing guy hated the first one because of this commie ideas and dropped the project. And mostly of right-wings dropped the project too. So, the project was made buy commies and they haven't bother on safety at all. One of the scientists was recruited by Kremlin and leaked all the data. That's what happens when you become hysterical pussy and drops a project only because people who don't agree with you have different idea.
What a time to be alive. Only the left can do this shit.
I still don't consider this to be proof Mozilla is literal SJW communists. It proves that, like any big organization, it's been infiltrated. I don't agree with their overly paranoid way of doing things, but considering the current political situation it does make sense. There aren't many people who can clearly state their opinions without risking a lot, much less so companies.
>Even C# is more noob-friendly than Go.
C# fucking supports Monads, a feature that requires a PhD in mathematics to understand properly.
They do so no more than earlier languages with hash maps built in. I suppose at worst junior web developers might suffer from that kind of competition but if they are any good they won't be juniors for long.
>who would want C+++ instead of a new language?
There are a few very clear reasons why someone might want to use D instead of C++
overall it's cleaner to read and write, mostly by being more syntactically consistent. An example would be that << in D is only the bitshift operator, not also overloaded for output to iostreams like in C++, but there are other things like not using < and > as brackets, and having a dedicated concatenation operator
it has a couple of more 'modern' things like foreach loops (as part of the language, not tacked on voodoo like C++'s version)
the biggest advantage IMO is that it compiles insanely quickly compared to C++, which means you can often write a lot faster code in it because you're less reluctant to change something out and try new things
oh and the templates are just astonishingly convenient
just for an exampleint index(T)(T array, T t)
for (int i = 0; i < array.length; i++)
if (t == array[i])
int i = index!char("Hello world!", ' ');
int j = index("Hello world!", '!'); // type can be omitted and deduced from the arguments by the compiler
> Walter Bright is not a commie. He is saying that smart people become conservative with experience.
It's controversial statement. Because 99% of people become conservative with age. Does that mean that 99% of people are smart?
And the thing is that "conservatism" is not the antipode of "liberalism". Conservatism in different regimes is different. And liberalism in different regimes is different.
I live in Russia and for us liberalism is something near to American Republicans. And conservatism is picrelated.
What about them?
Shallow impression is that Crystal still want to tweak semantics a little before finishing the language and Nim is pretty much a one-man ego trip that leaks C semantics.
I don't see anything in D's features that isn't part of C++ already or can be done on C++, all it's doing is throwing the STL out with the bathwater and trying to be a special snowflake
I don't exactly see the relevancy of this. They can't do anything to any user of rust, nor is rust anything more than a set consisting of a language, a package manager and some tools to aid in development. Whether the people are SJWs or not is essentially irrelevant; if it actually becomes relevant in the future, the project is open source and a fork can be made to continue it under patronage of sane people. In the end the most important thing is how good the language and ecosystem is; so far, the language is IMO one of the better ones and the ecosystem benefits heavily from a friendly community (and before you say SJWs, no, I don't care; I don't discuss politics with people on IRC on #rust because that's pointless shilling)
Not sure, but I think it was about integer overflows, so not the worst thing I ever encountered. You may want to research yourself, though.
That will teach both fag sides not to use clear names in the long term. The programming community could use more guys like Klabnik.