fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

8.8K
active users

#cpp

53 posts27 participants0 posts today
meetingcpp<p><a href="https://mastodon.online/tags/CppPollOfToday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CppPollOfToday</span></a>: With which compiler do you use modules?<br><a href="https://meetingcpp.com/mcpp/survey/?q=95" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">meetingcpp.com/mcpp/survey/?q=</span><span class="invisible">95</span></a><br><a href="https://mastodon.online/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a><br><a href="https://mastodon.online/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a></p>
mort<p>Uh. Why does initializing a C++ 'std::array' with an initializer list work differently from initializing a 'std::vector' or a C array with an initializer list?</p><p>For the std::array, the compiler complains that it can't initialize a pair from an int, as if it treats '{1, 2}' as its own array. It works with an extra pair of braces that's not necessary for std::vector and C arrays.</p><p>What dark corner of C++ initialization rules have I missed </p><p><a href="https://godbolt.org/z/nGTejaG6T" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">godbolt.org/z/nGTejaG6T</span><span class="invisible"></span></a></p><p><a href="https://floss.social/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a> <a href="https://floss.social/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a> <a href="https://floss.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
meetingcpp<p>Book of the Day: Professional C++, 6th Edition by Marc Gregoire<br><a href="https://meetingcpp.com/mcpp/books/book.php?hash=8f9b630d053cf6e256f5604bf6bac30fccfb2c66" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">meetingcpp.com/mcpp/books/book</span><span class="invisible">.php?hash=8f9b630d053cf6e256f5604bf6bac30fccfb2c66</span></a><br><a href="https://mastodon.online/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a><br><a href="https://mastodon.online/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a></p>
meetingcpp<p>Meeting C++ 2025 featured talk of the day: Mathew Benson - Command Line C++ Development<br><a href="https://meetingcpp.com/mcpp/schedule/talkview.php?th=6fe5de64bfc27c43abe0e28b87556362916fd3da" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">meetingcpp.com/mcpp/schedule/t</span><span class="invisible">alkview.php?th=6fe5de64bfc27c43abe0e28b87556362916fd3da</span></a><br><a href="https://mastodon.online/tags/meetingcpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>meetingcpp</span></a><br><a href="https://mastodon.online/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a><br><a href="https://mastodon.online/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a></p>
Aurimas Černius<p>Out of almost unused C++ keywords the lest stupid one is "not". I probably still won't use it, but I think it's better that "!" simply due to being more visible, more standing out in the code, harder to miss.</p><p>Most stupid ones are "bitand" and "bitor". Can't imagine anyone writing</p><p>x bitand y</p><p>instead of</p><p>x &amp; y</p><p><a href="https://floss.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://floss.social/tags/Cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cpp</span></a></p>
रञ्जित (Ranjit Mathew)<p>“Losing Language Features: Some Stories About Disjoint Unions”, Graydon Hoare (<a href="https://graydon2.dreamwidth.org/318788.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">graydon2.dreamwidth.org/318788</span><span class="invisible">.html</span></a>, which 403s for me, so <a href="https://archive.is/oTbMW" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">archive.is/oTbMW</span><span class="invisible"></span></a>).</p><p>On HN: <a href="https://news.ycombinator.com/item?id=44605245" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">news.ycombinator.com/item?id=4</span><span class="invisible">4605245</span></a></p><p><a href="https://mastodon.social/tags/PLDI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PLDI</span></a> <a href="https://mastodon.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://mastodon.social/tags/Variants" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Variants</span></a> <a href="https://mastodon.social/tags/DisjointUnions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DisjointUnions</span></a> <a href="https://mastodon.social/tags/TaggedUnions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TaggedUnions</span></a> <a href="https://mastodon.social/tags/SumTypes" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SumTypes</span></a> <a href="https://mastodon.social/tags/Mesa" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Mesa</span></a> <a href="https://mastodon.social/tags/CPP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CPP</span></a></p>
meetingcpp<p>Format your own type (Part 1)<br><a href="https://www.sandordargo.com/blog/2025/07/23/format-your-own-type-part-1" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">sandordargo.com/blog/2025/07/2</span><span class="invisible">3/format-your-own-type-part-1</span></a><br><a href="https://mastodon.online/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a><br><a href="https://mastodon.online/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a></p>
Andreas Fertig<p>I will be speaking at Meeting C++ 2025! The talk's title is "Embedded-Friendly C++: Features That Make a Difference". Come and join me there!</p><p><a href="https://mas.to/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a> <a href="https://mas.to/tags/cpp20" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp20</span></a> <a href="https://mas.to/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a></p>
Stéphane Charette 🇨🇦<p>I knew writing a tool to export the Darknet/YOLO weights to the ONNX open format would be complicated. ONNX is a beast.</p><p>But even knowing that before starting this latest project, I badly estimated the effort required. There is zero documentation on the Darknet/YOLO internal .weights format. And the same amount of documentation on how to retrofit Darknet's weights and config into the ONNX protocol buffers. <a href="https://mstdn.ca/tags/darknet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>darknet</span></a> <a href="https://mstdn.ca/tags/yolo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>yolo</span></a> <a href="https://mstdn.ca/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a></p>
ACCUConf<p><a href="https://youtu.be/u73ZB_vml_c" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">youtu.be/u73ZB_vml_c</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://mastodon.social/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a> <a href="https://mastodon.social/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
meetingcpp<p><a href="https://mastodon.online/tags/CppPollOfToday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CppPollOfToday</span></a>: Do you use AI Tooling in your work for coding C++?<br><a href="https://meetingcpp.com/mcpp/survey/?q=94" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">meetingcpp.com/mcpp/survey/?q=</span><span class="invisible">94</span></a><br><a href="https://mastodon.online/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a><br><a href="https://mastodon.online/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a></p>
Stefano Cristiano<p>I have been removing many inter-dependencies between Sane C++ "Libraries" (mainly Strings/Memory/Containers)</p><p>The following libraries do not allocate anymore! 🎉</p><p>✅ Async<br>✅ File<br>✅ FileSystem<br>✅ FileSystemWatcher<br>✅ FileSystemIterator<br>✅ Process<br>✅ Socket</p><p>See: <a href="https://pagghiu.github.io/SaneCppLibraries/page_dependencies.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">pagghiu.github.io/SaneCppLibra</span><span class="invisible">ries/page_dependencies.html</span></a></p><p>I wonder if I should capitalize on this by distributing them as isolated single file libraries...</p><p><a href="https://mastodon.gamedev.place/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a> <a href="https://mastodon.gamedev.place/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
meetingcpp<p>Book of the Day: Notebook C++: Tips and Tricks with Templates by Andreas Fertig<br><a href="https://meetingcpp.com/mcpp/books/book.php?hash=0292a4851803cd5a06771cabfe0729aea6b03aa2" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">meetingcpp.com/mcpp/books/book</span><span class="invisible">.php?hash=0292a4851803cd5a06771cabfe0729aea6b03aa2</span></a><br><a href="https://mastodon.online/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a><br><a href="https://mastodon.online/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a></p>
Gareth Lloyd (He/him)<p>I spent all day digging into code to discover and fix this issue.</p><p>auto make_func(int v) {<br /> auto f1 = [&amp;] { return v; }; // OK<br /> auto f2 = [=] { return f1(); }; // OK<br /> return f2; // DANGER (has reference to local `v`)<br />}</p><p>int main() {<br /> auto f = make_func(42);<br /> return f();<br />}</p><p>I&#39;m glad I found it, but is there any tooling that would save future me from spending so much time?</p><p><a href="https://fosstodon.org/tags/programming" class="mention hashtag" rel="tag">#<span>programming</span></a> <a href="https://fosstodon.org/tags/cpp" class="mention hashtag" rel="tag">#<span>cpp</span></a> <a href="https://fosstodon.org/tags/cplusplus" class="mention hashtag" rel="tag">#<span>cplusplus</span></a></p>
meetingcpp<p>Meeting C++ 2025 featured talk of the day: andrew drakeford - The Missing Step: Making Data Oriented Design One Million Times Faster<br><a href="https://meetingcpp.com/mcpp/schedule/talkview.php?th=60f831827b3cc25a7210c20d67e4992e08775601" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">meetingcpp.com/mcpp/schedule/t</span><span class="invisible">alkview.php?th=60f831827b3cc25a7210c20d67e4992e08775601</span></a><br><a href="https://mastodon.online/tags/meetingcpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>meetingcpp</span></a><br><a href="https://mastodon.online/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a><br><a href="https://mastodon.online/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a></p>
Sjoerd Dost<p>Ported whiskers support to my dynamicland clone. </p><p>Golang handles tag detection via CGO and apriltag, and Guile Scheme handles realtalk + drawing logic using opencv.</p><p><a href="https://masto.nu/tags/go" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>go</span></a> <a href="https://masto.nu/tags/cgo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cgo</span></a> <a href="https://masto.nu/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a> <a href="https://masto.nu/tags/guile" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>guile</span></a> <a href="https://masto.nu/tags/opencv" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opencv</span></a> <a href="https://masto.nu/tags/apriltag" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>apriltag</span></a></p>
meetingcpp<p>Jonas Minnberg: Things Programmers Have Said<br><a href="https://www.youtube.com/watch?v=p8W4NCTkhI0" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">youtube.com/watch?v=p8W4NCTkhI0</span><span class="invisible"></span></a><br><a href="https://mastodon.online/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a><br><a href="https://mastodon.online/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a></p>
ACCUConf<p><a href="https://youtu.be/u73ZB_vml_c" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">youtu.be/u73ZB_vml_c</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://mastodon.social/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a> <a href="https://mastodon.social/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
meetingcpp<p>C++ is (nearly) all you need for HPC<br><a href="https://www.youtube.com/watch?v=DjMccIx5LK4" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">youtube.com/watch?v=DjMccIx5LK4</span><span class="invisible"></span></a><br><a href="https://mastodon.online/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a><br><a href="https://mastodon.online/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a></p>
meetingcpp<p><a href="https://mastodon.online/tags/CppPollOfToday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CppPollOfToday</span></a>: Which C++ Standards do you use the most at work currently?<br><a href="https://meetingcpp.com/mcpp/survey/?q=22" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">meetingcpp.com/mcpp/survey/?q=</span><span class="invisible">22</span></a><br><a href="https://mastodon.online/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a><br><a href="https://mastodon.online/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a></p>