4 ms·
It's certainly a step up from C++ or Java. Notably, it has anonymous functions and lexical closures. I'm not a big fan of static typing though, especially with
by Zak 19y ago
It's certainly a step up from C++ or Java. Notably, it has anonymous functions and lexical closures. I'm not a big fan of static typing though, especially with explicit type declarations, but I'd certainly like to see D replace C++.
If speed is a concern, everybody's favorite language benchmark[0] shows D being about 20% slower than GCC. Within 100% of GCC are implementations of ML, Ocaml, Haskell, Common Lisp and Scala.
So what should you use if you want speed with your power? My first recommendation would be a good profiler.
[0] http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=all http://shootout.alioth.debian.org/gp4/benchmark.php?test=all...