35 comments

[ 3.2 ms ] story [ 86.8 ms ] thread
This sounds interesting. Someone willing to give it a shot and tell us how it went?
Creator of the site is AWOL, for the record. Compiler/interpreter versions aren't being updated and his blog has been left for dead for over a year.
From talking to him recently in person, he's just super busy with his startup, which is taking off: http://saucelabs.com/
See? This is the response I wanted. :)

Not downvotes. :(

That's me. Sauce Labs has indeed been keeping me ridiculously busy. But codepad is my favorite side-project, and I don't mean to neglect it. I'll find a free weekend and update interpreter versions once things are less crazy here!
Nice, thanks for supporting OCaml.

Could it autodetect the language using a few heuristics (or Bayesian analysis of existing submissions) instead of having the selection down the left hand side?

That might depend on whether or not he's been caching previous submissions. That and it sounds like a lot of hassle.
Saucelabs actually looks like just what I've been needing.
The "Hello World Examples" for C was only 17 seconds old when I looked, so it seems there's some activity...
I've used it quite a bit to test out both C and PHP. For basic snippets its great.

I think it could be improved by tying in reference code. Perhaps mine the PHP manuals for sample code and put it in to allow editing.

See also http://www.scriptlets.org/.

Similar idea, but implemented on top of AppEngine and opensource. Designed to give you persistent URLs to run your code so you can use them as webhooks, etc.

Cool!

I stress test the server with an infinte loop: http://codepad.org/LZNJjLnM

Seem like the obvious stuff was taken care as he said it will.

So yeah, loops kill the server, I want none of that...
Loops don't kill the server -- it runs them until they reach a timeout, and then aborts them.
Site isn't loading for me anymore. Either it got overloaded or someone figured out how to tie it up.. That was quick. Haha.
I wonder what is the reason that Java is not supported.
Java isn't really appropriate for something like this. You could, I suppose, paste the entire main class into the text box and run it that way.

If Java-like syntax is desired (although I can't imagine why it would be), BeanShell would be the way to go.

The JVM is threaded, and threads will require a little bit of (careful!) work for the codepad security sandbox to support. I haven't had time for that project yet.
Perhaps supporting something like Groovy would make for an easier-to-implement compromise?
http://codepad.org/MzI2fqg7

  from itertools import *

  primes = (i for i in count(2) if all(imap(lambda x:i%x,xrange(2,i/2))))
My Python code for a generator expression to loop on prime numbers.
I want a little flag next to the output that tells me whether the program terminates. Can't be that hard.

SCNR.

They could display a flag if the program HAS terminated, but there's no way to determine is a program will terminate.
Wow this wouldb be very useful for many projects. Any chance of distributing the sources?