relrod / rublets

An IRC bot that uses SELinux Sandboxes to let you evaluate code in a large number languages.
14 stars 1 forks source link

Add Java support #7

Closed relrod closed 12 years ago

relrod commented 12 years ago

There's currently no Java eval. Let's work out a way to include this. Likely we'll have to just instruct the user to wrap the code in a class RubletsEvaluation or similar.

The workflow might look something like:

<CodeBlock> !java> public static void main(String[] args) { System.out.println("foo"); }
<rublets> CodeBlock: Please ensure your java code has a public RubletsEvaluation.main(String[] args).

<CodeBlock> !java> public class RubletsEvaluation { public static void main(String[] args) { System.out.println("foo"); } }
<rublets> foo

Yes, it's verbose but it'd bring us one step closer to supporting the top X languages.