Repository navigation
feat(post): accumulate with 0 over doubles returns an int (25 Dec) - #290
Open
filipsajdak wants to merge 2 commits into
Open
filipsajdak wants to merge 2 commits into
filipsajdak wants to merge 2 commits into
Conversation
… fold_left does not A short post that answers a LinkedIn sum-three-ways picture in C++: the initial value types the accumulate result, GCC and Clang stay silent, MSVC (C4244) and clang-tidy warn, the three sums compile to the same loop for int, and std::saturating_add covers the overflow case. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ju4yEXENcZNaSNEQWEri2X
…late initial-value post Insight card, captions and OG image for the short on std::accumulate with an int 0 over doubles versus std::ranges::fold_left. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ju4yEXENcZNaSNEQWEri2X
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the 25 Dec 2026 post:
std::accumulatewith an initial0over doubles returns an int,fold_leftdoes not, and who warns.Visual: none, because the change is one post and its social cards; the cards are in social/*/accumulate-zero-truncates-doubles/.
What is in it
Verification
prose-linton the post and both captions: no ERROR.check-pubdates,check-llms-sync,check-social-renderandNODE_ENV=production npm run buildpassed in the worktree.Limits
Mutation: none, because the change is content only.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Ju4yEXENcZNaSNEQWEri2X