DJB’s Fil-C experiment could change C programming forever

DJB's Fil-C experiment could change C programming forever - Professional coverage

According to TheRegister.com, famed mathematician and cryptographer Daniel J. Bernstein has tested the new type-safe C/C++ compiler Fil-C and published favorable notes about his experience. Bernstein, often known just as DJB, wrote some of the safest C code in existence and has offered $1,000 bounties since 2009 for anyone finding security holes in his DNS server djbdns and mail transfer agent qmail. Fil-C is based on Clang, the Apple-developed front-end for LLVM that Nvidia switched to back in December 2011. The compiler can trap whole categories of C errors but comes with performance costs and isn’t completely ABI-compatible with regular C. This testing comes amid growing competition in memory safety approaches including hardware projects like CHERI and OMA, plus software alternatives like Robin Rowe’s TrapC.

Special Offer Banner

Why DJB’s opinion matters

Here’s the thing about Daniel J. Bernstein – he’s not your average developer offering hot takes. This is someone who’s been writing bulletproof C code for decades. When he offers a $1,000 bounty and nobody can claim it for 16 years, that tells you something about his approach to security. So when he takes the time to actually test Fil-C and publish detailed notes, that’s not just casual interest. It means there’s something genuinely worth looking at here.

The memory safety landscape

Basically, we’re seeing an explosion of approaches to solve C’s memory safety problems. You’ve got hardware solutions like CHERI and OMA, software compilers like Fil-C and TrapC, and then completely new languages like Rust and Zig. What’s interesting about Fil-C is that it’s trying to bring safety to existing C codebases without requiring a full rewrite. But there are trade-offs – performance hits and compatibility issues mean you can’t just recompile your entire operating system and expect everything to work.

What this means for developers

Look, most of us aren’t writing code at DJB’s level. But his positive experience suggests Fil-C could be practical for securing specific components of larger C systems. The author Filip Pizlo acknowledges it’s not a silver bullet – he calls regular C “Yolo-C” for a reason. Still, having a tool that can make discrete parts of your codebase safer without rewriting everything in Rust? That’s appealing. Especially when you’re dealing with the billions of lines of C and C++ code out there that aren’t going anywhere soon.

The bigger picture

So where does this leave us? Memory safety is becoming a battleground with multiple fronts. Hardware approaches, software compilers, new languages – they’re all competing to solve the same fundamental problem. DJB’s endorsement gives Fil-C credibility, but the real test will be whether it gains traction beyond early adopters. Can organizations actually use this in production? Will the performance overhead be acceptable? These are the questions that matter now. One thing’s clear though – after decades of memory vulnerabilities, the industry is finally getting serious about solutions.

26 thoughts on “DJB’s Fil-C experiment could change C programming forever

  1. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  2. Hello, i believe that i noticed you visited my web site
    so i came to return the prefer?.I am attempting to in finding things to improve my website!I suppose its adequate to make
    use of a few of your concepts!!

  3. Hey, I think your website might be having browser compatibility issues.
    When I look at your blog site in Opera, it looks fine but when opening in Internet Explorer,
    it has some overlapping. I just wanted to give you
    a quick heads up! Other then that, wonderful blog!

  4. My brother recommended I might like this web site.
    He was totally right. This post actually made my day.

    You can not imagine just how much time I had spent for this
    information! Thanks!

  5. With havin so much content do you ever run into any
    issues of plagorism or copyright infringement?
    My site has a lot of exclusive content I’ve either authored
    myself or outsourced but it appears a lot of it is popping it up all
    over the web without my agreement. Do you know any techniques to help prevent
    content from being ripped off? I’d genuinely appreciate it.

  6. Hey! I could have sworn I’ve been to this website before but after checking
    through some of the post I realized it’s new to me.
    Nonetheless, I’m definitely delighted I found it and I’ll be bookmarking and checking back often!

  7. Yesterday, while I was at work, my cousin stole my iphone and tested to
    see if it can survive a forty foot drop, just so she can be a
    youtube sensation. My iPad is now destroyed and she has 83 views.

    I know this is entirely off topic but I had to share it with someone!

  8. Hello I am so thrilled I found your blog page, I really found you by mistake,
    while I was researching on Bing for something else,
    Anyways I am here now and would just like to say cheers for a incredible post and a
    all round enjoyable blog (I also love the theme/design), I don’t have time
    to go through it all at the moment but I have bookmarked it and also added in your RSS feeds,
    so when I have time I will be back to read a great deal more, Please do keep up the awesome job.

  9. You are so cool! I don’t believe I’ve read through something like this before.
    So good to discover someone with some genuine
    thoughts on this subject matter. Really.. many thanks for starting this
    up. This website is one thing that is needed on the web, someone with some
    originality!

  10. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your webpage?
    My blog is in the very same niche as yours and my visitors would definitely benefit from some of the information you provide here.
    Please let me know if this okay with you. Many thanks!

  11. Hello are using WordPress for your blog platform?
    I’m new to the blog world but I’m trying to get started
    and create my own. Do you require any coding expertise to make your own blog?
    Any help would be greatly appreciated!

  12. I’ve been browsing online more than 2 hours today, yet
    I never found any interesting article like yours. It’s
    pretty worth enough for me. In my opinion, if all site owners and bloggers made good content as you did, the internet will be much more useful than ever before.

  13. We’re a gaggle of volunteers and starting a new scheme in our community.

    Your site offered us with helpful info to work on. You’ve done a formidable job and our entire
    neighborhood will be thankful to you.

  14. Hey there this is kinda of off topic but I was wanting
    to know if blogs use WYSIWYG editors or if you have to manually
    code with HTML. I’m starting a blog soon but have no coding expertise so I wanted to get guidance from
    someone with experience. Any help would be greatly appreciated!

Leave a Reply

Your email address will not be published. Required fields are marked *