logoalt Hacker News

I want extern "fil-C"

45 pointsby domenkozaryesterday at 5:32 PM8 commentsview on HN

Comments

andaitoday at 1:20 AM

Why isn't fil-C ABI compatible with C?

https://fil-c.org/runtime

Apparently this was done intentionally. The rationale given is that we don't want to allow non-safe C to be used in fil-C programs. Fair enough.

But why should we prevent fil-C programs to be used from Rust (or C, for that matter)?

I don't understand much about compilers, but presumably allowing one would also allow the other?

porneltoday at 2:06 AM

There is a solution that Mozilla uses in prod for legacy C codecs:

https://rlbox.dev/

It's not a replacement for Fil-C's role as a precise ASAN/Valgrind, but it works great if you want to call a C library without letting it freely spray caller's memory.

show 1 reply
Wleddzigtoday at 1:35 AM

[flagged]

show 1 reply