"How can I detect which C++ compiler is used?"
"Oh, that's easy:"
(via quuxplusone.github.io/blog/2021/01/1…)
Jonathan Müller
10.3K posts
C++, compilers, and programming languages. Software engineer @LSEGplc, chair for std::ranges at @isocpp.
@[email protected]
- I'm currently optimizing lexy's JSON parser example. I've now reached a point where it is 12000% faster than all other JSON libraries. The trick is to consider all characters whitespace and skip them...
- "Family name contains invalid characters." - No, my family name does not contain invalid characters by definition. Your program just sucks.
- To countless people in the reddit comment section: No, somebody implementing their own language after they've failed to change an existing one, isn't throwing a tantrum. Programming languages are tools. If they don't work for you, switch. If no alternative exists, invent one.
- New blog post: I wrote a compile-time Brainfuck compiler that generates optimized assembly. The best part: I didn't need to do anything, I've tricked clang into doing it for me. Technique: Compile Time Code Generation and Optimization foonathan.net/2022/01/compil… #cpp #cplusplus
- "We have strlen() to get the length of a string, strcpy() to copy a string, and strcmp() to compare a string. How should we call the function to search inside a string?" "Eh, I don't know. str..., str..." "Perfect, thanks!"
- I have written a new library! lexy: a C++ parser combinator library github.com/foonathan/lexy #cpp #cplusplus
- The "fun" thing about C++ is that static_cast<decltype((x))>(x) is a no-op, but static_cast<decltype(x)>(x) isn't.
- To improve my personal development experience I will at some point in my life write 1. My own programming language. 2. My own text editor/IDE. 3. My own OS and/or window manager. The question is: in what order?










