News for hackers. Stuff that matters.
Re:No Abstractions: our API design principle by Pxtl on Friday April 26, 2024 @09:36AM (#40169202)
Yes. But that's the high-level API's problem. That's a problem with any abstraction really. "What if there's something in the thing we're abstracting that doesn't fit the abstraction" isn't really a problem with the "two API" approach, it's a problem with abstraction.

The high-level API needs to handle that case, if nothing better than having internal assertions that throw if it hits a case it's not designed to accommodate.

(also I'm annoyed with myself that I wrote buffer underrun in my first post instead of buffer overflow and now it's too late to edit).

Re:No Abstractions: our API design principle by cylemons on Friday April 26, 2024 @11:16PM (#40176829)
You did make me search what a buffer underrun was and I think it was a good read