user3465766
user3465766

Reputation: 21

scala online code execution

I'd like to develop an web-based application that allows user to submit Scala code from their web browser client and compile / execute their code on the server.

I was trying to use the scala.tools.nsc.IMain / ILoop classes to load the client file and then execute the file on the server. How do I do this?

How does using the IMain / ILoop classes compare to forking off an external process to compile and execute the code?

Upvotes: 2

Views: 1124

Answers (2)

moon
moon

Reputation: 166

Zeppelin is another opensource project worth to take a look at. It's got scala interpreter embedded for Apache Spark.

https://github.com/NFLabs/zeppelin

Upvotes: 2

Related Questions