mastodon.ie is one of the many independent Mastodon servers you can use to participate in the fediverse.
Irish Mastodon - run from Ireland, we welcome all who respect the community rules and members.

Administered by:

Server stats:

1.6K
active users

#cprogramming

4 posts4 participants3 posts today
Luke Trevorrow<p>Today I shall mostly be hacking C code again. It feels like the 1990s again! <a href="https://fosstodon.org/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://fosstodon.org/tags/c" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>c</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/nostalgia" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nostalgia</span></a> <a href="https://fosstodon.org/tags/CProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CProgramming</span></a></p>
Pyrzout :vm:<p>Tips for C Programming from Nic Barker <a href="https://hackaday.com/2025/10/07/tips-for-c-programming-from-nic-barker/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">hackaday.com/2025/10/07/tips-f</span><span class="invisible">or-c-programming-from-nic-barker/</span></a> <a href="https://social.skynetcloud.site/tags/SoftwareDevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareDevelopment</span></a> <a href="https://social.skynetcloud.site/tags/cprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cprogramming</span></a> <a href="https://social.skynetcloud.site/tags/tips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tips</span></a></p>

🎉 Last week's little win

Figured out how to cross-compile my C projects and libraries like Raylib & SDL for #Windows under my #Linux system! 🥳

Now I can make builds of my game for my graphics artist (who uses Windows) without me having to actually boot Windows. 🙂

(Currently I am just putting all of my findings into my own growing Makefile. At some point I might switch to CMake, but at least right now, I feel that I learn more by doing it this way.)

🌀 C Programming

Finally found out how to get a warning on the command line if a variable in my C program could be const! 🥳

It works via clang-tidy:

clang-tidy --checks='-*,misc-const-correctness' main.c -- -xc++

The important trick is the "-xc++" flag at the end, because for some reason, clang-tidy only wants to run this check on C++ files.

The flag convinces it to treat a C file as a C++ file, and the check works! 🙂

#c#clang#clanguage
Replied in thread

New versión of Goophy up and running my gopher hole.

Today:
- Fixed a few bugs. I hope it will no longer dies. Ok it only happened twice, but one time is already too much for my taste 😅
- Improved the logs
- Allowed some requests to pass, according to what I've seen in the logs.
- Improved requests validation according to what I've seen in the logs. Requests like http are detected early so there is less waste of resources.

Replied in thread

After almost 2 days online I can say that Goophy is doing well. I already have my gopherhole with more content online and I made it bilingual English / Spanish but I don't plan to keep 1-1 translations of everything. We will see.

Some screenshots below for showing it up & running. The client used is Lagrange Gemini / Gopher client.

You can visit my gopherhole at gopher://lucio.albenga.es

Replied in thread

A new gopher hole and gopher server are born!! 🎉

Finally the first private beta of Goophy is up and running on the Raspberry Pi with NetBSD. You can check it out with your favorite gopher client at:
gopher://lucio.albenga.es

I promise I'll put more content in the following days, but right now I'm excited to have it online 😅 Let me know if you find any bugs.

👉 Neuer Blog: „time_t Cast Away: Bits über Bord und der Y2K38 Bug ist zurück“

Die Umstellung auf 64-Bit-time_t gilt als Lösung für das Year 2038 Problem. Doch Direct Casts machen den Fix schnell unwirksam – und schicken uns zurück ins Jahr 1901.

Auf das Wortspiel bin ich ein bisschen stolz ☺️

🔗 y2k38.ch/time-t-cast-y2k38-bug/

Y2k38 - Das Jahr 2038 Problem · time_t Cast Away: Y2K38 Bug durch Bits über BordDirect time_t Casts werfen Bits über Bord – und holen den Y2K38 Bug zurück. Warum 64-Bit-time_t allein die Epochalypse nicht verhindert.
Replied in thread

Mission accomplished!
Config file works as expected and with this I'm ready for a first private beta 🥳

Next step: installing NetBSD on my Raspberry Pi 2 for putting this online and see what happens 😉

After writing so much software in C# and TypeScript during the past years, I felt a bit burned out.

- Decided I need a little "OOP detox"
- Dived a little into Rust for a while
- Result: great language, but did not fully click in some aspects

So now I am doing the only sensible thing:

Getting back into C. 😄

#C#Clang#oopDetox
Replied in thread

Finally I have a working logging system. Yesterday I had almost completed a first version but today I thought, wouldn’t it be better if…? And I jumped at it 😅

There is room for improvement but I'm quite happy with it right now. I hope to have my private beta ready this week.