[–]▶ No.992409>>992417 >>992553 >>992632 [Watch Thread][Show All Posts]
The D Language Front-End Finally Merged Into GCC 9
> GCC 9.1 will be the initial GCC9 stable compiler release with GDC support and it's due for release around the end of Q1'2019.
Source: https://www.phoronix.com/scan.php?page=news_item&px=GCC-9-Merges-D-Language
Regarding these news, people busting their nuts over Rust have a passive aggressive strikeforce awaiting on HN and Plebbit, doing always the same old bullshit parroting and feigning ignorance with a shit eating grin. And there's always a steveklabnik comment. Not even surprised.
Will the D guys ever catch a break? Honestly, the D language takes a lot of shit for the wrong reasons, and it's very admirable that the community around it is still very mature and professional without smearing shit on other people, something which I can't say about the Rust folks. Rampant fanboyism is the new religion it seems.
▶ No.992417>>992631 >>994482 >>995912
>>992409 (OP)
The overly flamboyant Rustfags have to shill their ugly SJW language so hard because it's the worst of the modern programming languages. The white men who develop D know that their language is going to be one of best alternatives for replacing C++ in the future (along with languages like Crystal). Even C++ is way better than lame meme languages like Rust or Go. White people are able to use pointers and generics properly.
▶ No.992437>>992447 >>992460 >>992463 >>992532
>heh the reddit and HN threads are full of rust shit
3/3 rust posts in this D thread
does anyone use this language? show us something cool.
▶ No.992447>>992463 >>992466 >>992524
>>992437
Fun fact: The first few versions of OpenMW were written in D.
▶ No.992460>>992488 >>992531 >>992809 >>994370 >>994482
>>992437
In D x.func(y) is the same as func(x,y) which is pretty damn rad.
▶ No.992461>>992524
▶ No.992463>>992466 >>992471
I've been putting off learning D since 2008. Maybe I should learn it now.
I see it claims support for the C ABI and limited support for C++ ABI but I'm wondering how trivial is it to mix D with C or C++ in practice? I'd like to call things like SQlite3, SDL, FLTK, or libxml2.
Quickly browsing at the wiki...
>https://wiki.dlang.org/Voldemort_types
>Voldemort
Harry Potter references? What kind of memey shit is this?
Looks like no support for {Open,Net,DragonFly}BSD. I consider that they don't even target OpenBSD a large drawback.
DMD only supports x86.
https://wiki.dlang.org/Compilers
>>992437
>does anyone use this language?
https://dlang.org/areas-of-d-usage.html
>>992447
Quick (((Google))) suggests the main contributing factor for the switch was people who wanted to contribute couldn't be bothered to learn D.
▶ No.992466>>992471
>>992447
>a thing in D is rewritten in C++
is that a success story?
>>992463
>Harry potter reference
OTOH the standard library is called 'phobos'. That's cool.
>no OpenBSD
mods pls delete this thread
▶ No.992471>>992487
>>992466
>>992463
Niggers, it's a funfact, not an endorsement or indictment. It's a fact that there are not a ton of D coders out there, but that doesn't mean the language is shit.
▶ No.992487>>992574
https://forum.dlang.org/thread/hpauduyizitshugjjbfa@forum.dlang.org
OpenBSD is too esoteric to port I guess.
>>992471
>there are not a ton of D coders out there, but that doesn't mean the language is shit.
Very true, and I (>>992463) wasn't suggesting that. It's was kind of just a "funfact" that these contributors didn't see enough value in learning D and would rather wait for a C++ rewrite.
▶ No.992488
>>992460
Bjarne proposed that in C++ too but committeeniggers killed it.
▶ No.992505>>992510
if it isn't pure C it's wrong
▶ No.992510>>997525
>>992505
If it isn’t assembly it’s wrong
▶ No.992524>>994932
>>992461
if (Tweeter= Gamergater)
cout << "Block." << endl;
else
if( Tweet=Negative)
cout << "Block" << endl;
Not D code per se, but wrote by someone with a D.
>>992447
Never knew that. OpenMW is an amazing project, I play Morrowind constantly cuz I'm a fag.
▶ No.992531>>992539
>>992460
>x.func(y)
Why would you ever do that?
▶ No.992532
>>992437
Some of Kenta Cho's games are made with Dlang, including Torus Troopers and Tumiki Fighters.
http://www.asahi-net.or.jp/~cs8k-cyu/
▶ No.992539
>>992531
>x.func(y)
>Why would you ever do that?
D is OOP.
▶ No.992553
>>992409 (OP)
D is neat but OOP isn't my cup of tea.
I would recommend it over rust because at least D is only 0.10 slower than C and it's now in GCC.
>Rampant fanboyism is the new religion it seems.
That's what you get when children are raised with hype/hate culture. I was part of it until I realized that I was manipulated.
▶ No.992574
>>992487
The irony of a D developer calling OpenBSD esoteric.
▶ No.992631
▶ No.992633
Anti-rustfag here. Looks like I will be learning a new language now. I think I will like coding in D.
▶ No.992809
>>992460
Huh, that is also the case in (((Rust)))
▶ No.992867>>992904 >>992928
Can someone TL;DR this language for me? What is its use case and what are the pros and cons vs C++ and Rust?
▶ No.992904
>>992867
simpler than C++
better than rust
▶ No.992928
>>992867
Imagine if C++ wasn't ugly and had garbage collection.
▶ No.992945>>992948 >>992949
tldr: don't read this. I'm just rambling.
I'm still not completely sold. Every week a new language comes out claiming to cure cancer. This one came out years and years ago claiming the same and only a handful of people really cared.
What I see is a language that despite being around for so long has garnered very little adoption.
Even their success stories are lacking: https://dlang.org/orgs-using-d.html .
https://github.com/arexio doesn't even have D repositories.
EBay used it to simply replace Perl data mining scripts.
The Netflix usage is pretty much some small proj by one singular guy.
I could itemize other things but I won't.
When I overview it I see C++ with Python looking stuff crammed into it. Because that's exactly what C++ needs I guess.
Portability is somewhat less of an issue as I'm a Intel/Linux normie so what do I care or know about portability honestly? Just seems strange when looking at a language that wants to compete with C++ and be taken seriously.
Given how long it's been around and how few developers it's attracted in that time I just have to wonder if learning it has any real value. Hell, I may as well learn Vala at that point.
Interesting read: https://forum.dlang.org/thread/fsglcd$4j4$1@digitalmars.com Wonder how valid the arguments still are.
The most compelling reasons I see to learn it are "it's not C++" and "its better than Rust because trannys are lame"
I'll probably learn it anyways, create something about 1k SLOC, and then come on here talking about how awesome it is and how everyone should use it, and then never pick it up again.
▶ No.992948>>992959 >>994073
>>992945
>claiming to cure cancer
there are three separate claims.
1. a cure for cancer: Rust, ATS, Julia
2. nothing new really but it's super comfy I swear: Zig, D
3. it looks just like your wife but it's young and hot again: Crystal, Nim (more #2 but people think of it is #3)
▶ No.992949>>992953
>>992945
> Every week a new language comes out claiming to cure cancer. This one came out years and years ago claiming the same and only a handful of people really cared.
>What I see is a language that despite being around for so long has garnered very little adoption.
And ? you choose the languages you learn because of popularity ? that isn't very wise if it's the case.
▶ No.992953>>992960
>>992949
it doesn't much matter if a language is #5 or #15, but it matters if a language
1. has a community you can present questions to and get answers from in a timely manner
2. has a bunch of solutions on StackOverflow that your searching will pull up
3. has had wheels kicked and libraries written so that you don't spend half your time not using your tools but fixing them
4. can be presented to your team without someone saying "wtf is that? Nobody else knows this. Who else can possibly maintain this? Do you have any idea how shit things would be right now for you if your predecessors had written all these tools in random-ass languages that you can't even build a compiler for on a modern system anymore?"
▶ No.992959
>>992948
Crystal is very good for web stuff, especially speeding up slow Ruby crap.
▶ No.992960
>>992953
Has someone who as been raised old school:
>1. has a community you can present questions to and get answers from in a timely manner
Legit.
>2. has a bunch of solutions on StackOverflow that your searching will pull up
Not legit.
>3. has had wheels kicked and libraries written so that you don't spend half your time not using your tools but fixing them
Legit and not legit. See Python it's good and shit at the same time.
>4. can be presented to your team without someone saying "wtf is that? Nobody else knows this. Who else can possibly maintain this? Do you have any idea how shit things would be right now for you if your predecessors had written all these tools in random-ass languages that you can't even build a compiler for on a modern system anymore?"
Not legit. This happens to literally all languages that begins or have small communities or developers who don't have much experience or have a life/aren't autistic after work.
▶ No.994073
>>992948
Except that C will always be hot and young, just stuck in old fashioned clothes.
▶ No.994079
why use rust when you can use D
▶ No.994351
Wrote a daemon in D yesterday, I'm very impressed by it. You can write alot of code very quickly, I'm not going back to C and C++. Only gripes I have are that it still needs semicolons at the end of lines, parenthesis around statements and debugging is very difficult.
▶ No.994362>>994372
D1 was better, D2 is worse than C++
▶ No.994370>>994372
▶ No.994372>>994373
>>994362
Why?
>>994370
Nim looks like crap.
▶ No.994373>>994374
▶ No.994374>>994376
▶ No.994376>>994377
>>994374
bad opinion discarded
▶ No.994377>>994380
>>994376
Your opinion is irrelevant.
▶ No.994380>>994381
>>994377
that's what someone with an irrelevant opinion would say
▶ No.994381>>994382 >>994384
>>994380
That's what she said
▶ No.994384>>994392
>>994382
>>994381
import std.stdio;
void main() {
writeln("NEITHER OF YOU IS WITHOUT RETARDATION");
}
▶ No.994392>>994398
>>994384
I like both nim and D
▶ No.994393>>994399
>The original name was the Mars Programming Language. But my friends kept calling it D, and I found myself starting to call it D. The idea of D being a successor to C goes back at least as far as 1988, as in this thread.
Dguy has dumb friends.
▶ No.994398>>994401
>>994392
I'm sure you like your wife and her boyfriend.
▶ No.994399
>>994393
Nah I like D because you can make penis jokes.
▶ No.994401>>994418
>>994398
I do fancy myself and my gorgeous wife, thanks for taking notice :)
▶ No.994414
Three Cool Things About D - The Case for the D Programing Language
https://www.youtube.com/watch?v=RlVpPstLPEc
▶ No.994423>>994483
>>994418
Thanks for the funny image too :). Niceness never stops coming, I guess
▶ No.994482>>994486 >>994853
>>992417
factually incorrect
>>992460
so what? a very similar thing is also in Python
you can call method from any object with any "self" value
this is super effective
▶ No.994483>>994515
>>994423
Neither does your wife's boyfriend
▶ No.994486>>994487
>>994482
It means you can write imperative code if you want regardless of the architecture of imported libraries.
▶ No.994487
>>994486
nah it doesn't mean this.
OO vs not OO is completely different from imperative vs declarative
▶ No.994515>>994536
>>994483
Yeah, she does handle my loads pretty frequently haha
▶ No.994536>>994784
>>994515
Why are you making her interpret programs. Do you hate her?
▶ No.994784>>994890
>>994536
Gotta put a woman to work to keep her in check, am I right?
▶ No.994853
>>994482
>THAT'S NOT TRUE
<doesn't tell what's wrong with that posts.
is your buttplug too deep in your ass, rustfag?
>>994817
gc isn't bad for all use cases but white men know can into pointers and dynamic memory, when it's needed.
▶ No.994867
Reminder that C can't into design by introspection, and C++ syntax for it is unwieldly.
▶ No.994880
>>994817
Convince me that every program isn't garbage collected in some form or fashion. Even when I do my own object management, I'm just implementing garbage collection. Even when I say fuck it and let the OS handle cleanup on exit, it's their garbage collection.
All garbage collections fallback to the same free's you would call anyway, just at different times.
Unless you're REALLY in need of controlling real time, or encountering some specifically hot path. I don't see a reason why a standard, controlled garbage collector, isn't desirable by default.
I just have no need to manage memory myself, nor do I want to write deconstructors for everything either.
As long as you do the same leak checks, etc, I can trust the compiler and runtime to be smart enough to figure it out, or tune just enough to my needs to work.
▶ No.994890>>994897
>>994784
No, you should be impregnating her cuck.
▶ No.994891
>>994817
>Manual memory management
>Wasting cycles freeing memory you don't need to have available yet
>Leaking memory because you're too proud to admit you make mistakes
Shoot yourself immediately.
▶ No.994897>>994901
>>994890
Already am, frequently
▶ No.994901>>994902
>>994897
No you aren't liar you're making her work.
▶ No.994902>>994907
>>994901
on dis dick, obviously
▶ No.994906
>>994817
you can turn it off.
▶ No.994907>>994914 >>994932
>>994902
You dick doesn't supply scripts
▶ No.994914>>994931
>>994907
Speak for yourself, darling. I type everything with my dick.
▶ No.994931
>>994914
But keyboards are dirtier than toilet seats.
▶ No.994932
▶ No.995912>>995914
>>992417
>like Rust or Go
Rust, definately, but why Go? There's a case to be made in the unnecessary complexity and community horseshit that surrounds Rust, but Go is actually a pretty good replacement for Python. I would never compare it against C++ for performance reasons, but I would place it in about the same category as a compiled Python; something easy to hammer out a quick, short program with.
▶ No.995914>>997522
>>995912
But it's not, the compiler complains about fucking everything and you HAVE to handle errors and there's no proper OOP support.
▶ No.996466>>996523 >>997195
>>994817
>(((GARBAGE COLLECTED)))
But most popular game engines use garbage collection too and those are realtime applications. If it would do more harm than good - why would they use it? I can easily see how it could save developer headaches - but is their approach significantly different from what garbage collected languages implement?
Quick search turned up a forum post by someone who used UE4 for a bullethell shooter and was experiencing slowdowns because of garbage collection once in a while. This doesn't sound like you shouldn't be mindful with resources (reusing, datastructures that make sense) even when you have a garbage collector that takes care of things.
Garbage collection regularly gets mentioned as something that shouldn't be applied in performance critical applications (let's exclude microcontrollers), yet the gaming industry, which needs to make sure their engines run in some way or another on consoles, regularly uses it. I'm feeling like the "garbage collection is bad, always" is more of a meme than anything else.
▶ No.996523>>997263
>>996466
If you're writing a realtime application all you have to do is make sure to explicitly free enough memory that the garbage collector doesn't need to execute in the firsts place in scenarios where you think it will be disadvantageous to stop the world.
▶ No.997195
>>996466
Switch from a C# job to a C job.
I had to do more memory management with C# than with C. The garbage collector is unpredictable...heh...garbage. Part of it is of course, that I actively think about memory allocation and thus it prevents a lot of work, but the point still stands.
▶ No.997263>>997294 >>997305
>>996523
Then whats the point of having a garbage collector in the first place if I have to make sure to free objects myself.
▶ No.997294
>>997263
You only have to make sure to free objects yourself when stopping the world is going to be a problem, e.g: If you're in the main menu, loading screen, pause screen etc no one cares if you stop the world.
▶ No.997305
>>997263
It's a safety net against some memory leaks, and it gets you a workable prototype earlier.
▶ No.997522>>997632
>>995914
>There's no proper OOP support.
Of course, the guys that made it don't like OOP.
▶ No.997525
>>992510
If it isn't written out in hex notation by hand precompiled in your brain it's wrong
Funfact: you probably think I'm kidding, but I'm only about half kidding
▶ No.997632
>>997522
That's because they're retarded.
▶ No.997715>>997962
Reminder that, despite its age, D still doesn't have a very good OS/architecture support.
▶ No.997962
>>997715
Guess what ecosystems don't come out of thin air
▶ No.997973
oop is oversimplification of modularity for idiots