Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Looks like I need to fix my binary search code!


[off-topic] While you're at it, how about integrating D with cargo? D could:

- act as a C/C++ compiler for legacy code,

- shine where Rust is weakest: strings-first apps and apps that benefit from classes,

- get us to a world where the best C++ is a frozen C++

Too tall an order?


Sadly, D has its own set of problems and design flaws. It's better than C++ in many ways, but still far from Rust in terms of solid foundation in computer science and language design. Frankly, I see no point in integrating it with Rust.

And what do you mean by Rust being weakest in these categories anyway, and why do you think it is? What are "string-first apps"? And how is not adopting inheritance-based OOP a weakness? I think, many experienced programmers, especially those familiar with ML family of languages and otherwise well-versed in different paradigms, will argue that this particular flavour of OOP is more harmful than helpful.


I admit I do not come from an academic computer science background. What I do bring to programming language design, however, is decades of experience in programming, compilers, and being on the front lines doing tech support on them.

In other words, the human factors facet of language design. D does very well as a friendly language from a human factors perspective.

A simple example of this is `+` is commonly used to mean both addition and concatenation, leading to confusion with awkward resolutions. D uses `+` for addition, and `~` for concatenation. It's been working great.

We also regularly correct errors in the design of D.


I'm not really qualified to judge what is the right feature set for a build system like dub or cargo.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: