Blogs / Personal blogs

Jonathan Müller

foonathan.net

Thoughts from a C++ library developer.

Popular posts
4
Total points
551
HN comments
548
Rank
#4,590 personal

Visit foonathan.net → RSS feedOn Hacker News May 2017 – Sep 2022

Software Engineering 4Programming Languages 4

3

New integer types I’d like to see

(Most) C++ implementations provide at least 8, 16, 32, and 64-bit signed and unsigned integer types. There are annoying implicit conversions, discussions about undefined behavior on overflow (some think it’s too much UB, others think it’s not enough), but for the most part they do the job well. Newer languages like…

4

Constexpr is a Platform (2020)

Let me share a useful insight with you: constexpr is a platform. Just like you write code that targets Windows or a microcontroller, you write code that targets compile-time execution. In both cases you restrict yourself to the subset of C++ that works on your target platform, use conditional compilation if your code…