This site gets a relatively small number of posts. Could we contact IDEOne or somebody, and get a script going to test people's code automatically? Maybe put up a "powered by" logo somewhere?
-
\$\begingroup\$ Lots of places to try for setting this up can be found in Where to find a working Foo environment for testing answers?. Not sure where George's script is going right now. \$\endgroup\$– dmckee --- ex-moderator kittenSep 5, 2011 at 16:46
-
\$\begingroup\$ I think the main problem would be providing stdin or whatever to run the testcases. If you can solve that, I think it's a great idea \$\endgroup\$– gnibblerSep 5, 2011 at 23:52
-
\$\begingroup\$ @gnibbler, ideone solves that. Unfortunately they don't support GolfScript, because it isn't a RH rpm. \$\endgroup\$– Peter TaylorSep 6, 2011 at 7:25
-
\$\begingroup\$ @Peter: GolfScript is just a Ruby-based interpreter (golfscript.rb), so you can probably include it as part of your ideone submission. (Not tested.) \$\endgroup\$– C. K. YoungSep 6, 2011 at 13:28
-
\$\begingroup\$ @Chris, it must be possible to create a script to take a GS program and the GS interpreter and munge them together into a single Ruby program, but ugh. \$\endgroup\$– Peter TaylorSep 6, 2011 at 14:08
2 Answers
George Edison's User script provides the ability to run some code (using Codepad, I think).
IDEONE expects some boilerplate for scala for example, naming conventions and a main-method, and a specific scala version. Enforcing compatibility would need to take this into account. I'm pretty sure, for other languages the situation is similar, isn't it? C, C++, Java, C#?
Maybe it isn't that restricted for scripting languages like ruby, python, perl, ... ?