buc.ci 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.

Admin email
abucci@bucci.onl
Admin account
@abucci@buc.ci

Search results for tag #c

AodeRelay boosted

[?]Harry Sintonen » 🌐
@harrysintonen@infosec.exchange

Confession time. I used to write a lot of

do
{
} while (0);

blocks and then use break; to avoid goto.

As my defence, I was young and felt quite clever.

    [?]ell1e coding things » 🌐
    @ell1e@hachyderm.io

    @muhanga @xgranade I try to migrate to languages that have a no AI policy, for this reason.

    Sadly, haven't found a good modern C compiler yet that has a no AI policy. Happy for any suggestions!

    (Edit: I'm aware of zig, but for a pure C compiler it's slightly large, and they don't seem to support older systems well. E.g. last time I checked they were Windows 10 or newer only. For now they're also still using LLVM, I think.)

      AodeRelay boosted

      [?]LLMageddon » 🌐
      @lukasrotermund@social.lukasrotermund.de

      How do you trace syscalls without the full slop strace? Any other good tools without nasty LLM code?

      #strace #syscall #Zig #Ziglang #C #clang

        AodeRelay boosted

        [?]Dragon of BSDCafe [he/him] » 🌐
        @evgandr@snac.bsd.cafe

        Nice! My parser for subset of hledger syntax works on test data 🙂


        Screenshot of Emacs frame with two windows. On the left the "hledger_scanner.l" lexer describing tokens for subset of hledger syntax. And on the right the "hledger_parser.y" describing parser and grammar for subset of hledger syntax. On the middle there is an xterm window with parsed file filled with test data.

        Alt...Screenshot of Emacs frame with two windows. On the left the "hledger_scanner.l" lexer describing tokens for subset of hledger syntax. And on the right the "hledger_parser.y" describing parser and grammar for subset of hledger syntax. On the middle there is an xterm window with parsed file filled with test data.

          AodeRelay boosted

          [?]HackerWorkspace » 🌐
          @hackerworkspace@infosec.exchange

          [?]Ekaitz Zarraga 👹 » 🌐
          @ekaitz_zarraga@mastodon.social

          So GNU Mes 0.28 is out. I wrote a blog post about it.

          ekaitz.elenq.tech/fasterMes10.

          EDIT: Somebody put the story on lobsters. If you want to send some death threats, here's the link:
          lobste.rs/s/pqzdyt/gnu_mes_0_2

            AodeRelay boosted

            [?]Taylor Parizo » 🌐
            @taylorparizo@infosec.exchange

            My new hobby is learning about micrcontrollers.

            I recently bought a Pico 2W and a Pi Debug Probe to help learn C and the basics of electronic engineering.
            It's fun to be creative and I learn best with hands on tasks which makes these two skills a great pair.

            Right now I'm starting with extreme basics learning how to blink the onboard LED (it's tied to the wifi chip) and it requires me to extensively read the C SDK documentation to learn function calls.

              AodeRelay boosted

              [?]Harry Sintonen » 🌐
              @harrysintonen@infosec.exchange

              Use of setjmp()/longjmp() in code is typically a sign of laziness - and translates to "We didn't bother writing proper error handling". It's like using abort() but even worse. longjmp() out of the blue breaks the control flow of the application and easily leads to all kinds of resource leaks and state inconsistencies. The legitimate use cases for setjmp()/longjmp() are few and far between.

                AodeRelay boosted

                [?]SirWumpus 🍁🧙‍♂️⚔️ » 🌐
                @sirwumpus@tilde.zone

                @ltning
                One of the reasons (and Ruby, maybe Node) annoy me, moving up by a patch level breaks things - a patch shouldn't break anything if you follow semver rules; minor and major sure. Then there like 3 or more versions, as dependencies which is just nuts. Not a thing, but side commentary on the state of scripting software. Give me !.

                  AodeRelay boosted

                  [?]Players' Patchwork Theatre Co » 🌐
                  @PlayersPatchwork@universeodon.com

                  One more week until Hallowe'en so the kitties and the skelies of the Patchwork Palace are hoping you're already having a Spooktacular #caturday

                    AodeRelay boosted

                    [?]Terence Eden » 🌐
                    @Edent@mastodon.social

                    🆕 blog! “Una Watch TOTP - MFA on your wrist!”

                    Let's get this out of the way first - this is a terrible idea! I want my two-factor authentication codes to be easily accessible to me, so I've built a watch app which will display them. That's really convenient for me - but makes for a terrible security posture. Anyone who steals my watch will be able to see my one-time…

                    👀 Read more: shkspr.mobi/blog/2026/10/una-w
                    ⸻
                    ++

                      AodeRelay boosted

                      [?]PsychoticSheep » 🌐
                      @sheepfreak@pixelfed.social

                      A new week, a new numerical experiment on the Pentium 1: rendering the Mandelbrot set.

                      The Mandelbrot set is a great fit for this: it is generated entirely from a simple mathematical iteration, but produces a surprisingly complex and colorful result.

                      I wrote a small C program using only the standard library and double-precision floating-point arithmetic. For every pixel, the program iterates the Mandelbrot equation and counts how many iterations are needed for the sequence to escape. This iteration count is then mapped to a color.

                      The result is written as a PPM image and displayed directly on the Pentium using XV, an old X11 image viewer. I could have used feh, which was already available, but I wanted to build something myself. Since no binary package was available for XV, I built it from pkgsrc in a NetBSD build VM and then transferred the resulting package to the Pentium.

                      Rendering at 800×600 with 500 iterations per pixel took 23.71 seconds.

                      #RetroComputing #RetroPC #Pentium #Pentium1 #Pentium166 #NetBSD #NetBSD11 #BSD #i386 #X11 #XOrg #CProgramming #C #Fractals #Mandelbrot #MandelbrotSet #NumericalComputing #ScientificComputing #OpenSource #FOSS #FreeSoftware #VintageComputing #OldComputers #RetroTechnology #ComputerHistory #CPU #SoftwareRendering

                        AodeRelay boosted

                        [?]WayKing67 » 🌐
                        @WaiKing67@sueden.social

                        RE: social.heise.de/@heiseonline/1

                        auf einmal gehts
                        "sei eine Anpassung der Qualitätsnorm für Ottokraftstoffe (DIN EN 228)"
                        wem wohl hier wieder das nutzen soll?

                        die Betrachtet, die in der Wertschöpfungskette von teilhaben oder Teilhaben könnten,
                        oder an deren Verwendung bei entsprechender Anpassung bzw. Umbaumaßnahmen,
                        bis in den befindenden Öl-Heizung,
                        seit euch im klaren, Sie kamen aus der NS-Zeit die -Parteien und ,
                        deren Machenschaften Zahlt ihr richtig Teuer
                        🖖

                          [?]Lynx [he/him] » 🌐
                          @Lynx@ohai.social

                          I'd like to write a portable library that can be easily used from several different languages. The classic go-to for this would be C.

                          I'd like to use a language with a bit more safety than C, but retain the ability to use the resulting library from other languages, which means it'd have to create a library with the C calling convention.

                          Any suggestions for achieving this? My initial thought is Zig, but I'm not sure how to proceed.

                            🗳

                            [?]Mx. Chara Aznable of Pnictogen [They/Them] » 🌐
                            @mxchara@cyberpunk.lol

                            while waiting for the concert I started going over an O'Reilly book designed to get older fashioned C++ users up to speed on later revisions and, well, it prompts a question. a question that I will preface by saying: there's basically no question of employability here, I can't imagine that I will ever be working in software ever again, though it might be good to keep up with languages commonly used in open-source codebases. So, ++
                            Should I bother?

                            fuck no, horrible language:2
                            yes, low priority though:4
                            yes, vital knowledge:0
                            C++ or nothing:0
                            other?:0
                              AodeRelay boosted

                              [?]SirWumpus 🍁🧙‍♂️⚔️ » 🌐
                              @sirwumpus@tilde.zone

                              Autumn has arrived, the leaves colour & fall, and still I quest to find gainful employment as a Software Programmer / Developer with adept understanding of (but not C++ that's cruel); also comfortable with , , , C#, , , scripting, , , , and similar POSIX / SUS systems.

                              snert.com/resume/

                                AodeRelay boosted

                                [?]Jobs for Developers » 🤖 🌐
                                @jobsfordevelopers@mastodon.world

                                AodeRelay boosted

                                [?]user21t » 🌐
                                @user21t@snac.bsd.cafe

                                Hello. Since you mentioned Faircamp, I want to share an idea. How about replacing Rust in the source code with either of these languages: ANSI C, Common Lisp, Scheme or Zig? I would like to see Faircamp as a lightweight alternative to Bandcamp in the same way Snac is a lightweight alternative to Mastodon.

                                Anyway, there are some issues with AI development in Rust:
                                https://codeberg.org/ethical-foss/open-slopware#programming-languages


                                  AodeRelay boosted

                                  [?]TechWire ⚡ » 🤖 🌐
                                  @techwire@social.gamefan.net

                                  Show HN: Openleetcode – local LeetCode runner where tests live in the repo

                                  You write a standard solution, just like on LeetCode, and run it through the CLI. It identifies the problem by ID or title, executes your code against local test cases, and shows the result. It currently supports around…

                                  github.com/therepanic/openleet

                                  ++ [Hacker News]

                                    [?]Dendrobatus Azureus » 🌐
                                    @dendrobatus_azureus@polymaths.social

                                    How to compile C sources

                                    $
                                    ./configure; make; make check; make install 
                                    
                                    

                                    Make sure to check the references in your shell regarding compilation also
                                    The man pages are your friend

                                    #Bash #csh #ksh #C #configure #ASM #make #install

                                      AodeRelay boosted

                                      [?]Dendrobatus Azureus » 🌐
                                      @dendrobatus_azureus@polymaths.social

                                      Yes, you use this command sequence from any of your most favorite shells, to compile your Source Code

                                      Regardless of the operating system you run, you can get a command shell which is Open Source by downloading a GNU package sequence for it.

                                      For mac & win64 they are also available.

                                      Without a command line  programming would be impossible

                                      Sources

                                      https://en.wikipedia.org/wiki/C_shell

                                      @Timpostma

                                      #Bash #csh #ksh #C #configure #ASM #make #install

                                        AodeRelay boosted

                                        [?]matthew - retroedge.tech » 🌐
                                        @matthew@social.retroedge.tech

                                        A better shell for UNIX based on Plan 9 rc - developed by @odc

                                        https://codeberg.org/rc23/rc23

                                        #rc #C #plan9 #shell #programming

                                          AodeRelay boosted

                                          [?]GNU/Linux.ch » 🌐
                                          @gnulinux@social.anoxinon.de

                                          Einführung in die Programmierung des Raspberry Pi Picos mit der Pico C/C++ SDK

                                          Eine weiterführende Einführung in die Programmierung mit der Pico C SDK, welche auch über die CMakeLists.txt erklärt.

                                          ++

                                          gnulinux.ch/programmierung-ras

                                            28 ★ 9 ↺
                                            planetscape boosted

                                            [?]Anthony » 🌐
                                            @abucci@buc.ci

                                            A weird thing about being 50 is that there are programming languages that I've used regularly for longer than some of the software developers I work with have been alive. I first wrote BASIC code in the 1980s. The first time I wrote an expression evaluator--a fairly standard programming puzzle or homework--was in 1990. I wrote it in Pascal for an undergraduate homework assignment. I first wrote perl in the early 1990s, when it was still perl 4.036 (5.38.2 now). I first wrote java in 1995-ish, when it was still java 1.0 (1.21 now). I first wrote scala, which I still use for most things today, in 2013-ish, when it was still scala 2.8 (3.4.0 now). At various times I've been "fluent" in 8086 assembly, BASIC, C, Pascal, perl, python, java, scala; and passable in LISP/Scheme, Prolog, old school Mathematica, (early days) Objective C, matlab/octave, and R. I've written a few lines of Fortran and more than a few lines of COBOL that I ran in a production system once. I could probably write a bit of Haskell if pressed but for some reason I really dislike its syntax so I've never been enthusiastic about learning it well. I've experimented with Clean, Flix, Curry, Unison, Factor, and Joy and learned bits and pieces of each of those. I'm trying to decide whether I should try learning Idris, Agda, and/or Lean. I'm pretty sure I'm forgetting a few languages. Bit of 6502 assembly long ago. Bit of Unix/Linux shell scripting languages (old enough to have lived and breathed tcsh before switching to bash; I use fish now mostly).

                                            When I say passable: in graduate school I wrote a Prolog interpreter in java (including parsing source code or REPL input), within which I could run the classic examples like append or (very simple) symbolic differentiation/integration. As an undergraduate I wrote a Mathematica program to solve the word recognition problem for context-free formal languages. But I'd need some study time to be able to write these languages again.

                                            I don't know what the hell prompted me to reminisce about programming languages. I hope it doesn't come off as a humblebrag but rather like old guy spinning yarns. I think I've been through so many because I'm never quite happy with any one of them and because I've had a varied career that started when I was pretty young.

                                            I guess I'm also half hoping to find people on here who have similar interests so I'm going to riddle this post with hashtags: