Log inSign up
Jonathan Müller
10.3K posts
user avatar
Jonathan Müller
@foonathan
C++, compilers, and programming languages. Software engineer @LSEGplc, chair for std::ranges at @isocpp. @[email protected]
Aachen, Germany
jonathanmueller.dev
Joined September 2014
69
Following
13.4K
Followers
  • user avatar
    Jonathan Müller
    @foonathan
    Jan 18, 2021
    "How can I detect which C++ compiler is used?" "Oh, that's easy:" (via quuxplusone.github.io/blog/2021/01/1…)
  • user avatar
    Jonathan Müller
    @foonathan
    Nov 27, 2022
    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...
  • user avatar
    Jonathan Müller
    @foonathan
    Apr 19, 2017
    "Family name contains invalid characters." - No, my family name does not contain invalid characters by definition. Your program just sucks.
  • user avatar
    Jonathan Müller
    @foonathan
    Jul 20, 2022
    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.
  • user avatar
    Jonathan Müller
    @foonathan
    Aug 31, 2022
    New blog post: malloc() and free() are a bad API foonathan.net/2022/08/malloc… #cpp #cplusplus
    foonathan.net
    malloc() and free() are a bad API
    If you need to allocate dynamic memory in C, you use malloc() and free(). The API is very old, and while you might want to switch to a different implementation, be it jemalloc, tcmalloc, or mimalloc,...
  • user avatar
    Jonathan Müller
    @foonathan
    Sep 20, 2023
    C++ optimization in a nutshell: stackoverflow.com/questions/5043… #cpp #cplusplus
    37K
  • user avatar
    Jonathan Müller
    @foonathan
    Jan 27, 2022
    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
    C++ code that parses and executes a Brainfuck program.
    Generated assembly from the C++ program.
  • user avatar
    Jonathan Müller
    @foonathan
    Sep 22, 2022
    I love reddit sometimes. old.reddit.com/r/rust/comment…
    Screenshot of the linked reddit comment thread.
  • user avatar
    Jonathan Müller
    @foonathan
    Jun 11, 2021
    "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!"
    strstr - Finds the first occurrence of the null-terminated byte string pointed to by substr in the null-terminated byte string pointed to by str.
  • user avatar
    Jonathan Müller
    @foonathan
    Dec 1, 2020
    I have written a new library! lexy: a C++ parser combinator library github.com/foonathan/lexy #cpp #cplusplus
    IPv4 parser using lexy
  • user avatar
    Jonathan Müller
    @foonathan
    Nov 21, 2023
    The "fun" thing about C++ is that static_cast<decltype((x))>(x) is a no-op, but static_cast<decltype(x)>(x) isn't.
    29K
  • user avatar
    Jonathan Müller
    @foonathan
    Feb 10, 2023
    UB is fun: godbolt.org/z/qqzE1Y9j5 Credit to u/geekfolk. #cpp #cplusplus
    Screenshot of linked godbolt.
    33K
  • user avatar
    Jonathan Müller
    @foonathan
    Jul 7, 2023
    My day so far.
    Bernie Sanders disappointed meme

1. Bernie Sanders annoyed - You run into a C++ language defect.
2. Berni Sanders excited - Barry has a proposal with a fix.
3. Bernie Sanders even more excited - It is accepted as a DR (defect report).
4. Bernie Sanders disappointed - No compiler implements it yet.
    11K
  • user avatar
    Jonathan Müller
    @foonathan
    Sep 8, 2023
    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?
    44K

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up