Posts by vitaut@mastodon.social
 (DIR) Post #B1cLTZKPij1qllK7KS by vitaut@mastodon.social
       2025-12-25T19:39:27Z
       
       0 likes, 0 repeats
       
       For comparison, this is how std::to_chars is supposed to be used:  char buf[25];  std::to_chars_result result =    std::to_chars(buf, buf + sizeof(buf), 6.62607015e-34);  if (result.ec != std::errc()) {    // ...  }
       
 (DIR) Post #B1cMIzpqvYQlkSYEwC by vitaut@mastodon.social
       2025-12-25T20:13:59Z
       
       0 likes, 0 repeats
       
       @divVerent there was no standard alternative to get the shortest representation in C or C++ before it
       
 (DIR) Post #B1dpFksx97taLFlgKe by vitaut@mastodon.social
       2025-12-26T13:13:05Z
       
       0 likes, 0 repeats
       
       @divVerent I actually fixed to_string to do exactly that https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2587r2.html
       
 (DIR) Post #B1e7uRN0PH8erdNIZc by vitaut@mastodon.social
       2022-12-18T20:42:38Z
       
       0 likes, 0 repeats
       
       We have been encouraging people to support victims of political repressions in Belarus but Ukrainians need our help more now. Please donate: https://stopputin.net#Ukraine
       
 (DIR) Post #B1e8NNVBrneJGX0AOu by vitaut@mastodon.social
       2025-12-25T23:39:21Z
       
       0 likes, 0 repeats
       
       Linux machine that I built in 2019 is still faster than my Apple M1 laptop but only barely.
       
 (DIR) Post #B1e8NTDgbnDEzyrGwy by vitaut@mastodon.social
       2025-12-25T23:39:50Z
       
       0 likes, 0 repeats
       
       In other words: it's time for an upgrade =)
       
 (DIR) Post #B1eALw52XCvLpyD596 by vitaut@mastodon.social
       2025-12-26T17:09:33Z
       
       0 likes, 0 repeats
       
       @divVerent I used to run Linux on my MacBook Pro but then became too lazy =).
       
 (DIR) Post #B26LMlc29mlMdVR3ui by vitaut@mastodon.social
       2026-01-08T21:13:49Z
       
       0 likes, 1 repeats
       
       Tunnel vision is great if you are in a tunnel
       
 (DIR) Post #B2BH53faqwgPOxCUOe by vitaut@mastodon.social
       2026-01-11T15:44:41Z
       
       0 likes, 0 repeats
       
       Storing constants as int32x4_t and int16x8_t instead of int32_t[4] and int16_t[8] gave almost 3% perf boost, wat?
       
 (DIR) Post #B2BH54usDcV3GdMCqu by vitaut@mastodon.social
       2026-01-11T16:20:11Z
       
       1 likes, 0 repeats
       
       All the recent algorithmic improvements turned out to be negligible compared to micro-optimizations from SIMD and reducing conditional branching.
       
 (DIR) Post #B2HpNTMecfKPh63Ntg by vitaut@mastodon.social
       2026-01-14T19:14:27Z
       
       0 likes, 1 repeats
       
       The C++ committee makes a great case for Rust.
       
 (DIR) Post #B2LmKyYmev80LYgVcW by vitaut@mastodon.social
       2026-01-16T17:15:47Z
       
       0 likes, 1 repeats
       
       I try to understand memory consistency and you won’t believe what happens before!
       
 (DIR) Post #B2Y5gfssjCdNYdDORE by vitaut@mastodon.social
       2026-01-22T14:13:27Z
       
       1 likes, 0 repeats
       
       Żmij 1.0 "exponentially fast" released: a C++ double-to-string library delivering shortest correctly-rounded decimals ~2.8–4x faster than Ryū https://github.com/vitaut/zmij/releases/tag/v1.0
       
 (DIR) Post #B2ehmIFgBUASWaI3Lk by vitaut@mastodon.social
       2026-01-25T15:40:15Z
       
       0 likes, 0 repeats
       
       As I expected, the C++ committee now tries to shove the std::optional<T&> into low-level APIs making an unusable mess.
       
 (DIR) Post #B2ehmKyQ478yxvEoMa by vitaut@mastodon.social
       2026-01-25T18:20:40Z
       
       0 likes, 0 repeats
       
       @joel_falcou I had the same thought recently.
       
 (DIR) Post #B2ehmLqIpmFHf2RqLo by vitaut@mastodon.social
       2026-01-25T18:21:18Z
       
       0 likes, 0 repeats
       
       @joel_falcou Frankly even removing most of the things would be beneficial for build speed and safety.
       
 (DIR) Post #B2hRclL2Agfa2v6kuO by vitaut@mastodon.social
       2026-01-27T04:10:43Z
       
       0 likes, 1 repeats
       
       Luna helps with lego
       
 (DIR) Post #B2mBsG8vIO1gS7bu9g by vitaut@mastodon.social
       2026-01-28T22:40:53Z
       
       1 likes, 1 repeats
       
       With great power comes great electricity bill.
       
 (DIR) Post #B2nB6TExUVcOKbbcum by vitaut@mastodon.social
       2026-01-29T22:35:15Z
       
       0 likes, 1 repeats
       
       Glad to see I'm not the only one writing C++ code like this.
       
 (DIR) Post #B2nB6YkL1GgpPNKG1I by vitaut@mastodon.social
       2026-01-29T22:36:07Z
       
       0 likes, 0 repeats
       
       but Hipster News are very confused