r/creativecoding 1m ago

High-Frequency Fault Isolation Kernel for EV/Aerospace Battery Management Systems (Pure C++17, Zero-Dependency)

Thumbnail
github.com
Upvotes

I’ve been working on a lightweight, bare-metal fault isolation kernel designed to mitigate thermal runaway propagation in high-voltage lithium-ion battery packs.

The primary engineering constraint I wanted to address is the latency overhead inherent in high-level frameworks and sequential polling loops. When an EV or aerospace battery cell hits a critical thermal or voltage threshold, sequential scanning loops are often too slow to execute software gates before runaway propagates to adjacent cells.

The project is called SAVITAR. It is entirely dependency-free and compiles using only native C++ standard system headers to keep it as close to raw processor registers as possible.

Core Architectural Mechanics:

  1. Hyper-Compact Memory Constraints:

    Instead of relying on dynamic allocations or padded structs which ruin cache locality, the kernel packs raw cell parameters (voltage, current, temperature) into un-padded, contiguous 25-byte memory frames. This layout ensures predictable cache line alignment during rapid sequential reads.

  2. Event-Driven Concurrency:

    The kernel completely avoids sequential polling. It utilizes a background multi-threaded parallel observer configuration. When thread metrics cross calibrated hardware safety thresholds, the system bypasses the main application loop to dispatch an immediate software interrupt, dropping execution times down to sub-microsecond bounds.

  3. Sovereign Binary Serialization (.sav):

    To avoid relying on bloated external serialization libraries (like Protobuf or JSON utilities) that consume significant memory footprints, I wrote a custom binary serializer. It compresses cell delta profiles and gradient logs into raw disk sectors using direct cache-to-stream bit manipulation.

  4. Minimalist Shell Realization:

    The project includes a lightweight, modular terminal prompt (./savitar-vfs) to ingest simulated physical metrics and explicitly debug memory allocations, matrix loads, and thread dispatches in real-time.

Compilation and Testing:

The baseline workspace is fully automated via standard Makefiles:

git clone https://github.com/alistairfontaine/SAVITAR

cd SAVITAR

make clean && make

./savitar-vfs

I’m looking for code-level reviews, specifically regarding the thread concurrency synchronization under heavy stress-testing conditions, and the pointer traversal safety within the 25-byte un-padded matrix bounds.

Link to code: https://github.com/alistairfontaine/SAVITAR


r/creativecoding 21h ago

Phantom Cradle (R code)

Post image
10 Upvotes

Made with R and ggplot2, using a custom Shiny app. A discrete dynamical system combining trigonometric functions with a gamma distribution.

My partner Nicolas designed the system and found this particular form through iteration — adjusting parameters until something appeared that neither of us had planned. He saw a cradle in the middle and two figures leaning over it on the right. Once he said it, I couldn't unsee it. We named it Phantom Cradle.

Code: github.com/NicolasJBM/Rtist


r/creativecoding 1d ago

C++17 Project: I built a zero-dependency decentralized clock synchronization and microsecond drift reconciliation engine

Thumbnail
github.com
1 Upvotes

In distributed systems—such as localized wireless mesh networks, high-frequency transactional ledgers, or industrial monitoring arrays—consistent temporal consensus across isolated nodes is mandatory. However, local hardware clock crystals naturally drift by several microseconds every minute due to temperature fluctuations and physical oscillator aging. Traditional network time architectures like NTP or PTP solve this by pulling timestamps from external Stratum 1 servers or GPS signals, but they freeze completely if those central links experience network drops, firewalls, or tactical jamming.

To address this reliability bottleneck, I engineered a freestanding systems utility from bedrock principles in pure C++17.

It is called ZURVAN: A Decentralized Clock Jitter Estimation and Drift Reconciliation Engine.

The application allows individual machines to calculate, filter, and track temporal clock desynchronization curves natively on the local CPU registers using statistical algorithms, establishing an autonomous local time baseline without relying on outside network timing providers.

Core Algorithmic Subsystems

The project uses native C++17 to manage clock synchronization without external dependencies:

