you are viewing a single comment's thread.

view the rest of the comments →

[–]EternalSunset 5 insightful - 3 fun5 insightful - 2 fun6 insightful - 3 fun -  (2 children)

C++ is built to be fast, not pretty. You can't have something that runs as fast as assembly and still looks as clean and easy to understand as Python. Most of the features that haven't been added to C++ despite being heavily requested weren't added because they would have made the code run slower. Langs like Java and Go can still run pretty fast while looking significantly more elegant than C/C++, but C++ is still the undisputed king when it comes to raw speed and that's why it still is widely used despite being a pain to work with.

[–]Vulptex[S] 4 insightful - 1 fun4 insightful - 0 fun5 insightful - 1 fun -  (1 child)

C is as fast or faster than C++ and it's usually clean. The problem is bloat and excessive OOP.

[–][deleted] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

OOP is nonsensical for most problems in combinatorics. It took me a long time to wrap my head around this fact.