Is it possible to host the .Net DLR in an “idiot-proof” sandbox?

后端 未结 1 1743
暗喜
暗喜 2021-02-09 02:37

I would like to host the Dynamic Language Runtime (DLR) in such a way that users who run arbitrary scripts in it cannot bring the process down?

The DLR hosting spec desc

1条回答
  •  一生所求
    2021-02-09 03:26

    Have a look at Terrarium -- it's a game where you build your own autonomous critters in a .NET language, and they're teleported to other networked computers along with the assemblies that they're described in. The goal is to have your critter take over the entire ecosystem, either by killing everything else or by strategically managing food resources.

    As I recall, any critter that spends more than 0.n seconds "thinking" or n kb of memory gets deleted.

    0 讨论(0)
提交回复
热议问题