Re: Serialising/deserialising mixed Clojure and Java datastructures

2016-05-10 Thread 'Simon Brooke' via Clojure
On Tuesday, 10 May 2016 10:11:58 UTC+1, Simon Brooke wrote: > > On Monday, 9 May 2016 16:55:59 UTC+1, Alex Miller wrote: >> >> Clojure is designed with enough extensibility to modify the printer and >> reader to cover this case. >> >> You can define a custom print strategy for these types by exten

Re: Serialising/deserialising mixed Clojure and Java datastructures

2016-05-10 Thread 'Simon Brooke' via Clojure
On Monday, 9 May 2016 16:55:59 UTC+1, Alex Miller wrote: > > Clojure is designed with enough extensibility to modify the printer and > reader to cover this case. > > You can define a custom print strategy for these types by extending the > print-dup multimethod. If you print it as a tagged litera

Re: Serialising/deserialising mixed Clojure and Java datastructures

2016-05-09 Thread Ralf Schmitt
"'Simon Brooke' via Clojure" writes: > I'm working on some complex analysis where it takes about twelve hours to > construct the model to be analysed. Once it's constructed I'm doing various > interactive things to explore it, but I can't currently persist it in a > form in which it can be rea

Re: Serialising/deserialising mixed Clojure and Java datastructures

2016-05-09 Thread Alex Miller
Clojure is designed with enough extensibility to modify the printer and reader to cover this case. You can define a custom print strategy for these types by extending the print-dup multimethod. If you print it as a tagged literal, you can also define a custom reader that can read it back as the

Serialising/deserialising mixed Clojure and Java datastructures

2016-05-09 Thread 'Simon Brooke' via Clojure
I'm working on some complex analysis where it takes about twelve hours to construct the model to be analysed. Once it's constructed I'm doing various interactive things to explore it, but I can't currently persist it in a form in which it can be read back in, so that when the REPL session ends i