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

This blog post was an amazing advertisement for D.


I don't agree. The comparisons are rather disingenuous as the representative examples hand-picked for the other languages are rather crude and too much verbose. For instance, the 120-loc C++ program needlessly introduces functions that run a single loc (by adding 4 or 5 loc to the bill) and add a dozen or so lines by breaking long lines.


The C++ program won the challenge of being the "most expressive C++17" program for this task ...


...and by "most expressive C++17 [program]" it actually meant this:

> So the purpose of this challenge is to write a piece of code that contains as many features of C++17 as possible, and that is as clear as possible.

...which, clearly, states that the goal was not minimize lines of code.

I bet D fanboys can find more apples-to-oranges comparisons where D comes out as the most citric alternative when compared with apples and bananas.

And by the way, the contest was organized by a couple of blogs, and the winner was a self-confessed amateur. Hardly a tour de force in C++ programming.




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: