Better HN
topnewbestaskshowjobs
Log inSign up

daveds

2 karma · joined Nov 9, 2010 (16y ago) · 1 submissions

Submissions

comment 16y ago · link · parent

I love D because it has what i like about C and C++: it makes it easy to reason about the performance and memory requirements of code accurately. I can mentally translate snippets of code into assembly much like the compiler would. And that's what I like about programming, that you tell the hardware how to solve a particular problem and implement a certain algorithm. D retains that property while letting you use more higher-level abstractions than C++ 0x, and nicer syntax in things like templates.

When I first went from C++ to D I was very sceptical about it using garbage collection, but accepted it since you're not forced to use it. (I thought R-value references had to be the ultimate solution.) But now I'm quite sold on it. I think it manages memory in a more elegant way than R-value references and reference-counting do, and you can get closures and efficient strings and arrays for free.