title: Build a scala interpreter in the browser
body: <p>My first contact with Scala was through the <a href="http://www.simplyscala.com/" rel="nofollow">SimplyScala tutorial</a>: You don't need to install anything and can just start to code. After some hours I fell in love with the language...</p>
  
  <p>Years later, I have written a web documentation for a Scala library as a Play Application. It would be cool to build something like SimplyScala and integrate it in the documentation, so that the user can enter Scala commands in the browser and get the result back.</p>
  
  <p>SimplyScala works like <a href="http://lotrepls.appspot.com/" rel="nofollow">LotREPLS</a> (old Open-Source-Java-Project with just few LOCs) on the Google App Engine.</p>
  
  <p><strong>Is is also possible to create something like this on my own server without getting security holes (f.ex. the user should not read files from the server...)?</strong></p>
  
  <p>I just need the "base" of the Scala language without any imports just like in SimplyScala. </p>
  
  <p>My first idea is to write an own SecurityManager and handle time-outs so that the user cannot consume too much server time. Is there any easier way or an existing open-source project?</p>
  
  <p>Or is it just more rational to advice the user to install Scala and work with the terminal instead of the browser? ;-)</p>
  
  <p>On the Scala homepage is a similar Play-project idea for the <a href="http://www.scala-lang.org/gsoc2012#InteractiveDocumentation" rel="nofollow">Summer of Code 2012 Scala Projects</a>: but I cannot find any results.</p>