Elektrine lite

← Feed

@jcm@wafrn.jcm.re

Post #2279998

2026-04-15 15:23 UTC

@karolherbst@chaos.social I personally prefer well documented APIs that explicitly state required preconditions and behavior that you can rely on (and define what behavior you cannot rely on). If you violate a precondition and it still works, it should be allowed to stop working at any point (even because your CPU temperature increases). If you rely on undefined behavior, your code might break at any point and imo that is okay.

Replies (1)

  • @karolherbst@chaos.social 2026-04-15 15:25

    @jcm I think then you also should provide a validation mechanism to verify the usage is actually correct in whatever form. The way Vulkan does it is quite good e.g. and then if you ignore validation errors it's on you.

    Open ##2279999