code, no image description Show more
i furgot the extent to which printf is not type safe in C
code Show more
imo, this should be a compile time error, but since C can’t do that, it should at least cause a runtime error
girls whose intuition was ruined by the video on type safe printf in Idris
@aescling they should invent a version of C where you can check for that
re: code Show more
@aescling Is there a common ABI where you could even detect that at runtime?
@aschmitz purrobably not
@aschmitz @aescling i think amd64 sysv abi kinda-sorta might allow catching some cases of it? they pass an upper bound on the number of vector registers used through %al for variadic calls.
A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.
code
imo, this should be a compile time error, but since C can’t do that, it should at least cause a runtime error