clerk 2023-11-03

Good morning! If I want my own deftype to play nicely with clerk, should I implement valuehash.impl/CanonicalByteArray on it? https://github.com/arachne-framework/valuehash/blob/ff1d4b7f1260daf41c786a61cb45d02871b7baf9/src/valuehash/impl.clj#L5

good morning, we’re using a valuehash based on nippy

👍 1

you’ll proobably want to add it to nippy‘s freeze-serializable-allowlist

👍 1

(this should be in earmuffs, not bold)

👍 1

you should first try if nextjournal.clerk.analyzer/valuehash returns a non-deterministic value for your custom object

💯 1

Awesome, I'll start there. Thank you!

I checked that nextjournal.clerk.analyser/valuehash gave me the same hash each time I wanted the same type, and put my type into *freeze-serializable-allowlist*. That appears to have solved all my problems. Thanks again!

great to hear!