3 ms·
Eh? C++ has always had a pretty good selection of libraries, way better than most languages (and of course, a bazillion times better than D/Rust/Ada...). Many
by snogglethorpe 14y ago
Eh? C++ has always had a pretty good selection of libraries, way better than most languages (and of course, a bazillion times better than D/Rust/Ada...).
Many library authors will choose to make a C interface instead, as that basically makes the library usable by almost any language, but C++ seems near the top when it comes to language-specific library support.
- pjmlp 14y agoIn what planet have you been leaving? What are the C++ libraries for - Networking - XML - Reflection - ORM - Database access - UI - Asynchronous programming - Make use of std::string and STL, instead of providing their own types. - Web Services - ... Don't forget that your list should provide libraries that work across multiple OS (UNIX and Windows are not enough) and multiple compilers (besides gcc, clang, msvc). The libraries also need to be compatible with the possibility that the developers compile with exceptions, RTTI enabled/disabled. Did you know that STL was actually developed in Ada and later on adopted to C++?
- bostonpete 14y agoQt provides most or all of the things in your list -- just to name one.
- pjmlp 14y agoYou forgot my requirement, in addition to the list: > Don't forget that your list should provide libraries that work across multiple OS (UNIX and Windows are not enough) and multiple compilers (besides gcc, clang, msvc). EDIT: typo
- bostonpete 14y agoI didn't forget it, I ignored it b/c it seemed unrelated to your original complaint about a lack of quality libraries. Linux/Windows/Mac support is plenty for many people. Out of curiosity, what platforms do you need to use which are unsupported by Qt but work well with other languages...?
- pjmlp 14y agoAll the UNIX systems used in Fortune 500 companies, mainframe systems and embedded devices. The consulting world is much more than just Linux/Windows/Mac.
- bostonpete 14y agoWho said anything about consulting? Your complaint was the lack of quality libraries, not the lack of quality libraries which can be used in every possible computing environment. Which languages/libraries work well in all environments?
- pjmlp 14y agoJava for one, as strange as it might seem. Most of those environments have JVMs available. Although. a few of them, like i/OS, still only have Java 5 or 6 available. Don't take me wrong I am not against C++ and do use it in some of my employer projects. Then again we need to fill our code with #ifdefs when the need to support multiple environments with different sets of compilers arises. For example, even Boost with its exhaustible list of compilers and operating systems does not support: - HP-UX - i/OS - QNX - VxWorks - Symbian (yes people still develop for them) This is just one library, it gets worse if we need to take a few proprietary libraries into the equation. Now, for doing native code programming, C++ is the best currently available language, and I wish that with C++11 and the upcoming revisions, it gets better.