photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

246
active users

#clang

1 post1 participant0 posts today
mgorny-nyan (he) :autism:🙀🚂🐧<p>If anyone needed that data point, <a href="https://social.treehouse.systems/tags/Flang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Flang</span></a> build (using <a href="https://social.treehouse.systems/tags/Clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Clang</span></a> on AArch64) with -j96 peaks at 102 GiB RAM use.</p><p><a href="https://social.treehouse.systems/tags/Gentoo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gentoo</span></a></p>
Rachael Ava 💁🏻‍♀️<p>I like to think of Arch Linux in the same way the C programming language gives you the freedom to royally screw things up if you don't know what you're doing, and NixOS in the same way that the Rust programming language provides safety to prevent you from easily making stupid mistakes.</p><p><a href="https://tech.lgbt/tags/Meme" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Meme</span></a> <a href="https://tech.lgbt/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://tech.lgbt/tags/ArchLinux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ArchLinux</span></a> <a href="https://tech.lgbt/tags/NixOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NixOS</span></a> <a href="https://tech.lgbt/tags/Nix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Nix</span></a> <a href="https://tech.lgbt/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a> <a href="https://tech.lgbt/tags/CLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CLang</span></a> <a href="https://tech.lgbt/tags/CLanguage" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CLanguage</span></a> <a href="https://tech.lgbt/tags/Freedom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Freedom</span></a> <a href="https://tech.lgbt/tags/Safety" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Safety</span></a> <a href="https://tech.lgbt/tags/CC_BY_SA_40" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CC_BY_SA_40</span></a> <a href="https://tech.lgbt/tags/FOSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FOSS</span></a> <a href="https://tech.lgbt/tags/Gimp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gimp</span></a> <a href="https://tech.lgbt/tags/MadeInGimp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MadeInGimp</span></a></p>
Pat<p>What do OpenBSD people use for static analysis of C code?</p><p>Valgrind was available for a while but it seems to have been removed now</p><p>Apparently there is something called the "Clang Static Analyzer", but I'm not sure how to actually use it (it seems you have to compile your program with specific Clang flags?)</p><p>I know there are countless other bugs in my code, but its nice to see "no leaks detected" when I do some stupid shit with void pointers :)</p><p><a href="https://mastodon.sdf.org/tags/openbsd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>openbsd</span></a> <a href="https://mastodon.sdf.org/tags/c" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>c</span></a> <a href="https://mastodon.sdf.org/tags/gcc" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gcc</span></a> <a href="https://mastodon.sdf.org/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a></p>
Csepp 🌢GCC/FSF governance, whining
Paolo Amoroso<p>An interesting remark in Josep Bigorra's post on why Scheme can be used for production work:</p><blockquote><p>There’s only one truly universal ecosystem: <strong>the C ecosystem</strong>. Dynamic language modules are often just bindings to existing C libraries.</p></blockquote><p><a href="https://jointhefreeworld.org/blog/articles/lisps/scheme-and-lisps-are-great-for-production/index.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">jointhefreeworld.org/blog/arti</span><span class="invisible">cles/lisps/scheme-and-lisps-are-great-for-production/index.html</span></a></p><p><a href="https://oldbytes.space/tags/lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lisp</span></a> <a href="https://oldbytes.space/tags/scheme" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>scheme</span></a> <a href="https://oldbytes.space/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a></p>
Twoowls Elt<p><a href="https://mastodon.scot/tags/MastoPrompt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MastoPrompt</span></a> <a href="https://mastodon.scot/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a> Absolute darkness. Pain. Rippling through my body, waves crashing from every direction and nowhere all at once. I can see nothing. What just happened? Breathe. Think. Ok, systems check- it feels like I am lying an my back, pressed against cold .. urgh, wet… floor. The back of my head hurts. My back is rigid, painful, spasms locking my shoulders, my arms… I can’t feel my arms. Ok calm down. Heartbeat racing in my ears alongside the ringing, panic chattering (1/7)</p>
Maisie Summers<p>Clang clang clang went the trolley.</p><p>"Well," said the engineer, as another part fell off and clanged onto the rails, "that ain't good."</p><p><a href="https://mastodon.nz/tags/MastoPrompt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MastoPrompt</span></a> <a href="https://mastodon.nz/tags/MicroFiction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MicroFiction</span></a> <a href="https://mastodon.nz/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a></p>
Steven Cudahy<p>The <a href="https://mastodon.scot/tags/MastoPrompt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MastoPrompt</span></a> for Tuesday 24 June 2025 is:</p><p><a href="https://mastodon.scot/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a></p><p>The poem or story can include the prompt word or be about the prompt word.</p><p>@ me, if you like, or just include the <a href="https://mastodon.scot/tags/MastoPrompt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MastoPrompt</span></a> tag (to allow people to follow or filter their feeds), or keep your work to yourself - all the options are good as long as you're writing.</p><p>If you're including an image please do include alt-text if you’re able to. </p><p><a href="https://mastodon.scot/tags/Writing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Writing</span></a> <a href="https://mastodon.scot/tags/SmallPoem" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SmallPoem</span></a> <a href="https://mastodon.scot/tags/Poetry" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Poetry</span></a> <a href="https://mastodon.scot/tags/Fiction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Fiction</span></a> <a href="https://mastodon.scot/tags/MicroFiction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MicroFiction</span></a> <a href="https://mastodon.scot/tags/SmallStories" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SmallStories</span></a></p>
Felix Palmen :freebsd: :c64:<p>For two days straight, I just can't reproduce <a href="https://mastodon.bsd.cafe/tags/swad" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swad</span></a> <a href="https://mastodon.bsd.cafe/tags/crashing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>crashing</span></a> with *anything* in place (<a href="https://mastodon.bsd.cafe/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a> <a href="https://mastodon.bsd.cafe/tags/sanitizer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sanitizer</span></a> instrumentation, attached <a href="https://mastodon.bsd.cafe/tags/debugger" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>debugger</span></a> like <a href="https://mastodon.bsd.cafe/tags/lldb" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lldb</span></a>) that could give me the slightest hint what's going wrong. 😡</p><p>But it *does* crash when "unobserved". And it looks like this is happening a lot sooner (or, more often?) when using <a href="https://mastodon.bsd.cafe/tags/LibreSSL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LibreSSL</span></a> ... but I also suspect this could be a red herring in the end.</p><p>Situation reminds me of my physics teacher back at school, who used to say something in german I just can't ever forget:</p><p>"Wer misst, misst Mist."</p><p>Feeble attempt in english would be "the one who measures measures crap", it was his humorous way to bring one consequence of <a href="https://mastodon.bsd.cafe/tags/Heisenberg" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Heisenberg</span></a>'s indeterminacy principle to the point. And indeed, <a href="https://mastodon.bsd.cafe/tags/debugging" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>debugging</span></a> computer programs always suffers from similar problems...</p>
Felix Palmen :freebsd: :c64:<p>I need help. First the question: On <a href="https://mastodon.bsd.cafe/tags/FreeBSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeBSD</span></a>, with all ports built with <a href="https://mastodon.bsd.cafe/tags/LibreSSL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LibreSSL</span></a>, can I somehow use the <a href="https://mastodon.bsd.cafe/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a> <a href="https://mastodon.bsd.cafe/tags/thread" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>thread</span></a> <a href="https://mastodon.bsd.cafe/tags/sanitizer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sanitizer</span></a> on a binary actually using LibreSSL and get sane output?</p><p>What I now observe debugging <a href="https://mastodon.bsd.cafe/tags/swad" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swad</span></a>:</p><p>- A version built with <a href="https://mastodon.bsd.cafe/tags/OpenSSL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenSSL</span></a> (from base) doesn't crash. At least I tried very hard, really stressing it with <a href="https://mastodon.bsd.cafe/tags/jmeter" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jmeter</span></a>, to no avail. Built with LibreSSL, it does crash.<br>- Less relevant: the OpenSSL version also performs slightly better, but needs almost twice the RAM<br>- The thread sanitizer finds nothing to complain when built with OpenSSL<br>- It complains a lot with LibreSSL, but the reports look "fishy", e.g. it seems to intercept some OpenSSL API functions (like SHA384_Final)<br>- It even complains when running with a single-thread event loop.<br>- I use a single SSL_CTX per listening socket, creating SSL objects from it per connection ... also with multithreading; according to a few sources, this should be supported and safe.<br>- I can't imagine doing that on a *single* thread could break with LibreSSL, I mean, this would make SSL_CTX pretty much pointless<br>- I *could* imagine sharing the SSL_CTX with multiple threads to create their SSL objects from *might* not be safe with LibreSSL, but no idea how to verify as long as the thread sanitizer gives me "delusional" output 😳</p>
voxel<p>c/c++ devs of fediverse, what does your debugging workflow look like? I've used gdb manually a bit but it's quite laborious to set up each session. I need to be able to do step-through debugging with variable inspection.</p><p>[VS]Code and studio are very good for step through debugging once they're set up, but I'd rather avoid them altogether if possible, especially since you have to jump through a series of flaming hoops to get c debugging working in the non-telemetry open source version of code.</p><p>Any/all suggestions appreciated, other than 'use rust' <a href="https://merveilles.town/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://merveilles.town/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a> <a href="https://merveilles.town/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a></p>
Paolo Amoroso<p>Fabien Sanglard published a blog series on driving C compilers, i.e. running the compiler toolchain to build executable programs:</p><p><a href="https://fabiensanglard.net/dc/index.php" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">fabiensanglard.net/dc/index.ph</span><span class="invisible">p</span></a></p><p>More recently Julia Evans <span class="h-card" translate="no"><a href="https://social.jvns.ca/@b0rk" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>b0rk</span></a></span> posted on the related topic of using Make to compile C programs, which nicely complements Fabien's series:</p><p><a href="https://jvns.ca/blog/2025/06/10/how-to-compile-a-c-program/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">jvns.ca/blog/2025/06/10/how-to</span><span class="invisible">-compile-a-c-program/</span></a></p><p><a href="https://oldbytes.space/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a> <a href="https://oldbytes.space/tags/gcc" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gcc</span></a> <a href="https://oldbytes.space/tags/compilers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>compilers</span></a></p>
datenwolf<p>All I want is just a collection of <a href="https://chaos.social/tags/binutils" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>binutils</span></a>, <a href="https://chaos.social/tags/GCC" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GCC</span></a>, <a href="https://chaos.social/tags/llvm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>llvm</span></a>+<a href="https://chaos.social/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a>, <a href="https://chaos.social/tags/glibc" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>glibc</span></a> and <a href="https://chaos.social/tags/musl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>musl</span></a> that are "free standing" / relocatable, which I can pack into a <a href="https://chaos.social/tags/squashfs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>squashfs</span></a> image to carry around to my various development machines.</p><p>You'd think that for something as fundamental as compiler infrastructure with over 60 years of knowledge, the whole bootstrapping and bringup process would have been super streamlined, or at least mostly pain free by now.</p><p>Yeah, about that. IYKYK</p>
Nick Gully<p>I wonder how long until people skip the language / compiler entirely, and teach an <a href="https://mefi.social/tags/llm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>llm</span></a> to emit <a href="https://mefi.social/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a> IR or jvm bytecode from a prompt</p>
CLion Blog<p>CLion Is Now Free for Non-Commercial Use<br><a href="https://techhub.social/tags/Clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Clang</span></a> <a href="https://techhub.social/tags/CLion" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CLion</span></a> <a href="https://techhub.social/tags/News" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>News</span></a> <a href="https://techhub.social/tags/Licensing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Licensing</span></a> <a href="https://techhub.social/tags/Noncommercial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Noncommercial</span></a></p><p><a href="https://blog.jetbrains.com/clion/2025/05/clion-is-now-free-for-non-commercial-use/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.jetbrains.com/clion/2025/</span><span class="invisible">05/clion-is-now-free-for-non-commercial-use/</span></a></p>
Jonathan Arnold 🇺🇦<p>I had a couple of pretty fun days in the <a href="https://indieweb.social/tags/SaltMine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SaltMine</span></a>. On Friday, I set up a <a href="https://indieweb.social/tags/Jenkins" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Jenkins</span></a> server so that one of my projects can support Jenkins as well as <a href="https://indieweb.social/tags/Gitlab" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gitlab</span></a>. I always love learning new packages. Yesterday, I spent a lot of time in the <a href="https://indieweb.social/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a> compiler's source code trying to figure out some problems with their static analysis, either their static analysis or my understanding of it.</p>
Anders Stenberg<p>Ok help me out here. I've got two computers with the same version of<br>clang, MSVC build tools, and Windows SDK.</p><p>C++ code that calls std::pow is built with clang. Binary built on one computer calls implementation that (RAD debugger says) comes from "oss/arm-software/optimized-routines/20.05.00/src/math/exp2f.c"</p><p>Binary built on the other calls "minkernel/crts/ucrt/src/appcrt/tran/_exp2.h"</p><p>Unless I've missed something, command lines etc are the same.</p><p>How do I figure out why?</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/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a></p>
C:\KKJ\>:idle:<p>:)</p><p><a href="https://fosstodon.org/tags/GameDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GameDev</span></a> <a href="https://fosstodon.org/tags/IndieDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IndieDev</span></a> <a href="https://fosstodon.org/tags/CLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CLang</span></a> <a href="https://fosstodon.org/tags/SDL2" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SDL2</span></a> <a href="https://fosstodon.org/tags/BoomerShooter" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BoomerShooter</span></a></p>
C:\KKJ\>:idle:<p>My recent hobbies: <br>- vibe coding with agents (as a senior dev), and<br>- scanning radio frequencies and analize them (as complete noob)</p><p><a href="https://fosstodon.org/tags/FlipperZero" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FlipperZero</span></a> <a href="https://fosstodon.org/tags/AIAgent" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AIAgent</span></a> <a href="https://fosstodon.org/tags/CLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CLang</span></a> <a href="https://fosstodon.org/tags/GameDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GameDev</span></a></p>
C:\KKJ\>:idle:<p>First test of the animals 8-way sprites.</p><p><a href="https://fosstodon.org/tags/GameDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GameDev</span></a> <a href="https://fosstodon.org/tags/IndieDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IndieDev</span></a> <a href="https://fosstodon.org/tags/BoomerShooter" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BoomerShooter</span></a> <a href="https://fosstodon.org/tags/CLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CLang</span></a> <a href="https://fosstodon.org/tags/VibeCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VibeCode</span></a></p>