Re: Pack and unpack

2010-05-08 Thread Michael Jaaka
Btw. serialization of data structures in 1.2 works nicely, comunication by RMI works like a charm :) -- 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 mod

Re: Pack and unpack

2010-05-08 Thread Michael Jaaka
OK, already downloaded. But what with writer in io.clj? In old duck- streams.clj I've just used (let [w (writer z1) r (reader z2)] ... ), but now I get just: commons=> java.lang.Exception: Unable to resolve symbol: writer in this context (NO_SOURCE_FILE:108) commons=> My import is (:require (cloj

Re: Pack and unpack

2010-05-08 Thread Michael Jaaka
http://richhickey.github.com/clojure/ OK, already downloaded. But what with writer in io.clj? In old duck- streams.clj I've just used (let [w (writer z1) r (reader z2)] ... ), but now I get just: commons=> java.lang.Exception: Unable to resolve symbol: writer in this context (NO_SOURCE_FILE:108)

Re: Pack and unpack

2010-05-07 Thread Mark Engelberg
On Fri, May 7, 2010 at 1:32 PM, Stuart Sierra wrote: > In Clojure 1.2 the core Clojure data structures will all be > Serializable.  You can test this in the current development master > branch. So is binding *print-dup* still the recommended way to serialize, or is there some other standard way t

Re: Pack and unpack

2010-05-07 Thread Stuart Sierra
On May 7, 11:55 am, Michael Jaaka wrote: > I was searching for function which converts to and back all clojure > structures like maps, vectors and sequences to serializable java > objects. In Clojure 1.2 the core Clojure data structures will all be Serializable. You can test this in the current

Re: Pack and unpack

2010-05-07 Thread Michael Jaaka
due to customizable comparator). > > > I need that because I'm doing RMI conversation between multiple > > instances of REPL (other methods of protocol are not acceptable in my > > case). > > > My proposition for names of such function is pack and unpack. > > >

Re: Pack and unpack

2010-05-07 Thread Matt
le > instances of REPL (other methods of protocol are not acceptable in my > case). > > My proposition for names of such function is pack and unpack. > > Thanks in advance! > > -- > You received this message because you are subscribed to the Google > Groups "Clojure&qu

Re: Pack and unpack

2010-05-07 Thread Michael Jaaka
To clarify "serializable objects" clojure vectors would become ArrayList, clojure sequences would become LinkedList, clojure sets would become HashMap, clojure maps would become HashTree. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Pack and unpack

2010-05-07 Thread Michael Jaaka
on between multiple instances of REPL (other methods of protocol are not acceptable in my case). My proposition for names of such function is pack and unpack. Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this