lua-users home
lua-l archive

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


> Serialized as in Pluto? That's brave. :)

I would probably just serialize lua strings, numbers, and acyclic
tables of strings\tables\numbers in pure Lua (I believe Pluto is a C
library). I would probably send functions\modules as source code
strings rather than bytecode. But again, use cases and requirements
will vary.

- David

On Sun, Oct 30, 2011 at 5:36 AM, Stefan Reich
<stefan.reich.maker.of.eye@googlemail.com> wrote:
> On Sun, Oct 30, 2011 at 2:30 AM, David Hollander <dhllndr@gmail.com> wrote:
>>>XMPP
>>
>> Let me proposes a different protocol that might suit your needs:
>>
>> 1st and 2 byte: message length
>> X bytes: message
>>
>> message = any serialized lua value.
>>
>> Pass (senderIP, message) to a handler. The end :)
>
> Serialized as in Pluto? That's brave. :)
>
> Besides, I want human readability for all communication. Makes
> everything just so much easier.
>
> Simplicity is great anyway.
>
> I might try my simple and trusty JSON-line-by-line-over-socket
> protocol again that I use between Java and Lua in Lua OS.
>
> -Stefan
>
>