views:

140

answers:

2

I have a product in mind that would benefit from third-party developers being able to hook into the product with their own custom code. My product would call the developer's code. The trick of course is how? Embedding the code is a terrible idea as it is completely unsafe. A malicious developer could do all sorts of Bad Things.

I could sandbox and watchdog the code using something like Lua. But this forces the developers to use Lua which may not appeal to everyone and might be "limiting".

Take http://ideone.com as an inspiration. It is based on SPOJ. I'd like to host ideone or equivalent internally as a (web?) service my product calls into to safely invoke 3rd party code.

I didn't see SPOJ as something that was free and open source. Are there alternatives that are?

Thanks

A: 

If you need totally free hosting for the 3rd party programs to be run - I am afraid, the most likely answer is "no".

kuszi
The OP said he is looking for something he can "host internally" (on his own server) for free, not free hosting.
mikerobi
A: 

You can let the 3rd party devs write their logic in ruby/python scripts and then you can call them in your app.

If you're using Java, then take a look at Java Scripting project https://scripting.dev.java.net/ or if using .Net you can try IronRuby or IronPython.

instantsetsuna