Skip to content

Support nippy >= 3.7 - #146

Merged
cnuernber merged 1 commit into
masterfrom
nippy-3.7-compat
Sep 4, 2026
Merged

cnuernber merged 1 commit into
masterfrom
nippy-3.7-compat

Conversation

@harold

@harold harold commented Sep 4, 2026 •

Copy link
Copy Markdown
Collaborator

tech.v3.datatype.nippy fails to compile against nippy >= 3.7, which removed the private -freeze-without-meta!:

Syntax error compiling at (tech/v3/datatype/nippy.clj:32:2).
No such var: nippy/-freeze-without-meta!

Swaps the 5 call sites for the public freeze-to-out!, per Peter's guidance.

Same [^DataOutput dout x] signature in 3.6 and 3.9, so no dep bump. Metadata is written only (when-let [m (not-empty (meta x))], and buffer->data/tensor->data build literal maps with none — old and new code on 3.6 produce byte-identical output.

Verified buffer and tensor roundtrips on 3.6.0 and 3.9.0-RC1.

Companion to techascent/tech.ml.dataset#483.

nippy 3.7.0 removed the private -freeze-without-meta!. Use the public
freeze-to-out! instead, which exists in both old and new nippy and emits
identical bytes here since none of the frozen maps carry metadata.
@cnuernber
cnuernber merged commit aac2329 into master Sep 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants