shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

267
active users

#c

13 posts13 participants4 posts today

lc is a line-based RPN calculator written in #C that takes input either from the command line or standard input. It supports floating point arithmetics and aims to be portable and standards compliant across POSIX(-like) systems.

It's in a *very* early stage of development, so there be dragons. And if you find it oddly similar to a very old project of mine (scalc), well it is on purpose: I wanted to get back into C with something I knew how to handle, but with many lessons learned from that old project.

github.com/ariadnavigo/lc

Line-based RPN calculator. Contribute to ariadnavigo/lc development by creating an account on GitHub.
GitHubGitHub - ariadnavigo/lc: Line-based RPN calculatorLine-based RPN calculator. Contribute to ariadnavigo/lc development by creating an account on GitHub.

What do OpenBSD people use for static analysis of C code?

Valgrind was available for a while but it seems to have been removed now

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?)

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 :)

#openbsd#c#gcc

#Vibecoding a #Perl interface to a #C library - Part 2
chrisarg.github.io/Killing-It-
Conclusions:
> #AI requires substantial subject matter expertise to deliver
> Constant vigilance for hallucinations, omissions and biases is required!
> They will not make a God out of a novice

Killing-It-with-PERL · Vibe coding a Perl interface to a foreign library - Part 2Of makefiles and alienfiles
Replied in thread

@dirk_wagner_

Ich bin mal gespannt, wann der erste C-Minister überhaupt, den Hut nimmt.
Angesichts des letzten Schusses für die #Demokratie ist dieses Signal längst überfällig.

Die #C-Parteien wissen um die Halbwertszeit der Wählererinnerung. #Wählerdemenz

Ich hoffe, die Opposition -die mit den Tassen- trägt dem Rechnung und denkt mal nicht an ihre #staatspolitischeVerantwortung sondern an die fehlende Welche der C-Parteien.

Is there anyone in the room with knowledge about #ESP32 microcontrollers?

I am playing with a #Waveshare development board that has an #AMOLED and a touchscreen, and it says it has built-in #SH8601 display driver and #FT3168 capacitive touch chip, using #QSPI and #I2C communication respectively.

waveshare.com/product/arduino/

It directly works in #Arduino with #C, but I am trying to make it work with #MicroPython.

Before I spend effort trying to compile it with #LVGL, I want to know if I could print a "Hello World" to the screen as is, and while my mind tells me that I need a driver, the sentence "built-in display driver using QSPI" makes me think that I could eventually use the display without code drivers, but I don't know how.

I'd love to see an example, if it's possible, or to be pointed to any resources that I can read in this regard. I am complete newbie.

Re-posts are appreciated.

Thank in advance 😊

www.waveshare.comESP32-S3 1.8inch AMOLED Touch Display Development Board, 32-bit LX7 Dual-core Processor, 368×448 Pixels, Accelerometer And Gyroscope Sensor, ESP32 With Display | ESP32-S3-Touch-AMOLED-1.8ESP32-S3 1.8inch AMOLED Touch Display Development Board, 32-bit LX7 Dual-core Processor, 368×448 Pixels, Accelerometer And Gyroscope Sensor, ESP32 With Display | ESP32-S3-Touch-AMOLED-1.8

C++ compilers annoy me a great deal. I use both gcc and clang, also cppcheck, and there are still times where obvious errors sail right on through. "this method is never implemented", "maybe this variable is used, maybe it's not, depends who you ask" just this morning. Or my old favourite, partial byte enums. Are they allowed? Definitely maybe.

And that's before we get into stupid fixes for stupid but deliberate omissions, like reflection.

#GrumpyOldCoder #C++

Just to give you an idea of how much software GCC 14's default of -Werror=implicit-function-declaration breaks, here are two pkgsrc bulk build results:

GCC 13.3.0: 24835/28450
GCC 14.3.0: 2589/28450

reports.pkgci.org/SmartOS/upst

reports.pkgci.org/SmartOS/upst

I also had to fix up a bunch of things before the build would even start.

This could take a while. And then the fun starts all over again with GCC 15's changes...

reports.pkgci.orgpkgsrc bulk build for SmartOS 20241212T000748Z/x86_64 from 2025-06-30 22:48