Drasil icon indicating copy to clipboard operation
Drasil copied to clipboard

What is our criteria for what data type is a "chunk"?

Open balacij opened this issue 7 months ago • 3 comments

Immediately, I see at least two:

  1. HasUID.
  2. Dependencies (not a real typeclass, but one that would demand that said data type can form a list of its dependencies).

balacij avatar Jun 02 '25 21:06 balacij

The meta reasons are:

  • has a reason to be unique
  • has a reason to be re-used
  • is 'data' and not something deeply, deeply internal (although we might sometimes need reflection, so we might need to have twins)

JacquesCarette avatar Jun 03 '25 00:06 JacquesCarette

Those are extremely important!

Aside: what about: "has (internal) sanity checks?"

balacij avatar Jun 03 '25 16:06 balacij

I don't think "has (internal) sanity checks" is a requirement for chunks to exist. Orthogonal, really.

JacquesCarette avatar Jun 04 '25 17:06 JacquesCarette

In f0714de1326ec5ed42b6f5f63af315ab3706aafd, I wrote an updated comment in the Drasil codebase for what a Chunk is. I think that this discussion is fine enough for now.

balacij avatar Dec 12 '25 02:12 balacij