pink-gorilla / webly

reagent/reframe application skelleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

serialization

awb99 opened this issue · comments

commented

transit - fast, but not for persistence
edn - slow but good for persistence
Nippy is an attempt to provide a reliable, high-performance drop-in alternative to the reader.

  • rest api
  • websocket.
  • database
  • notebook serialization.

; extend edn reader:

(def ^:private default-readers {'ig/ref ref, 'ig/refset refset})
(defn read-string "Read a config from a string of edn. Refs may be denotied by tagging keywords with #ig/ref." ([s] (read-string {:eof nil} s)) ([opts s] (let [readers (merge default-readers (:readers opts {}))] (edn/read-string (assoc opts :readers readers) s))))

commented

aded custom transit packers to api endpoints and websocket.