"'Simon Brooke' via Clojure" <clojure@googlegroups.com> 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 read back in, so that when the REPL session ends it > is lost and I need to run the construction process again. > > When I was creating the system I had thought, airily, 'well, Clojure is > Lisp so all I need to do is spit the structure out to a file and slurp it > back in again'. Unfortunately, of course, Clojure is only mostly Lisp. > > My problem is clj-time objects, both date-time and interval. These are > essentially Joda time objects, and when they are printed, what you get is a > string representation of an object reference. When the reader reads it > back, what you have is a string: I've had the same problem a few weeks ago. I've started using nippy [1] for serialization and can only recommend it. [1] https://github.com/ptaoussanis/nippy -- Cheers Ralf -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.