Egregoros

Signal feed

Timeline

Post

Remote status

Context

7
i really hate this idea that every non-trivial struct in c must be an opaque heap allocated pointer because people can't trust their users to read documentation, or what?

abi stability is another topic, and that one is more valid of a reason, but i'd still say it's not that hard, use sonames properly -- but if you *know* the struct definition will be changing a lot, then it's fair (but consider structuring your api differently, be modular and rely less on one single big struct type)

@navi @lanodan The mian advantage is that you can change a getter from “return an internal field” to “return a field in an internal structure” or to computed property, all while maintaining API compatibility.

The runtime cost is real, and ideally you want the language/compiler to optimise the “it’s just an internal field” case.

@navi @whynothugo Also an issue with particularly annoying distros like Debian that have a pretty high threshold of entry for packages, where even experienced admins that know how to create packages aren't doing them. (Likely due to lack of community repo, although there's been few attempts)
So you also end up with quite few FOSS projects providing pre-built packages or even non-packaged binaries to fill the void.

Replies

0
No replies yet.