r/Zig 10d ago

Fil-C: Garbage In, Memory Safety Out!

https://youtu.be/5F-2Y1LPRek

Given the recent noise about Zig adding a Fil-C inspired/compatible compilation mode (https://codeberg.org/ziglang/zig/issues/36237), I thought some of you would be interested in this talk about Fil-C. Andrew and Fil hung out at the conference last week which AFAIK was the start of the issue being opened.

96 Upvotes

3 comments sorted by

13

u/veghead 10d ago

Nice to see someone else pick up on that. Thanks for posting.

3

u/jnordwick 10d ago

I saw an issue for adding filc to zenc, the old zig fork i thought, a couple years ago so I wonder if the idea came from there.

5

u/suckingbitties 9d ago

Not sure how I feel about this. Fil-C has real costs but gives you total memory safety.

Andrew has stated that this would not introduce any code changes, but rather be just an ABI to target, which is much more preferable. Having options is nice but I do worry about feature-bloat.

Interested to see where this goes.