vitaut

Joined 12 years ago

Karma
1,365
Submissions
224
Member since
May 12
Carbon-based open sourcerer, code necromancer and a former alien. Author of C++20 std::format and http://github.com/fmtlib/fmt. Opinions are not mine.
View on Hacker News

Recent submissions

Comment · 2 months ago
The core of newer methods like yy, xjb and zmij is remarkably simple: https://vitaut.net/posts/2026/yy-dtoa/. Shortest uscale is basically Schubfach or, rather, it's variant called Teju Jagua and has 2-3 wide multiplications compared to 1 for newer methods.

The complexity is optional and comes from squeezing the last few nanoseconds =).

Comment · 5 months ago
Interviewer: Mr. Musk, I understand the wheels fell off the Cybertruck.

Musk: Well, that’s not very typical. Most vehicles are designed so the wheels don’t fall off.

Interviewer: But these ones did.

Musk: Well obviously. That’s why we recalled them. But wheel retention remains a very high priority at Tesla.

Interviewer: What caused it?

Musk: A minor component interaction that generated maximum freedom.

Interviewer: Freedom?

Musk: For the wheel.

Comment · 7 months ago
The binary bloat is also caused by unnecessary inlining and the linker eliminates most of it (but it's still annoying e.g. for godbolt). {fmt} supports a superset of std::format and std::print features including localization. stringstream's bloat is unrelated and mostly caused by large per-call binary code from concatenation-based API.
Comment · 7 months ago
Comment · 9 months ago
Modules have been working reasonably well in clang for a while now but MSVC support is indeed buggy.
Comment · 9 months ago
Comment · 9 months ago
We did see build time improvements from deploying modules at Meta.
Comment · 9 months ago
The main effect of this is that some of the conversions between char and char8_t are inefficient.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton