Skip to content
Prev 1119 / 2152 Next

[zeromq-dev] rzmq package

Calling serialize/serialize from c/c++ is not too convoluted. You can find a good example in https://github.com/mspiegel/PiebaldMPI/blob/master/src/lapply_workers_helpers.c, look for the function "generateReturnList". I'm doing both serialization and unserialization in that function, but you'll be able to tease apart the two calls.

--Michael

PS: This will help. readonly_serialize is defined elsewhere as "findVar(install("serialize"), R_GlobalEnv);".

-----Original Message-----
From: Whit Armstrong [mailto:armstrong.whit at gmail.com] 
Sent: Thursday, September 29, 2011 11:31 AM
To: Michael Spiegel
Cc: Ulrich Staudinger; r-sig-hpc
Subject: Re: [R-sig-hpc] [zeromq-dev] rzmq package

+1

I'd like to be able to call serialize/unserialize from c/c++, but after looking at serialize.c, I'm a little uncomfortable.

So, for now, all my rzmq code just calls lapply(unserialize,ans) on the results.  no biggie I guess.

-Whit
On Thu, Sep 29, 2011 at 11:02 AM, Michael Spiegel <mspiegel at renci.org> wrote: