Re:Fil-C: A memory-safe C implementation
by pizlonator on Tuesday October 28, 2025 @11:33PM
(#45742314)
> It's in the public clang
I think you’re thinking of something else
Re:Fil-C: A memory-safe C implementation
by debugnik on Wednesday October 29, 2025 @03:58AM
(#45743934)
It or something similar has apparently been upstreamed to clang as -fbounds-safety. I don't know if they're the same, but the RFC on -fbounds-safety does give some credit to the author of Fil-C, who also took credit for firebloom on this thread as well.
Re:Fil-C: A memory-safe C implementation
by pizlonator on Wednesday October 29, 2025 @08:30AM
(#45745961)
Not the same
Re:Fil-C: A memory-safe C implementation
by debugnik on Wednesday October 29, 2025 @06:15PM
(#45753798)
Thanks for clarifying, I had found a past HN comment stating they are the same.
Interesting! How do you get started?
-fbounds-safety is the flag. https://clang.llvm.org/docs/BoundsSafety.html
And it's not just the bounds-checking that's great -- it makes a bunch of C anti-patterns much harder, and it makes you think a lot harder about pointer ownership and usage. Really a great addition to the language, and it's source-compatible with empty macro-definitions (with two exceptions).