3 ms·
Since when does libc include "rich" things like regex, serialization and http?? Even C++ standard lib is mostly containers and algorithms. libc is barely a sta
by floatboth 7y ago
Since when does libc include "rich" things like regex, serialization and http?? Even C++ standard lib is mostly containers and algorithms.
libc is barely a standard library, it's almost nothing.
- pjmlp 7y agoC might not include those specific examples, but POSIX + libc already include plenty of stuff. C++ surely does include regex, with serialisation and http scheduled for C++23, or with luck with a TR as intermediate delivery. Although serialisation depends on static reflection being finalized as well.
- Ygg2 7y agoStill, it implies C fails, because you don't get POSIX on all available platforms. I think the definition is meaningless. Rust spends huge amount of resources to test itself and its surrounding ecosystem on tier 1 platforms. I'm fairly certain regex from c++ std will run like crap, if at all on something with 4MB of RAM.
- pjmlp 7y agoExcept the small detail that C's POSIX support is much wider than Rust's tier 1 platforms. I am fairly certain that without profiling and defining a test configuration for a set of specific C++ compilers / standard C++ library I won't assert anything about std::regex performance with 4 MB of RAM.
- Ygg2 7y agoPerhaps. But you're comparing a 26 year old standard for a 47 year old language, to a language that's been stable for 4 years.