Live data from Hacker News

D Programming Language

dlang.org

41–50 of 278 posts

Re: D Programming Language

#42
post #3

Sigh. Ownership and borrowing are so much less baroque in D than in Rust. And compile times are superb. In a better world, we would all be using D instead of C, C++ or Rust. However in this age of Kali...

Slowly it is going to be only skills.md. I agree with the sentiment, I really like D and find a missing opportunity that it wasn't taken off regarding adoption. Most of what made D special in D is nowadays partially available in mainstream languages, making the adoption speech even harder, and lack of LLM training data doesn't help either.

My experience is that all LLMs that I have tested so far did a very good job producing D code.

I actually think that the average D code produced has been superior to the code produced for the C++ problems I tested. This may be an outlier (the problems are quite different), but the quality issues I saw on the C++ side came partially from the ease in which the language enables incompatible use of different features to achieve similar goals (e.g. smart_ptr s new/delete).

Re: D Programming Language

#43

[flagged]

> We all know... HN isn't as homogeneous as you think. By this measuring stick, half of the posts on the front page can be put into question every day.

Let's be serious, most people are regulars and this has been on the front page multiple times like constantly. And it was upvoted 4 times on new to get to the front page rapidly. It's not something new that we're all "Oh that's cool".

We also know there are tons of sock accounts.

And no half of the posts on front page can't be put in that since they aren't constantly reposted like this.

So, while there are a few people who will have learnt about this for the first time. Most of you know what it is and somehow feel like this is your chance to go look I'm smarter than Iain. And I think you've failed again.

Re: D Programming Language

#46
post #19
post #3

Earlier quoted context omitted.

Slowly it is going to be only skills.md. I agree with the sentiment, I really like D and find a missing opportunity that it wasn't taken off regarding adoption. Most of what made D special in D is nowadays partially available in mainstream languages, making the adoption speech even harder, and lack of LLM training data doesn't help either.

I work with D and LLMs do very well with it. I don't know if it could be better but it does D well enough. The problem is only working on a complex system that cannot all be held in context at once.

I based my opinion on this recent thread, https://forum.dlang.org/thread/bvteanmgrxnjiknrkeyg@forum.dl...

Which the discussion seems to imply it kind of works, but not without a few pain points.

Re: D Programming Language

#47
post #13

Earlier quoted context omitted.

Yeah, that is why carpenters are still around and no one buys Ikea.

> that is why carpenters are still around and no one buys Ikea The irony in this statement is hilarious, and perfectly sums up the reality of the situation IMO. For anyone who doesn't understand the irony: a carpenter is someone who makes things like houses, out of wood. They absolutely still fucking exist. Industrialised furniture such as IKEA sells has reduced the reliance on a workforce of cabinet makers - people…

I think you have misunderstood what a carpenter is. A carpenter is someone who makes wooden furniture (among other things).

Re: D Programming Language

#48
post #25

[flagged]

Weird post. How does one of today's 10,000 who have never heard of a subject learn about it?

All seriousness, do you honestly think this site has 10,000 new users a day? How many people do you think are on here that aren't very well informed? Honestly, I'm just wondering?

Also, do you know it only gets to front page if the hardcore that go to new upvote it? How many hardcore people don't know what D is?

Re: D Programming Language

#49

Sigh. Ownership and borrowing are so much less baroque in D than in Rust. And compile times are superb. In a better world, we would all be using D instead of C, C++ or Rust. However in this age of Kali...

OOP and ownership are two concepts that mix poorly - ownership in the presence of OOP-like constructs is never simple. The reason for that is OOP tends to favor constructs where each objects holds references to other objects, creating whole graphs, its not uncommon that from a single object, hundreds of others can be traversed. Even something so simple as calling a member function from a member function becomes incre…

It worked alright for Rust, and yes Rust does support OOP, there are many meanings to what is OOP from CS point of view.

I have ported Ray Tracing in One Weekend into Rust, while keeping the same OOP design from the tutorial, and affine types were not an impediment to interfaces, polymorphism and dynamic dispatch.

Re: D Programming Language

#50
post #29
post #26

Earlier quoted context omitted.

That's not how I remember it. Excitement for python strongly predated ML and data science. I remember python being the cool new language in 1997 when I was still in high school. Python 2.4 was already out, and O'Reilly had put several books kn the topic already it. Python was known as this almost pseudo code like language thst used indentation for blocking. MIT was considering switching to it for its introductory cla…

It was popular as a teaching language when it started out, along side BASIC or Pascal. When the Web took off, it was one of a few that took off for scripting simple backends, along side PHP, JS and Ruby. But the real explosion happened with ML.

I agree with the person you're replying to. Python was definitely already a thing before ML. The way I remember it is it started taking off as a nice scripting language that was more user friendly than Perl, the king of scripting languages at the time. The popularity gain accelerated with the proliferation of web frameworks, with Django tailgating immensely popular at the time Ruby on Rails and Flask capturing the micro-framework enthusiast crowd. At the same time the perceived ease of use and availability of numeric libraries established Python in scientific circles. By the time ML started breaking into mainstream, Python was already one of the most popular programming languages.
Post reply on HN