Elektrine lite

← Feed

@jakub_neruda@techhub.social

Post #2699362

2025-09-24 07:41 UTC

@llogiq@hachyderm.io @Mara@hachyderm.io I want to delve deeper into clang-tidy for static analysis, but until recently, my codebase was not compatible with clang tools (MSVC toolchain allows many incompatible things). Tried MSVC static analysis, it was not good enough. Tried ASAN at work, but it didn't work well with some more windows-specific linkage options. I do not store iterators, only use tree dependency hierarchy (no loops) and use functional approaches (like std::ranges) to avoid most common issues. Still, I sometimes accidentally capture a local reference to item of array and then resize that array (which relocates and invalidates the reference). But since it is local, it is usually super quick to debug and fix. Other issue is when I need to delete objects from array while resolving queue of events/commands where subsequent events might reference the same element. Has to be solved by deferred deletion. I've only encountered a handful of memory errors in past four years.

Replies (1)

  • @llogiq@hachyderm.io 2025-09-24 07:55

    @jakub_neruda@techhub.social @Mara@hachyderm.io That makes me worry about the memory errors you didn't encounter.

    Open ##2699363