While fighting with the problems of the C++, I would like to have some long term plan. What other language/ide could I use for the next big project I would do.
The problems of C++:
- Bad include system that makes big projects compile much longer than it could.
- Lot of other problems are solved by abusing templates (boost), but it extends the problem with includes and compilation times even more.
- A lot of these problems improved by C++11, 14 (for example, just moving from BOOST_FOREACH to C++11 range based for each improved the compile time by several percent), but it still isn't enough.
The problems of other languages I was considering:
- For truly good performance, I need to have control of the memory allocation/dealocation strategies in critical sections, so language with garbage collectors are not an option, especially when managing the GC is also an overhead, so languages like D, Java, C# and similar are not usable.
- As I still want to have the abstraction at least on the level of C++11, I don't see any other language anywhere.
Does this mean, I would have to create a new language? It also might be a good idea to use D and just write Garbage-collection less standard library, but I have no ideas how many pitfalls are waiting there, and if it is truly achievable to get the C++ performance this way.
Aucun commentaire:
Enregistrer un commentaire