veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

240
active users

#undefinedbehaviour

0 posts0 participants0 posts today
C++Now<p>C++Now 2025 SESSION ANNOUNCEMENT: Undefined Behavior From the Compiler’s Perspective by Shachar Shemesh</p><p><a href="https://schedule.cppnow.org/session/2025/undefined-behavior-from-the-compilers-perspective/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">schedule.cppnow.org/session/20</span><span class="invisible">25/undefined-behavior-from-the-compilers-perspective/</span></a></p><p>Register now at <a href="https://cppnow.org/registration/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">cppnow.org/registration/</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/compiler" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>compiler</span></a> <a href="https://mastodon.social/tags/undefinedbehaviour" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>undefinedbehaviour</span></a></p>
Stephane L Rolland-Brabant ⁂⧖⏚<p><span class="h-card" translate="no"><a href="https://toot.community/@chakie" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>chakie</span></a></span> </p><p>I personnally never count upon miracle segfaults to detect errors, as it is simply Undefined Behaviour <a href="https://mathstodon.xyz/tags/undefinedbehaviour" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>undefinedbehaviour</span></a> in C/C++, so you cannot know what happens in such cases.</p><p>But you are right, often you can get segfaults to indicate you early that a corruption is happening.</p><p>It remains a powerful technique for optimizing speed. Often, one cannot gain on every level ;-)</p><p>I was just talking about it. It is not a recommended way to do it.</p><p>If your allocation is not in a bottleneck, it is a fuss you don't have to worry about.</p>