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

Adam Koprowski Adam.Koprowski at mlstate.com
Mon Aug 8 19:03:55 EDT 2011


  Dear Mads Hartmann,

  Yes, it will be a bug report about the compiler, so we (MLstate) won't be
"helping you out" with your application and hence no violation of the
competition rules.

  Best,
  Adam

2011/8/8 Mads Hartmann Jensen <mads379 at gmail.com>

> Hi François-Régis
>
> I can show you my code if it's acceptable according to the rules of the
> Opa Developer Competition :)
>
> 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
> >
>
> _______________________________________________
> Opa mailing list
> Opa at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/opa
>



-- 
*Adam Koprowski  [http://adam-koprowski.net]
R&D @ MLstate   [http://opalang.org | http://mlstate.com] *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.owasp.org/pipermail/opa/attachments/20110809/862a79bd/attachment.html 


More information about the Opa mailing list