How can I integrate programming language interpreter / compiler into a website like Codepad.org or Ideone.com? Is there any opensource solution? How do they ensure that the users do not write destructive code?
I know that Ideone has an API, but I am more interested in a self hosted solution.