4 ms·
This to me is one of the best arguments for a new language that takes over the traditional role of C++ - writting programs in it is just too slow. I can't even
by tomjen3 16y ago
This to me is one of the best arguments for a new language that takes over the traditional role of C++ - writting programs in it is just too slow.
I can't even imagine what it would be like on a 100hz computer.
- papaf 16y agoIf it gets some momentum behind it then I feel GO could be that language.
- deleted 16y ago[deleted]
- antics 16y agoThat, and the fact that concurrency without garbage collection has been shown to cause brain cancer.
- pornel 16y agoAnd Walter, of course, has his answer to this. dmd is very fast (IIRC according to Walter it's faster than Google Go compiler) thanks to parallel compilation, asynchronous I/O, etc. enabled by design of D.
- jsyedidia 16y agoD and Go are the two languages poised to take over the roles of C and C++. They both have very fast compilers and numerous other advantages compared with C and/or C++. I've looked at both of them quite carefully, and decided that D works better for me (an important factor for me though was that D2 recently stabilized with the publication a couple months ago of Andrei Alexandrescu's excellent new book "The D programming language"). There's an interesting recent thread debating the merits of the two languages at the golang-nuts mailing list.
- rubashov 16y ago> languages poised to take over the roles of C and C++ D has been around for ages, during which time C++ usage has grown quite a lot, essentially at the expense of C and assembly. First of all, I don't get the sense people are actually casting about for a C++ replacement. Secondly, garbage collection makes D a non-starter in probably over half the areas C++ is used.
- Locke1689 16y agoIIRC, D has optional manual memory management.
- Abscissa 16y agoManual memory management is always possible in D, and if you really need to, the GC can be ripped out.
- jsyedidia 16y agoGiven that Andrei Alexandrescu, who is one of the best-known C++ programmers in the world, co-designed (with Walter Bright) the new version of D, I would say that there are at least some C++ programmers looking for a better language. I think there's also a lot of C programmers looking for a better language but unwilling to deal with C++ (I'm in that category myself). Garbage collection in D is optional.
- rubashov 16y agoI'm not poo-pooing D at all, it just it seems to compete more with Java/C# than C++. C++ is now really for closer to the metal, where garbage collection is truly a non-starter and nobody cares that std::string is awkward because they don't use it.
- 1amzave 16y agoTo be fair, I can't think of much that wouldn't be painfully slow on a 100Hz CPU.