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
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
Today I'm working on a config file system for the server. We will see how it goes
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.
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.
The do...while() loop is a great and elegant construct for avoiding off-by-one errors. Shame for all the languages that don't have it. Of course C has it
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
New article on my website: Prediction of water quality in aquaculture ponds
#ai #sdgs #india #fish #welfare #aquaculture #water #satellite #remotesensing #cprogramming #webapp #machinelearning
https://baillehachepascal.dev/2025/prediction_water_quality_aquaculture.php
unsafehttp – tiny web server from scratch in C, running on an orange pi
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.
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...
As promised, here we go: #Goophy 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.
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
You know you're not making any progress if you don't get a Segmentation Fault once in a while
Say what you want but GDB and Valgrind are invaluable pieces of my c programming arsenal
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
https://mathewstorm.ca/tuts/C-and-Python/01-Using-C-Functions-in-Python/
After learning a lot about ctypes and the power of #C -> #Python, I wrote a quick tutorial to spread my knowledge.
Just rewrote my voxel brick generator in C — now with staggered rows, mortar seams, and chipped edges.
Powered by pure byte math. No floats. No mercy.
Zoxel lives.
#voxel #gamedev #Cprogramming
Explore intrinsic reality, hyperreality, and metareality through a unique C code prime-checking allegory. https://hackernoon.com/reality-in-c-philosophical-programming #cprogramming
#Goophy 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.
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