8 karma · joined Mar 17, 2022 (4y ago) · 6 submissions
comment 4y ago · link · parent
The OS-provided API for the tasks are libc and Security.framework. Do you have any suggestions for a better API?
comment 4y ago · link · parent
But, there's a lesson here. Nothing is a replacement for backups and you'll care more about your own stuff than anyone else will.
comment 4y ago · link · parent
comment 4y ago · link · parent
Who specifies how you talk to the OS, and how native applications talk to each other? The OS does. And it does, in fact, differ across different OSes (with different calling conventions). The only reason C comes into this picture is because it runs on all the platforms these other languages do (and many more), so you can write an adapter between the language and C, and not have to worry about supporting 10 million different calling conventions, because some C compiler author has done that for you.
So the article is half right; this isn't a programming language. But C sure is.
(And that's not to mention the fact that to some extent the ABI and calling convention is determined more by the CPU architecture than the OS, much less the language!)