[Haskell-cafe] Make a DSL serializable

Brandon Allbery allbery.b at gmail.com
Sun Mar 24 22:02:06 CET 2013


On Sun, Mar 24, 2013 at 4:16 PM, Corentin Dupont
<corentin.dupont at gmail.com>wrote:

> Hi Daniel,
> in my game the handlers are supplied by the players as part of little
> programs that they submit. An haskell interpreter is reading the program
> code submitted and inserts it in the game.
> So there is an infinite number of handlers...
>

You might store both the compiled code and the originally submitted code,
and serialize the latter in a form that restart can recompile. I don't
think that can be any less safe than the original
submission/compilation/insertion.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130324/7bef0a4d/attachment.htm>


More information about the Haskell-Cafe mailing list