chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Protocol Buffers for CHICKEN


From: Dan Leslie
Subject: Re: [Chicken-users] Protocol Buffers for CHICKEN
Date: Tue, 28 May 2013 17:29:02 -0700
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

Huh, now that is useful!
https://wiki.call-cc.org/man/4/Unit%20lolevel#object-evict

Still, if I ever have call to use pshm for ipc between chicken and not-chicken workers then this egg would probably be useful.

Thanks again,
-Dan

On 5/28/2013 5:24 PM, Thomas Chust wrote:
On 2013-05-29 00:32, Dan Leslie wrote:
[...]
I wonder if this would be useful for storing data in a posix shared
memory block...
[...]
Hello Dan,

that is certainly possible, you would just combine serialize and
call-with-output-string to obtain data you can copy into a shared buffer
and call-with-input-string plus deserialize to extract the stored value
on the receiving side.

However, shared memory between processes or threads on the same machine
has the advantage that one can place data in native formats in there
without having to care about endianness issues etc. So perhaps
object-evict and friends would be more efficient in this case.

The protobuf serialization could be quite useful for distributed
computing applications. Combining serialization of thunks with network
transport and some cryptographic authentication scheme yields you could
quickly construct a secure remote compute job submission server or a
distributed map reduce network, for example.

Ciao,
Thomas






reply via email to

[Prev in Thread] Current Thread [Next in Thread]