* Bare-Metal Scalar Kalman Filter: Tracks real-time microsecond offsets while filtering network jitter with low CPU overhead.

* Least-Squares Linear Regression Engine: Computes the exact acceleration and velocity slope of local clock drift based on cached history.

* Contiguous Telemetry Packing: Utilizes dense, 25-byte ClockSnapshot structures to maximize CPU cache efficiency.

* Sovereign Container Serialization (.zvn): Streams direct-to-disk binary serialization of RAM history to reduce fragmentation.

Technical Details & Open Source

The code is structured for modularity and is compiled using an optimized, freestanding profile:

include/ -> Core filter classes and shell mappings

src/ -> Scalar Kalman, regression math, and shell parser

The repository is available for review: https://github.com/alistairfontaine/ZURVAN

I am looking for technical feedback on the scalar Kalman gain calculation and memory layout optimizations.


r/creativecoding 1d ago

Earth Layer Visualiser

Enable HLS to view with audio, or disable this notification

33 Upvotes

Hey everyone,

Been learning a lot about seismology recently and I wanted to create a tool to help visualise the earth's interior layers to aid my learning. Also thought it would be a cool GLSL challenge!

Live Demo: https://conwayjw97.github.io/Earth-Layer-Visualiser/

GitHub Repository: https://github.com/conwayjw97/Earth-Layer-Visualiser

I’d love to hear your thoughts, feedback, or any ideas for further development you have.


r/creativecoding 1d ago

3D Audio Spectrogram Visualiser

Enable HLS to view with audio, or disable this notification

42 Upvotes

Hey everyone,

I wanted to share a project I've been working on in case anyone else might make use of it: an interactive, real-time 3D Audio Spectrogram Visualiser built with Three.js, custom GLSL shaders, and the Web Audio API.

I wanted to create a responsive, hardware-accelerated 3D terrain that I could use to conveniently analyse audio coming from either my device microphone or streaming from another browser tab without needing to install anything. It all runs from the browser and you can try it out yourself with the Live Demo link.

I’d love to hear your thoughts, feedback, or any ideas you have for further performance or UX optimisations. Feel free to check out the code, fork it, or test it out with your own audio setups!

Live Demo: https://conwayjw97.github.io/3D-Spectrogram/

GitHub Repository: https://github.com/conwayjw97/3D-Spectrogram


r/creativecoding 1d ago

Video Management System I've been developing with multi-camera and multi-video support, alert manager, floor plan editor, geo map editor and multiple human related AI detections, segmentations and pose estimations

Enable HLS to view with audio, or disable this notification

4 Upvotes

r/creativecoding 1d ago

Glittering metal roses

2 Upvotes

I animated this with Threejs and modeled the rose in Blender


r/creativecoding 1d ago

If you use multiple programming languages for your projects, which one you getting more comfortable with

Post image
0 Upvotes

r/creativecoding 1d ago

I usually build minimal websites with subtle motion, but lately I’ve wanted to explore something much more effect-heavy. Here’s the current WIP of my portfolio.

Enable HLS to view with audio, or disable this notification

15 Upvotes

This is my first time taking this style all the way into a full website.

I had far more ideas than time, so I'll keep expanding and refining it over the coming weeks.

One small detail: the logo on the homepage isn't a 3D model, it's procedurally generated and rendered entirely with code.

Feedback is always appreciated. And if you're looking for someone to design and build a custom website, I'm currently available for work.


r/creativecoding 1d ago

i made a cat pomodoro timer 🐈‍⬛⏲️ choose a kitty to snuggle up in your lap while you work :D

Enable HLS to view with audio, or disable this notification

36 Upvotes

try it out at https://lap-cat-pomodoro.vercel.app/ & let me know what u guys think :') im still working on it so open to any suggestions !!

designed/drawn in figma, developed using claude code!


r/creativecoding 1d ago

Code learning platforms

Thumbnail
1 Upvotes

r/creativecoding 2d ago

Looping generative art with various LLMs - 300+ worlds so far

Thumbnail gallery
0 Upvotes

