Comments (5)
;;;; test about this issue
(def before-round (sorted-map 0 "value" 1 "value"))
(def after-round (taoensso.nippy/thaw-from-bytes (taoensso.nippy/freeze-to-bytes before-round)))
(class before-round)
; ===> clojure.lang.PersistentTreeMap
(class after-round)
; ===> clojure.lang.PersistentArrayMap
(subseq before-round = 0)
; ===> ([0 "value"])
(subseq after-round = 0)
; ClassCastException clojure.lang.PersistentArrayMap cannot be cast to clojure.lang.Sorted
from nippy.
;;;; an improvised solution for users
; use this function to regain sorted-map
(defn hash-map->sorted-map [coll]
(into (sorted-map) (sort coll)))
; test
(class (hash-map->sorted-map after-round))
; ===> clojure.lang.PersistentTreeMap
from nippy.
Hi bakyeono,
Sorry for the delay replying - was travelling the past few weeks. Working through a backlog now, will try get back to you in a couple days!
from nippy.
Just pushed 1.2.0 which adds support for sorted maps and sets. Hope that helps! Cheers :-)
from nippy.
Thanks a lot! You're a great man!
from nippy.
Related Issues (20)
- Cache (references) HOT 11
- Bump encore to 3.49 to avoid "Insufficient com.taoensso/encore version" error in timbre HOT 5
- Support for Clojure CLR? HOT 6
- Upgrade data encryption to use new Tempel lib
- Handling unfreezable data HOT 6
- Possible to create deterministic encryption? HOT 5
- should `extend-freeze` affect `freezable?` HOT 3
- checksum change for serialised output between 3.2.0 and 3.3.0 HOT 5
- JDK 21 benchmarks HOT 8
- Nippy v3.4.0-RC1 HOT 1
- Nippy v3.4.0 final HOT 1
- Question: does Nippy Zstandard support training? HOT 1
- v3.4.0-RC1: zstd cannot be decompressed without specifying the compressor HOT 3
- Support UUID (and inst)? HOT 2
- Nippy doesn't know how to freeze metadata from next.jdbc HOT 16
- Cannot `freeze-to-file` and `thaw-from-file` objects that are larger than 2GB HOT 3
- CVE on tools-reader 1.4.2 HOT 2
- A question about extend-freeze HOT 1
- The with-cache macro is marked private HOT 4
- Reducing the dependency footprint HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nippy.