[Opa] Limitations on what you can send over a network?

Mads Hartmann Jensen mads379 at gmail.com
Mon Aug 15 17:11:15 EDT 2011


I started working on another part of the project. I'll get back to you when I start working on 
the communication part of the project again :) 

Cheers,
Mads

On Aug 8, 2011, at 10:41 AM, François-Régis Sinot wrote:

> Hello Mads,
> 
> What you report is not supposed to be a limitation, and looks pretty
> much like a nasty bug...
> 
> Could you please send us your version of opa (opa --version) and a code
> snippet to reproduce the problem ?
> 
> In the meantime, I'm almost sure you can work around the problem by
> adding enough type coercions.
> 
> Cheers,
> François-Régis.
> 
> Le samedi 06 août 2011 à 10:43 +0200, Mads Hartmann Jensen a écrit :
>> Hi guys,
>> 
>> 
>> Are there any limitations on what you can send over a network created
>> using the Network.cloud function 
>> as shown below. In the chat example you don't use any "nested" data
>> types so I was wonder if it is possible.
>> 
>> 
>> @publish game = Network.cloud("game") : Network.network(board)
>> 
>> 
>> Currently I'm trying to send the following type 
>> 
>> 
>> type board = {positions: stringmap(intmap(position))}
>> 
>> 
>> where position is another type I have declared. 
>> 
>> 
>> At runtime I'm getting the following error when I use 
>> 
>> 
>> do Network.broadcast(board, game)
>> 
>> 
>> Error: File "stdlib/core/opavalue.opa", line 328, characters 18-144,
>> (328:18-328:144 | 10580-10706) @fail: [Record.fold_with_fields]
>> value:{ some: { kind: { rook: { }, }, color: { white: { }, }, }, }
>> all_field:{ hd: { label: x, ty: { TyConst: { TyInt: { }, }, }, }, tl:
>> { hd: { label: y, ty: { TyConst: { TyInt: { }, }, }, }, tl: { nil:
>> { }, }, }, } fields:{ nil: { }, }
>> 
>> 
>> Thanks,
>> Mads Hartmann 
>> _______________________________________________
>> Opa mailing list
>> Opa at lists.owasp.org
>> https://lists.owasp.org/mailman/listinfo/opa
> 
> -- 
> François-Régis Sinot
> R&D @ MLstate
> 104 rue du Faubourg Saint-Antoine, 75012 Paris, France
> 



More information about the Opa mailing list