Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I feel like the success rate of getting someone off of null terminated strings is probably lower than most rehabilitation programs.


We can't entirely because of the C ABI but apart from that it's as simple as not using C which is not too difficult. C is not a popular language these days.


“Apart from that” does a lot of work here: FFI layers generally talk nul-terminated string unless otherwise specified, so do syscalls.


Yes that's what I said. You can generally wrap those layers so you aren't actually manipulating null terminated strings; just converting to/from them which is not too bad.


I don't know what you're relying on for the idea that C is not a popular language, but it is extremely popular.


Well, you will need to give up SQLite if you really feel this way, and reimplement it in a safe language.

It will also be some time before Rust has substantial penetration into Linux; you might need to find a kernel that implements the POSIX interfaces safely.

These will not be easy problems to solve.


Yeah, no…




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: