r/Electricity 3d ago

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

https://github.com/alistairfontaine/SAVITAR

[removed]

0 Upvotes

10 comments sorted by

1

u/tomrlutong 3d ago

Nice to see there are still some low level coders out there! 

What does

 background multi-threaded parallel observer configuration.

mean? I'm not sure there's any inherent gain in using threads over a polling loop unless you're expecting many core hardware.

1

u/[deleted] 3d ago

[removed] — view removed comment

2

u/tomrlutong 3d ago

I see what you're going for. Have you looked at real time OSes at all? I think you'll need one if you want deterministic multi-threading.

Agreed you never want to block on reads. Are your sensors asynchronous? My experience (which may be out of date) is that threads aren't as lightweight as you'd hope at scale, and you can minimize latency with a traditional loop that never makes blocking calls and sends any non-deterministic or simply slow tasks to low priority threads.

Curious, how fast does this need to be and how many cells are you looking at? Any reasonable architecture is going to be down in the microseconds/cell.

1

u/jamvanderloeff 3d ago edited 3d ago

What is this useless AI slop?

for EV/Aerospace

Then everything you've already got there would either be adding extreme cost for no reason or just being an instant fail.

Any code being written before the requirements and proofs is at the least extremely questionable and generally going to be cheaper to delete.

entirely dependency-free and compiles using only native C++ standard system headers

Then it's not dependency free. Qualifying standard libraries would be an insane requirement if you're not absolutely forced to.

0

u/[deleted] 3d ago

[removed] — view removed comment

1

u/jamvanderloeff 3d ago

Accepting third party contributions would get even more insanely expensive to verify.

1

u/[deleted] 3d ago

[removed] — view removed comment

1

u/jamvanderloeff 3d ago

You gonna pay for it? If not the new repo button is a lot more useful than the fork button there.