Hacker News new | ask | show | jobs
by spooneybarger 2889 days ago
It's a docker container with the pony compiler in it. The user input is compiled and run. Any output is captured and routed back to the web browser.

There's a timeout on it so it's really only good for running short lived snippets.

It's based on the same code that powers Rust's playground (or rather the code that did at the time that we introduced the playground).

Source is available here:

https://github.com/plietar/pony-playpen