is this a good c++ replacement or is it a meme lang?
>>108092444Meme lang, not much came out of it.
>>108092444>C++ replacement filtered eh?
>>108092444Booba
>>108092444NeitherIt's a damn good language in itself, imagine if it had as much support as C and Go getsIt could have replaced C++ and the world would probably have been better off, too.
>>108092650I'm just gonna be making stupid games with raylib and ncurses, I got both libraries to work with D, is it worth learning? I just want C with some extra features and c++ looks like a fucking mess
>>108093041>worth learning?There is nothing to learn. It's more or less C++ but saner. Read the language tour and you can begin writing code. If you find yourself doing clumsy shit like in C++ look at the manual and check of there is some feature that amends that; and most of the time there is.
>>108093041> I just want C with some extra features No idea how D stacks up, but you may also want to consider Odin for your use case
>>108092444We actually used it for everything at my work when I first started out. Tbh it's a wonderful language and it feels much more ergonomic than c++ to me. I particularly like the dub build tool. I was too greenhorn to leverage it's metaprogramming but that's arguably it's biggest feature compared to C++.All that said, the typical problems of running an exotic language made us switch to c++ eventually: difficulty hiring, difficulty working with teams not also using D, and increased friction using non-D libraries (easy, but tedious). In contrast using C++ now it's ugly as sin, I fucking hate CMake after being pampered by Dub, but I have a lot more existing projects and resources to draw upon. Plus it's easier to, for instance, package the project for use in python via pybind11. In my opinion, if you are self employed or if working on a hobby project absolutely give it a try, but if you have other teams with a different stack consuming your libraries, or if you require high quality external dependencies just stick with C++As an aside, if using D try and use the ldc2 compiler instead of dmd, it uses llvm and does a much better job optimizing.
templates goodgarbage collector bad, last i checked a better one may release in 3 months to 5 yearsyou dont have to rely on the GC, and there are subsets like -betterC that actually use the C standard library as opposed to D's but still benefit from the better type system and what have you
>>108093164 (this anon)>>108093171Yeah I forgot to mention the garbage collector is very old-timey but can be disabled with a nogc decorator. BetterC is great there too
>>108093115isn't Odin still in development?>>108093164its just for hobby projects so it's fine, but would be nice if my experience with it could be something I can put on a resume.>>108093171yeah betterC is what got me interested in it
>>108093251For resume it's all about how you describe it. You could say something like "worked with metaprogramming I systems level language and design" bonus points if you add a wrapper around an existing C++ project to call it from D, so if pressed you could say it had C++ and experimented with D, which isn't false but gives the impression the experimental D part is small when actually it's the whole project
>>108093318mind the typo, should be "metaprogramming in systems"As an extra bit of info, there's a good D book by Alexandrescu which would be worth reading if you're interested in the language
If you can afford garbage collection just use Java. It has a far more expansive ecosystem anyway.Anyway, D does a lot of things better than C++, so there is that at least. C++ is just kind of icky to work with.>>108093115>>108093251>odinShit nophono cares fan about language. It will always be a meme shilled by one or two trannies on /g/
>>108093115i like odin but the community is horrendous
>>108093687>I like X but the community sucksyou can apply this to literally anything that exists
>>108093724I like 4chan because the community sucks