mstdn.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A general-purpose Mastodon server with a 500 character limit. All languages are welcome.

Administered by:

Server stats:

12K
active users

#cprogramming

8 posts6 participants0 posts today
Continued 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
Continued 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.

At my day job I'm working on some #firmware for things built around the #Microchip #SAM D5x/E5x #ARM-based microcontroller. As I'm still pretty new to #embedded programming and we're doing this bare-metal—from the data sheet—I've started collecting some notes about things that surprised me while doing that. They're on my website. Perhaps someone besides me will find this useful. The list is also going to be growing as we go.

spiffyk.cz/notes/#sam

Continued thread

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... 🤓 😆

Continued thread

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 😉

Continued thread

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 😅

I've released the version 0.12.0 of my C library LibCapy.

* Simulation of spring-mass system with RK4 solver
* Catmull-Rom splines
* Best fit regression on linear combination of any functions
* Text representation with ascii art of generic trees
* Hierarchical clustering using DIANA algorithm
* Verlet integration
* Addition of loss functions (MSE, MAE, Huber, cross entropy) and measurements (MAE, RMSE, R^2) for predictor training
* Cos/sin encoding of times and dates

baillehachepascal.dev/LibCapy/

baillehachepascal.devBaillehache Pascal's personal websiteBaillehache Pascal's personal website