| |
| Posted by Leandro Lucarella in reply to Leandro Lucarella | PermalinkReply |
|
Leandro Lucarella
Posted in reply to Leandro Lucarella
| Here is another thumbs up from Yossi Kreinin to D:
http://www.yosefk.com/blog/i-love-globals-or-google-core-dump.html
Here is the part when he mentions D:
"
The program is in D, because of the “instantaneous” bit, and because D is
one of the best choices available today if you care about both speed and
brevity. Look at this: lowerBound!("a.st_value <= b")(ssyms, addr) does a
binary search for addr in the sorted ssyms array. As brief as it gets out
of the box with any language and standard library, isn’t it? The string is
compiled statically into the instantiation of the lowerBound template; a &
b are the arguments of the anonymous function represented by the string.
Readable. Short. Fast. Easy to use - garbage-collected array outputs in
functions like filter(), error messages to the point - that’s why a decent
grammar is a good thing even if you aren’t the compiler writer. Looks a
lot like C++, braces, static typing, everything. Thus easy to pimp in a
3GL environment, in particular, a C++ environment. You can download the
Digital Mars D compiler for Linux, or wait for C++0x to solve 15% of the
problems with <algorithm> by introducing worse problems.
By the way, the std.algorithm module, the one with the sort, filter, lowerBound and similar functions, is by Andrei Alexandrescu, of Modern C++ Design fame. How is it possible that his stuff in D is so yummy while his implementation of similar things in C++ is equally icky? Because C++ is to D what proper fixation is to anaesthesia. There, I bet you saw it coming. "
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
He andáu muchos caminos, muchos caminos he andáu, Chile tiene el buen vino y Suecia, el bacalao. Esta'o Unido tiene el hot do', Cuba tiene el mojito, Guatemala, el cornalito y Brasil la feishoada.
|