• Post Reply Bookmark Topic Watch Topic
  • New Topic

Suggestion: Running code examples within sandbox  RSS feed

 
Thomas Gard
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I *almost* created something similar to this back in the usenet days, but had trouble creating the sandbox.

But consider:

What if javaranch had a button that allowed a complete (and compilable) code snippet to run, complete with output. Note: I don't believe that this requires it run locally on the browser in an applet for console applications.

A "Sandboxie-esque" sandbox can house the runtime, to protect the javaranch from rogue software.

This would allow junior members to post their examples, have us see immediately what happens, supply a solution, and have the junior member see the result.

I wonder how safe this could be made. Further, I wonder if a sandbox could be implemented within an applet running within the browser in a safe fashion.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37181
515
Eclipse IDE Java VI Editor
 
Thomas Gard
Greenhorn
Posts: 27
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks Jeanne for that interesting site.

They even have Bash as a "language". I can walk around in what looks like a mocked up (sandboxed) unix filesystem.

At least I hope it's a mocked up sandboxed filesystem. <----eeek!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37181
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope it is mocked up too! Or running in a virtual machine or something.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!