Elektrine lite

← Feed

@joe@f.duriansoftware.com

Post #3721906

2026-07-10 16:55 UTC

@zwarich@hachyderm.io @slava@mathstodon.xyz taking inspiration from D's postblit copy constructors, i wonder if you could boil down bytewise equality/comparison/hashing extensions to a "post-memcmp" operation that provides a hook for those sorts of types to perform additional operations after the bytewise operation doesn't fail or maybe the one trait you implement is an operation that gives you spans to all of the byte ranges that you want compared/hashed

Replies (2)

  • @slava@mathstodon.xyz 2026-07-10 16:55

    @joe@f.duriansoftware.com @zwarich@hachyderm.io Bit ranges for full generality, right?

    Open ##3721905

  • @foonathan@fosstodon.org 2026-07-11 17:30

    @joe@f.duriansoftware.com @zwarich@hachyderm.io @slava@mathstodon.xyz I was thinking of a "suspend" and "resume" pair of basis operations for an object, where in between the object is a bag of bits that can be freely moved, hashed, etc

    Open ##3763272