logoalt Hacker News

cookiengineertoday at 5:38 AM2 repliesview on HN

It would be nice if there was something similar to the ebpf verifier, but for static C, so that loop mistakes, out of boundary mistakes and avoidable satisfiability problems are caught right in the compile step.

The reason I'm so avoidant to using C libraries at all cost is that the ecosystem doesn't prioritize maintenance or other forms of code quality in its distribution. If you have to go to great lengths of having e.g. header only libraries, then what's the point of using C99/C++ at all? Back when conan came out I had hopes for it, but meanwhile I gave up on the ecosystem.

Don't get me wrong, Rust is great for its use cases, too. I just chose the mutex hell as a personal preference over the wrapping hell.


Replies

supriyo-biswastoday at 8:44 AM

I believe this is fil-c[1].

[1] https://fil-c.org/

saagarjhatoday at 9:31 AM

What do you consider to be a loop mistake?