AshleyYakeley / Truth

Changes and Pinafore projects. Pull requests not accepted.
https://pinafore.info/
GNU General Public License v2.0
32 stars 0 forks source link

Figure out how to do interpretations #271

Closed AshleyYakeley closed 3 weeks ago

AshleyYakeley commented 1 month ago

See #180, and #168 for JSON.

Currently:

subtype JPEG.Image <: Interpret Image
subtype JPEG.Image <: Literal

Plan

Main idea is that Literal represents values (of some type), not encodings. They all happen to have encodings, of course, but only one encoding per type. This is important to ensure equality. Literal is mostly used for storage.

By contrast, Media is a media type and byte-array, and therefore an encoding of something.

Uses

AshleyYakeley commented 4 weeks ago

This is done.

AshleyYakeley commented 4 weeks ago

Still some stuff to do here actually.

AshleyYakeley commented 3 weeks ago

OK, closing this for now.