On Thu, 2016-05-26 at 00:21 +0300, Joonatan Saarhelo wrote:
> I ended up hosting the Go compiler along with my server. No security
> measures whatsoever, but they are not really needed as the students
> won't
> know how to take over the server.
>
> I might add whitelisting imports and make a library out of my code,
> because
> I first tried using
https://github.com/zond/gosafe, but it just
> crashed. I
> looked at the source code, and it was pretty terrifying. This is my
> code
> ATM:
>
https://github.com/joonazan/go-opas/blob/master/palvelin/runner.go
>
I'd see gosafe as a concept piece rather than something to actually use
- note issue #1 and that GOMAXPROCS will probably be >1 unless care is
taken.
I would suggest using either a present slide or the tour with authored
article files, and running with nacl (it seems the tour doesn't support
nacl, but the changes are trivial so a CL might be worthwhile).