Why I use the D programming language for scripting (2021)
1–10 of 53 posts
Re: Why I use the D programming language for scripting (2021)
#2Re: Why I use the D programming language for scripting (2021)
#3The CPU and RAM usage of D-lang out performed all other languages.
Compiled binary size:
D-Lang : 450KB Go : 2 MB C#(.NET) : 8 MB Java-GraalVM: 9 MB
D-Lang CPU & RAM Usage is also less than GO. Unfortunately D-Lang is not popular, not many libraries available.
Re: Why I use the D programming language for scripting (2021)
#4The only difference is how easy is, and how much cr*p you need to suffer in the process.
Yet I see here people patting themselves on the back just because they re-re-rewrote the algorithm of the day (git, computing the day of the week, etc) using all sorts of programming languages to claim they were there first.
So before anyone comments that they rewrote nginx in D, let me say that we don't need D or another language on top of all others we have, and that we have plenty of problems for which there's NO solution to.
Can't we focus on these please, instead of being proficient at elementary level in 40+ idioms?
Re: Why I use the D programming language for scripting (2021)
#5I've never given D a fair shake before, so my opinion of it is very weakly held, but up until now I've always thought of it as C++ with even more piles of crap bolted on. Reading the examples here makes me think that I was wrong and that I should give it a real try, because this looks like a sufficiently elegant language that I would actually want to use.
Re: Why I use the D programming language for scripting (2021)
#6Given that D Go Rust etc. are all Turing complete, there's no difference on their ability to compute (perform) a function. The only difference is how easy is, and how much cr*p you need to suffer in the process. Yet I see here people patting themselves on the back just because they re-re-rewrote the algorithm of the day (git, computing the day of the week, etc) using all sorts of programming languages to claim they w…
That, and the fact that Turing-completeness isn't really a useful concept in real life since we don't have infinite tapes with writing heads taped on top of them. In real life, a program will be more efficient if the language it's written in (or, specifically, the implementation/compiler of that language) is smarter, even though pretty much all languages we use today are technically Turing-complete
Re: Why I use the D programming language for scripting (2021)
#7I've never given D a fair shake before, so my opinion of it is very weakly held, but up until now I've always thought of it as C++ with even more piles of crap bolted on. Reading the examples here makes me think that I was wrong and that I should give it a real try, because this looks like a sufficiently elegant language that I would actually want to use.
Re: Why I use the D programming language for scripting (2021)
#8I used D for a small prototype. I wrote that same program in GO, C# and Java(native compiled with GraalVM). The CPU and RAM usage of D-lang out performed all other languages. Compiled binary size: D-Lang : 450KB Go : 2 MB C#(.NET) : 8 MB Java-GraalVM: 9 MB D-Lang CPU & RAM Usage is also less than GO. Unfortunately D-Lang is not popular, not many libraries available.
Re: Why I use the D programming language for scripting (2021)
#9Re: Why I use the D programming language for scripting (2021)
#10Given that D Go Rust etc. are all Turing complete, there's no difference on their ability to compute (perform) a function. The only difference is how easy is, and how much cr*p you need to suffer in the process. Yet I see here people patting themselves on the back just because they re-re-rewrote the algorithm of the day (git, computing the day of the week, etc) using all sorts of programming languages to claim they w…
In other words you’re severely underestimating just how much gains in easiness and reductions in suffering can contribute towards (eventually) solving the solvable subset of those problems… never mind just how significant some of those quality of life improvements can be between existing languages (and completely ignoring the potential scope of improvements not yet found in extant languages).
What if the solution to [insert sufficiently pernicious problem here] simply cannot be expressed in a human-useable fashion in a merely Turing-complete language? Having just the ability to compute a solution doesn’t mean you have the ability to understand (much less use or build atop) a solution.