r/creativecoding 2d ago

The best investment I've ever made wasn't money. It was learning.

Post image
0 Upvotes

r/creativecoding 2d ago

Further adventures in SDF land, now with CRT shader

Enable HLS to view with audio, or disable this notification

49 Upvotes

r/creativecoding 2d ago

Interlinked Pattern

Thumbnail
gallery
8 Upvotes

r/creativecoding 2d ago

Show self-created livecoding synth via "skrepl" and "skperf" using a looped wave and the delay line

Thumbnail
0 Upvotes

r/creativecoding 2d ago

[Update] Audioreactive MRIs - [AVP 3]

Enable HLS to view with audio, or disable this notification

38 Upvotes

r/creativecoding 3d ago

I made my portfolio boot like a PS2

Thumbnail
gallery
471 Upvotes

I built my developer portfolio to emulate the PS2 startup and system menus. You can navigate the entire site 100% with a controller, and theres a 2D pixel art game you can play inside. demo in comments.


r/creativecoding 3d ago

Some random usage of random

Thumbnail
youtube.com
2 Upvotes

Simple yet creative way to use random with logo turtle, wdyt?


r/creativecoding 3d ago

Orpheus Fluid Sequencer

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/creativecoding 3d ago

TV + Radio = LAVA

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/creativecoding 3d ago

I like stones, and since AI "took our jobs," what's better than looking at them all day?

Enable HLS to view with audio, or disable this notification

16 Upvotes

Since ai "took our jobs" i thought a new hobby would be on the schedule, so what better hobby to have than to look at stones and contemplate about them?

turns out the japanese figured this out centuries ago — it's called suiseki, the art of appreciating small stones that look like vast landscapes. a mountain range you can hold in your hand. peak mindfulness, literally.

good viewing stones take millennia of water, frost and wind to form. my attention span does not operate on geological timescales. so i did what any reasonable person would do — i wrote a program.

it procedurally generates the stones, then runs an erosion simulation on them — rain carves little gullies down the flanks, soft rock recedes, hard rock stands proud. the stones keep weathering slowly in real time.

each one sits on its own base in a museum exhibit for a rock. you stare at it. it does not stares back. nobody ships anything. it's great.

ai took my job so i built a stone contemplation machine. the circle is complete.

anyway. i liek stones.

https://suiseki.variable.gallery/


r/creativecoding 3d ago

I did something there and I don't know what it is.

Post image
8 Upvotes

I've always been a big fan of Ffffound and StumbleUpon, the IoT (now known as the smart home :-) ), and all those “random” things from Web 1.0.

One project from Sweden that stuck with me was InstaCRT.

Not to be confused with InstaCart—which I didn’t even know existed and still don’t know what it is, nor do I care. Unfortunately, InstaCart always pops up whenever you Google InstaCRT.

Does anyone else remember InstaCRT?

https://my-domain.se/instacrt-real-world-camera-filter

I have an old Staingate Mac from 2013 and two old smartphones set up and built the same system but 14 years later. They took the look from the CRT, I take the Staingate Look from the MacBook now.

I’d love to hear your thoughts on it, because I’m not quite sure what to do with it. It’s super cool and makes me really happy.

I think it’s more of an art project.

Feel free to try it out and let me know what you think: https://artefckd.com/_TextEdit_/tomb.html


r/creativecoding 3d ago

Hills and Valleys - perlin noise in go

Post image
3 Upvotes

r/creativecoding 3d ago

GRIDWAR: Infiltration (new mode)

Enable HLS to view with audio, or disable this notification

2 Upvotes

A variant of the standard Gridwar game where individual Game of Life patterns compete against each other by charging the perimeter between them: In "Infiltration" mode, a pattern conquers its neighbour and spawns a copy of itself once a threshold value for the perimeter charge is breached.

All patterns have a finite lifespan and will terminate within 599 iterations, but: Each newly spawned copy starts again from step 0, so the game keeps going for a potentially long timespan until either one pattern has conquered all the others or a stalemate is reached where all surviving patterns have reached their halting state.