News for hackers. Stuff that matters.
Re:Cello High Level C: A Fat Pointer Library by kabdib on Sunday November 08, 2015 @03:44PM (#10529813)
It's all fun and games until you say

    ++p
and pass that to a function that is silently expecting a length and other stuff in front of it. Calling these things "pointers" is a bit of a promotion from what they really are. Naming them "char*" or whatever is pretty dangerous if you ever do pointer movement.

Seriously, if you want descriptors and typed blobs, just make up a struct for what you want and pass it around. Say what you mean. Lying like this is going to hurt you.

Re:Cello High Level C: A Fat Pointer Library by tptacek on Sunday November 08, 2015 @07:24PM (#10530730)
This is also a common, and sometimes exploitable, coding error with C++ smart pointers.

I agree with you: I'm not sure how this is any more powerful than any encapsulated ADT-style foo_t-wraps-a-void-star C library.

Re:Cello High Level C: A Fat Pointer Library by Buge on Sunday November 08, 2015 @08:28PM (#10530928)
Well with C++ unique_ptr and shared_ptr you cant ++ or += or even get a raw pointer without explicitly calling .get().
Re:Cello High Level C: A Fat Pointer Library by mpu on Sunday November 08, 2015 @05:48PM (#10530343)
That's what Cello is about I think.