4 ms·
I have a book of the same name. I, reluctantly, recommend it. Why recommend?: lots of great content surrounding networking and file access, most of which will
by dijit 6y ago
I have a book of the same name. I, reluctantly, recommend it.
Why recommend?: lots of great content surrounding networking and file access, most of which will improve your programs a lot, if you code the things I do.
Why reluctantly?: it is heavily dependent on libc. It may ruin you for other languages than C.
Most of the libc shims suck.
- eatonphil 6y agoSo who's the author of your book of the same name?
- mucholove 6y agoI love Objective-C. Because that of that, I find myself using some C once in a while and I like it. What should I be using instead of libc? Musl? PS — I also use it on Linux via GNUstep. I like it that much. :)
- cheph 6y ago> What should I be using instead of libc? Musl? musl is an implementation of libc. So if you are using libc, then yeah sure why not.
- mucholove 6y agoOoh. I’m so out of touch I didn’t even know what MUSL really is. I was wondering whether there was something different than the standard library which made C a joy. Things that people mention as being faster are non-null terminated string libraries. Not sure if such would also make a more expressive API
- deleted 6y ago[deleted]
- froh 6y agoThe posix programming interface happens to be the C library, so I'd be curious how a book on advanced unix system programming could not heavily depend on libc?
- cheph 6y ago> The posix programming interface happens to be the C library Not exactly, the POSIX API is a superset of the C standard library. https://man7.org/linux/man-pages/man7/libc.7.html https://man7.org/linux/man-pages/man7/libc.7.html > The term "libc" is commonly used as a shorthand for the "standard C library", a library of standard functions that can be used by all C programs (and sometimes by programs in other languages). https://en.wikipedia.org/wiki/C_standard_library https://en.wikipedia.org/wiki/C_standard_library > Starting from the original ANSI C standard, it was developed at the same time as the C library POSIX specification, which is a superset of it.
- froh 6y agoI'd appreciate "even more so" over of "not exactly", as this confirms the point: Unix programming means to use the C library, even plus a bit (superset). Thanks for adding nuance and dental.
- cheph 6y ago> I'd appreciate "even more so" over of "not exactly", as this confirms the point: Unix programming means to use the C library, even plus a bit (superset). Your claim is wrong, on a factual level. "The posix programming interface" is not "the C library". So no, not "even more so". > Unix programming means to use the C library, even plus a bit This was not what you claimed, and it is entirely possible to write a C program that only uses the POSIX specific functions and avoids any of the functions in the C standard library. It won't do much, but it will run to completion.
- Gibbon1 6y agoIt's possible to write a C program that doesn't use either the standard library or POSIX functions.
- dboreham 6y agoI've used this book to prove to my kids that, at one time, I may have done something useful because: it has my name in it (by sheer dumb luck I might add).
- dijit 6y agoWell, damn. https://imgur.com/a/m5wywbj https://imgur.com/a/m5wywbj What did you do, if I may ask?
- dboreham 6y agoI was going to say I don't remember, but thanks to the longevity of RFC822 email, the thread to do with this is still in my mailbox. It looks like I reviewed the chapter on dbm. I also found, in searching for these emails, that an editor at PH reached out to me in 2008 asking for review help with the 3rd edition. As far as I can tell I never saw that email and didn't reply <doh!>.