schmonz.com is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.

This server runs the snac software and there is no automatic sign-up process.

Search results for tag #c

[?]Wolfram wants peace »
@wolframkriesing@mastodontech.de

I am working on a project again, building the CI/CD pipeline, including running unittests for C code (C99!!!).

Seeing the architecture and (imho) well crafted coding standards I introduced a while ago in this project being adapted is quite satisfying.
I even got the feedback that a failing test saved the devs time and prevented from errors to be just found on the hardware, which in projects is always a bit more tricky than in "simple" web apps

You want help with embedded, ping me

    [?]arosano 🇩🇰 🇮🇱 »
    @arosano@mastodon.bsd.cafe

    @stefano October '83 I worked with Siemens Data and was sent with some colleages to the release event of , the Siemens Unix, and a mini computer series with that OS. Subsequently I took courses in the OS and programming. I read the first edition of "The C Programming Language" in German(!)
    I was hooked. Since then it was primarily for me.

      [?]Michael Blume »
      @BlumeEvolution@sueden.social

      @rnkpplr Mein Protest gegen den Verfall des in der erfolgt nicht, weil ich mir sicher wäre, den säkularen noch aufhalten zu können. Sondern er erfolgt aus der Sorge, dass sich eine der letzten Parteien der europäischen selbst aufgibt & damit auch dem fossilen ausliefert. Schweigen ist für mich keine Option mehr, gerade WEIL ein Scheitern denkbar geworden ist… 🤔🇩🇪🇪🇺🔥

        [?]Michael Blume »
        @BlumeEvolution@sueden.social

        Nein, Jens - als Christ, seit 30+ Jahren - Mitglied & Teil einer deutsch-türkischen Familie mit drei Kindern „sehe“ ich nicht in der Vielfalt der Menschen im ein Problem, sondern in kaputter Infrastruktur, Unrecht & deren Verharmlosung durch .

        Ihr Rechtslibertären seht in anderen Menschen offensichtlich nicht mehr das Bild Gottes, sondern nur noch Nutzwerte vs. Bedrohung. Das steht aber nicht für Capitalismus, Conzerne & Corruption. tagesspiegel.de/politik/etwas-

          [?]Profoundly Nerdy »
          @profoundlynerdy@bitbang.social

          How does one go form K&R C to hacking in the or kernel?

            #netbsd boosted

            [?]Lobsters » 🤖
            @lobsters@mastodon.social

            [?]LFA »
            @lfa@hostux.social

            TIL: NetBSD has the file NetBSD.el in /usr/share/misc/ for setting its C programming style in EMACS

              [?]Peter B. »
              @p3ter@mastodon.social

              @nixCraft Hm.
              <3h later> 💾 💻 :computerfairies:

              I wrote myself a "tool" using 3 languages (all none C#)-based to resolve and translate "proficient" to my language.

              Then I nodded & smiled, while inventing `$poems-o-code` in whitespace-and-esoteric-languages: brain-and-🤪f*ck
              meets Shakespeare;

              github.com/imihajlow/emojifuck

              Slowly coming down: From Python to Perl to Ba(t)sh - then Markup, then -down, 1-2-3-4-5 even then
              { pause(); }

              Eh...
              > What was your question again?
              > 🤓 😎 ❓

                [?]Stéphane Bortzmeyer »
                @bortzmeyer@mastodon.gougere.fr

                "warning: ‘__atomic_load_1’ writing 1 byte into a region of size 0 overflows the destination"

                C'est mauvais, ça, non ?

                ++

                  Jay 🚩 :runbsd: boosted

                  [?]LFA »
                  @lfa@hostux.social

                  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.

                    [?]Peter N. M. Hansteen »
                    @pitrh@mastodon.social

                    [?]LFA »
                    @lfa@hostux.social

                    DevLog 🧵
                    ---------------------------------
                    First steps of a pet project of mine. A Gopher server in C called Goophy. I'm making it for educational purposes and to use it myself in the (near?) future.

                    The test client is elpher a gopher / gemini client for emacs.

                    Alt...You can see on the right a terminal with the gopher server Goophy running and on the left the elpher emacs gopher client testing a simple connection to it. It shows how the client connects succesfully to the server and receives a valid response from it.

                      [?]LFA »
                      @lfa@hostux.social

                      More progress done. Some code refactor here and there, some security things like avoiding access to not authorized files and paths, gophermaps already supported... not bad at all 🤓

                      Funny story of the day: I was testing the program and I was excited because everything worked fine. Suddenly I realized a thing was working but it shouldn't. Why was it working? 🤔 Because the data I was using didn't cover that specific use case yet 😅

                        [?]LFA »
                        @lfa@hostux.social

                        You know you're not making any progress if you don't get a Segmentation Fault once in a while 😅 😂

                          [?]LFA »
                          @lfa@hostux.social

                          You also know you're making progress when valgrind output looks like this:

                          ==32514== All heap blocks were freed -- no leaks are possible
                          ==32514==
                          ==32514== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

                          Stay tuned, later in the day I'll show you current project status 😉

                            [?]LFA »
                            @lfa@hostux.social

                            As promised, here we go: in action. As you can see it's approaching an usable status.

                            Next steps: refactor more code, add a logging system and start my own gopherhole to test it in a real case scenario.

                            Alt...Video of Goophy Gopher Server in Action, loading from localhost

                              [?]LFA »
                              @lfa@hostux.social

                              Fixed my very first "buffer underflow" since the 90s 😅, refactored and improved code readability, doc comments, etc. I'm quite happy with the current status.

                              Next step: adding the logging system and removing all the debugging prints. Maybe I'll continue later, who knows... 🤓 😆

                                [?]LFA »
                                @lfa@hostux.social

                                First version of the logging system almost finished. I have to fix a few formatting things but I have a working logfile. Almost all of the debug printf have disappeared 😉

                                  [?]LFA »
                                  @lfa@hostux.social

                                  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.

                                  Screenshot of the output of Goophy's log file. It shows info messages, warning messages and error messages for different requests.

                                  Alt...Screenshot of the output of Goophy's log file. It shows info messages, warning messages and error messages for different requests.

                                    [?]LFA »
                                    @lfa@hostux.social

                                    Today I'm working on a config file system for the server. We will see how it goes 🤓

                                      Jay 🚩 :runbsd: boosted

                                      [?]LFA »
                                      @lfa@hostux.social

                                      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 😉

                                        #pkgsrc boosted

                                        [?]𝚟𝚒𝚗𝚜 »
                                        @sehnsucht@social.sdf.org

                                        ― I decided to create an alt account here to allow me
                                        to connect more easily with SDF community.

                                        My primary focus will be on tech-related things I like:
                                        on and



                                          [?]Paul »
                                          @pwaring@social.xk7.net

                                          What I like and dislike about C - my thoughts on a language that has been more resilient (in terms of sticking around and being used) than probably any other:

                                          phpdeveloper.org.uk/what-i-lik

                                            [?]Paul »
                                            @pwaring@social.xk7.net

                                            I have seen this advice on struct padding in C a few times - especially ordering fields from largest to smallest.

                                            Is there any reason why the compiler doesn't do this for you? Presumably it knows the size at compile time, because sizeof can be applied to both the fields and the struct?

                                            Or is the compiler avoiding this because you might be assuming a certain memory layout?

                                            tomscheers.github.io/2025/07/2