3 ms·
> There is little of needless code in standard library. And what there is, believe me, over the decades was really polished. Ha ha ha ha ha ha ha ha ha ha. Lo
by jcranmer 6y ago
> There is little of needless code in standard library. And what there is, believe me, over the decades was really polished.
Ha ha ha ha ha ha ha ha ha ha.
Locales are a massive clusterfuck, basically too simple to handle localization if you actually care about it, but supports enough of it to screw you over if you don't care about it. The "wide character" support is also a nightmare. The time library support is also quite a bit wonky (years are measured as years since 1900 because Y2K is definitely not a pressing issue in 1989!).
> inline Assembly
Fun fact, here is the C specification's entire mention of inline assembly:
> The asm keyword may be used to insert assembly language directly into the translator output (6.8). The most common implementation is via a statement of the form: asm (character-string-literal);
There is no discussion of what inline assembly can and cannot do, how it interacts with the rest of the code in term of semantics, how to pass arguments to and form inline assembly, etc. You might get some of this information from the manuals of compiler implementations, but even that can be surprisingly free of necessary information. Compare this to Rust's inline assembly documentation: https://rust-lang.github.io/rfcs/2873-inline-asm.html https://rust-lang.github.io/rfcs/2873-inline-asm.html (which is more detailed than even gcc's or LLVM's inline assembly documentation).
- deleted 6y ago[deleted]
- deleted 6y ago[deleted]