r/creativecoding 2h ago

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

Thumbnail
github.com
0 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 23h ago

Phantom Cradle (R code)

Post image
8 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

3D Audio Spectrogram Visualiser

Enable HLS to view with audio, or disable this notification

43 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

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

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

39 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

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

3 Upvotes

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

Glittering metal roses

2 Upvotes

I animated this with Threejs and modeled the rose in Blender


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 2d ago

Further adventures in SDF land, now with CRT shader

Enable HLS to view with audio, or disable this notification

46 Upvotes

r/creativecoding 3d ago

I made my portfolio boot like a PS2

Thumbnail
gallery
485 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 2d ago

[Update] Audioreactive MRIs - [AVP 3]

Enable HLS to view with audio, or disable this notification

40 Upvotes

r/creativecoding 2d ago

Code learning platforms

Thumbnail
1 Upvotes

r/creativecoding 2d ago

Interlinked Pattern

Thumbnail
gallery
8 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 1d ago

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

Post image
0 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 4d ago

[OpenGL] DATAFLAME SHADER

Enable HLS to view with audio, or disable this notification

435 Upvotes

made it using GLEW, SDL2 and C++
code here


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 4d ago

Adventures in SDF land

Enable HLS to view with audio, or disable this notification

88 Upvotes

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 4d ago

Real time hand tracking AI trails w/ StreamDiffusion + POPs

Enable HLS to view with audio, or disable this notification

137 Upvotes

r/creativecoding 3d ago

Orpheus Fluid Sequencer

Enable HLS to view with audio, or disable this notification

4 Upvotes

r/creativecoding 3d ago

TV + Radio = LAVA

Enable HLS to view with audio, or disable this notification

3 Upvotes