Rendered at 20:33:20 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
matheusmoreira 26 minutes ago [-]
In my projects I tried pretty hard to remake the world and get rid of C strings. Went all in on freestanding C, got rid of the standard library, developed my own abstractions.
But I just didn't quite make it. The operating system interfaces want C strings. Can't even open a file without C strings. To fully exorcise C strings, I would need to reinvent Linux. I haven't got enough lifetimes for the task.
Ended up tacking on a hidden trailing NUL to every single buffer instead.
kestermckinney 2 hours ago [-]
when i first started programming in the early 90s we had someone on our team keep adding strcat("this string", NULL); His name was Karl. Every time we saw bad coding practices we called it Karl code.
But I just didn't quite make it. The operating system interfaces want C strings. Can't even open a file without C strings. To fully exorcise C strings, I would need to reinvent Linux. I haven't got enough lifetimes for the task.
Ended up tacking on a hidden trailing NUL to every single buffer instead.